Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
2e1e9f28
Commit
2e1e9f28
authored
Apr 21, 2010
by
Sebastian Eichelbaum
Browse files
[CHANGE] - menu for removing modules from module graph.
parent
8653f3c1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
src/gui/qt4/datasetbrowser/WQtDatasetBrowser.cpp
src/gui/qt4/datasetbrowser/WQtDatasetBrowser.cpp
+7
-1
No files found.
src/gui/qt4/datasetbrowser/WQtDatasetBrowser.cpp
View file @
2e1e9f28
...
...
@@ -31,6 +31,7 @@
#include <QtCore/QList>
#include <QtGui/QScrollArea>
#include <QtGui/QShortcut>
#include <QtGui/QMenu>
#include "../../../common/WLogger.h"
#include "../../../common/WPreferences.h"
...
...
@@ -62,6 +63,7 @@ WQtDatasetBrowser::WQtDatasetBrowser( WMainWindow* parent )
m_panel
=
new
QWidget
(
this
);
m_moduleTreeWidget
=
new
WQtTreeWidget
(
m_panel
);
m_moduleTreeWidget
->
setContextMenuPolicy
(
Qt
::
ActionsContextMenu
);
m_moduleTreeWidget
->
setHeaderLabel
(
QString
(
"Dataset Browser"
)
);
m_moduleTreeWidget
->
setDragEnabled
(
true
);
...
...
@@ -70,6 +72,11 @@ WQtDatasetBrowser::WQtDatasetBrowser( WMainWindow* parent )
m_moduleTreeWidget
->
setDragDropMode
(
QAbstractItemView
::
InternalMove
);
m_moduleTreeWidget
->
setMinimumHeight
(
250
);
// create context menu for tree items
QAction
*
deleteModuleAction
=
new
QAction
(
"Remove Module"
,
m_moduleTreeWidget
);
connect
(
deleteModuleAction
,
SIGNAL
(
triggered
()
),
this
,
SLOT
(
deleteModuleTreeItem
()
)
);
m_moduleTreeWidget
->
addAction
(
deleteModuleAction
);
m_textureSorter
=
new
WQtTextureSorter
(
m_panel
);
m_textureSorter
->
setToolTip
(
"Reorder the textures."
);
...
...
@@ -81,7 +88,6 @@ WQtDatasetBrowser::WQtDatasetBrowser( WMainWindow* parent )
m_layout
->
addWidget
(
m_moduleTreeWidget
);
m_layout
->
addWidget
(
m_tabWidget2
);
m_tabWidget2
->
addTab
(
m_textureSorter
,
QString
(
"Texture Sorter"
)
);
m_roiTreeWidget
=
new
WQtTreeWidget
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment