[Uml-devel] kdesdk/umbrello/umbrello
Jonathan Riddell
jr at jriddell.org
Mon Nov 22 07:52:01 UTC 2004
CVS commit by jriddell:
Fix hide/show statusbar
beastie 93535: 'menu/settings/show statusbar' behaves erroneusly
BUG:93535
M +5 -5 uml.cpp 1.120
--- kdesdk/umbrello/umbrello/uml.cpp #1.119:1.120
@@ -84,9 +84,8 @@ UMLApp::UMLApp(QWidget* , const char* na
// call inits to invoke all other construction parts
readOptionState();
- initActions();
initDocument();
+ initActions(); //now calls initStatusBar() because it is effected by setupGUI();
initView();
initClip();
- initStatusBar();
readOptions();
///////////////////////////////////////////////////////////////////
@@ -269,6 +268,8 @@ void UMLApp::initActions() {
KStdAction::tipOfDay( this, SLOT( tipOfTheDay() ), actionCollection() );
- // use the absolute path to your umbrelloui.rc file for testing purpose in createGUI();
- createGUI();
+ initStatusBar(); //call this here because status bar is shown/hidden by setupGUI()
+
+ // use the absolute path to your umbrelloui.rc file for testing purpose in setupGUI();
+ setupGUI();
QPopupMenu* menu = findMenu( menuBar(), QString("settings") );
@@ -358,5 +359,4 @@ void UMLApp::initStatusBar() {
connect(m_doc, SIGNAL( sigWriteToStatusBar(const QString &) ), this, SLOT( slotStatusMsg(const QString &) ));
- statusBar()->show(); //needs to be forced to show when on first ever startup for some reason
}
////////////////////////////////////////////////////////////////////////////////////////////////////
More information about the umbrello-devel
mailing list