[Uml-devel] KDE/kdesdk/umbrello/umbrello
Sharan Rao
sharanrao at gmail.com
Thu May 10 22:27:54 UTC 2007
SVN commit 663342 by sharan:
The parent menu, takes care of emitting signals ( activated() ) for sub-menu items.
Fixes bug, on right click->Create Attribute , Operation, New Class Diagram etc , which used to ask
for and make two of the respective operation.
M +1 -19 listpopupmenu.cpp
--- trunk/KDE/kdesdk/umbrello/umbrello/listpopupmenu.cpp #663341:663342
@@ -253,12 +253,6 @@
}
}
- if(m_pInsert)
- connect(m_pInsert, SIGNAL(activated(int)), this, SIGNAL(activated(int)));
- if(m_pShow)
- connect(m_pShow, SIGNAL(activated(int)), this, SIGNAL(activated(int)));
- if(m_pColor)
- connect(m_pColor, SIGNAL(activated(int)), this, SIGNAL(activated(int)));
return;
}
@@ -497,13 +491,6 @@
break;
}//end switch
- if(m_pInsert)
- connect(m_pInsert, SIGNAL(activated(int)), this, SIGNAL(activated(int)));
- if(m_pShow)
- connect(m_pShow, SIGNAL(activated(int)), this, SIGNAL(activated(int)));
- if(m_pColor)
- connect(m_pColor, SIGNAL(activated(int)), this, SIGNAL(activated(int)));
-
bool bCutState = UMLApp::app() -> getCutCopyState();
setItemEnabled( mt_Cut, bCutState );
setItemEnabled( mt_Copy, bCutState );
@@ -1368,12 +1355,7 @@
setItemEnabled( mt_Copy, bCutState );
setItemEnabled( mt_Paste, UMLApp::app() -> getPasteState() );
}
- if(m_pInsert)
- connect(m_pInsert, SIGNAL(activated(int)), this, SIGNAL(activated(int)));
- if(m_pShow)
- connect(m_pShow, SIGNAL(activated(int)), this, SIGNAL(activated(int)));
- if(m_pColor)
- connect(m_pColor, SIGNAL(activated(int)), this, SIGNAL(activated(int)));
+
}
void ListPopupMenu::setupDiagramMenu(UMLView* view) {
More information about the umbrello-devel
mailing list