[Kstars-devel] branches/KDE/3.5/kdeedu/kstars/kstars
Jason Harris
kstars at 30doradus.org
Sun Nov 25 15:24:32 CET 2007
SVN commit 741363 by harris:
Fixing bug #152869
Hidden Toolbars not persistent on restart. Also fixed the same issue
for the statusbar. I had thought that calling setChecked() on the
KToggleActions would trigger the connected slotShowGUIItem(), but
apparently not.
Interestingly, the call to slotGUIItem() *is* successfully made in the
trunk codebase...so no fix needed there.
Thanks for the report!
BUG: 152869
CCMAIL: kstars-devel at kde.org
M +5 -3 kstars.cpp
--- branches/KDE/3.5/kdeedu/kstars/kstars/kstars.cpp #741362:741363
@@ -27,6 +27,7 @@
#include <kactioncollection.h>
#include <kiconloader.h>
#include <qpalette.h>
+#include <kstatusbar.h>
#include "Options.h"
#include "kstars.h"
@@ -190,9 +191,10 @@
//Infoboxes, toolbars, statusbars
infoBoxes()->setVisible( Options::showInfoBoxes() );
-//May not need these; I think calling setChecked() on the actions should trigger slotShowGUIItem()
-// if ( !Options::showMainToolBar() ) ks->toolBar( "mainToolBar" )->hide();
-// if ( !Options::showViewToolBar() ) ks->toolBar( "viewToolBar" )->hide();
+ if ( ! Options::showMainToolBar() ) toolBar( "mainToolBar" )->hide();
+ if ( ! Options::showViewToolBar() ) toolBar( "viewToolBar" )->hide();
+ if ( ! Options::showAltAzField() ) statusBar()->removeItem(1);
+ if ( ! Options::showRADecField() ) statusBar()->removeItem(2);
//Geographic location
setGeoLocation( Options::cityName(), Options::provinceName(), Options::countryName() );
More information about the Kstars-devel
mailing list