Toggle navigation
Toggle navigation
This project
Loading...
Sign in
조성현
/
graph-visualization
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
조성현
2017-05-02 09:51:13 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
65eb5e9f57734384b4f90301063ed88e226cece1
65eb5e9f
1 parent
471257dd
add test action
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
0 deletions
PaperGraph/MainWindow.cpp
PaperGraph/MainWindow.h
PaperGraph/PaperGraphWidget.cpp
PaperGraph/PaperGraphWidget.h
PaperGraph/MainWindow.cpp
View file @
65eb5e9
...
...
@@ -48,6 +48,10 @@ void MainWindow::createActions()
resetColorAct
=
new
QAction
(
tr
(
"Reset colors"
),
this
);
resetColorAct
->
setStatusTip
(
tr
(
"Reset all node's color"
));
connect
(
resetColorAct
,
&
QAction
::
triggered
,
this
,
&
MainWindow
::
reset_color
);
testAct
=
new
QAction
(
tr
(
"test action"
),
this
);
testAct
->
setStatusTip
(
tr
(
"test test"
));
connect
(
testAct
,
&
QAction
::
triggered
,
this
,
&
MainWindow
::
test
);
}
void
MainWindow
::
createMenus
()
...
...
@@ -59,6 +63,9 @@ void MainWindow::createMenus()
actionMenu
->
addAction
(
mightKnowAct
);
actionMenu
->
addAction
(
topkAct
);
actionMenu
->
addAction
(
resetColorAct
);
testMenu
=
menuBar
()
->
addMenu
(
tr
(
"&Test"
));
testMenu
->
addAction
(
testAct
);
}
//////////////////////////////////////////////////////////////////
...
...
@@ -84,3 +91,8 @@ void MainWindow::reset_color()
{
graphWidget
->
reset_color
();
}
void
MainWindow
::
test
()
{
graphWidget
->
test
();
}
\ No newline at end of file
...
...
PaperGraph/MainWindow.h
View file @
65eb5e9
...
...
@@ -24,6 +24,10 @@ private:
QAction
*
mightKnowAct
;
QAction
*
topkAct
;
QAction
*
resetColorAct
;
//test
QMenu
*
testMenu
;
QAction
*
testAct
;
private
:
void
createActions
();
...
...
@@ -34,6 +38,8 @@ private slots:
void
might_know
();
void
topk
();
void
reset_color
();
//test
void
test
();
};
#endif // MAINWINDOW_H
...
...
PaperGraph/PaperGraphWidget.cpp
View file @
65eb5e9
...
...
@@ -60,6 +60,11 @@ void PaperGraphWidget::reset_color()
scene
->
update
();
}
void
PaperGraphWidget
::
test
()
{
//test
}
void
PaperGraphWidget
::
handleSelectionChanged
(
int
idx
)
{
QMessageBox
::
information
(
this
,
"QCombobox"
,
...
...
PaperGraph/PaperGraphWidget.h
View file @
65eb5e9
...
...
@@ -19,6 +19,9 @@ public:
void
topk
();
void
reset_color
();
//test
void
test
();
private
slots
:
void
handleSelectionChanged
(
int
idx
);
...
...
Please
register
or
login
to post a comment