Commit 05c7dd0b by Sebastian Eichelbaum

[CHANGE] - added icon to remove menu item for tree widget items

parent 2931a952
......@@ -69,7 +69,6 @@ WMainWindow::WMainWindow() :
m_iconManager(),
m_fibLoaded( false )
{
setupGUI();
}
void WMainWindow::setupGUI()
......
......@@ -142,6 +142,7 @@ int WQt4Gui::run()
// create the window
m_mainWindow = new WMainWindow();
m_mainWindow->setupGUI();
m_mainWindow->show();
// connect out loader signal with kernel
......
......@@ -74,8 +74,7 @@ WQtDatasetBrowser::WQtDatasetBrowser( WMainWindow* parent )
m_moduleTreeWidget->setMinimumHeight( 250 );
// create context menu for tree items
// Use this Icon? WQt4Gui::getMainWindow()->getIconManager()->getIcon( "remove" ); This somehow crashes OW.
QAction* deleteModuleAction = new QAction( "Remove Module", m_moduleTreeWidget );
QAction* deleteModuleAction = new QAction( WQt4Gui::getMainWindow()->getIconManager()->getIcon( "remove" ), "Remove Module", m_moduleTreeWidget );
connect( deleteModuleAction, SIGNAL( triggered() ), this, SLOT( deleteModuleTreeItem() ) );
m_moduleTreeWidget->addAction( deleteModuleAction );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment