[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdegames
From:       Andreas Pakulat <apaku () gmx ! de>
Date:       2007-10-31 21:08:33
Message-ID: 1193864913.418342.8622.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 731500 by apaku:

Fix the checkbox-like menu items to not confuse users as to what happens when
activating them.


 M  +0 -1      kbackgammon/engines/fibs/kbgfibs.cpp  
 M  +0 -5      kolf/kolf.cpp  
 M  +0 -1      kpat/pwidget.cpp  


--- trunk/KDE/kdegames/kbackgammon/engines/fibs/kbgfibs.cpp #731499:731500
@@ -2249,7 +2249,6 @@
 		fibsOpt[OptRatings] = new KToggleAction(i18n("Show Rating Computations"), this);
                 parent->actionCollection()->addAction("fibs_show_rate", fibsOpt[OptRatings]);
 		connect(fibsOpt[OptRatings], SIGNAL(triggered(bool) ), SLOT(toggle_ratings()));
-		fibsOpt[OptRatings]->setCheckedState(KGuiItem(i18n("Hide Rating Computations")));
 		fibsOpt[OptGreedy] = new KToggleAction(i18n("Greedy Bearoffs"), this);
                 parent->actionCollection()->addAction("fibs_greedy", fibsOpt[OptGreedy]);
 		connect(fibsOpt[OptGreedy], SIGNAL(triggered(bool) ), SLOT(toggle_greedy()));
--- trunk/KDE/kdegames/kolf/kolf.cpp #731499:731500
@@ -169,7 +169,6 @@
 	useMouseAction = new KToggleAction(i18n("Enable &Mouse for Moving Putter"), this);
 	actionCollection()->addAction("usemouse", useMouseAction);
 	connect(useMouseAction, SIGNAL(triggered(bool) ), SLOT(emptySlot()));
-	useMouseAction->setCheckedState(KGuiItem(i18n("Disable &Mouse for Moving Putter")));
 	connect(useMouseAction, SIGNAL(toggled(bool)), this, SLOT(useMouseChanged(bool)));
 	KConfigGroup configGroup(KGlobal::config(), "Settings");
 	useMouseAction->setChecked(configGroup.readEntry("useMouse", true));
@@ -177,7 +176,6 @@
 	useAdvancedPuttingAction = new KToggleAction(i18n("Enable &Advanced Putting"), this);
 	actionCollection()->addAction("useadvancedputting", useAdvancedPuttingAction);
 	connect(useAdvancedPuttingAction, SIGNAL(triggered(bool) ), SLOT(emptySlot()));
-	useAdvancedPuttingAction->setCheckedState(KGuiItem(i18n("Disable &Advanced Putting")));
 	connect(useAdvancedPuttingAction, SIGNAL(toggled(bool)), this, SLOT(useAdvancedPuttingChanged(bool)));
 	useAdvancedPuttingAction->setChecked(configGroup.readEntry("useAdvancedPutting", false));
 
@@ -185,21 +183,18 @@
 	actionCollection()->addAction("showinfo", showInfoAction);
 	connect(showInfoAction, SIGNAL(triggered(bool) ), SLOT(emptySlot()));
 	showInfoAction->setShortcut(Qt::CTRL+Qt::Key_I);
-	showInfoAction->setCheckedState(KGuiItem(i18n("Hide &Info")));
 	connect(showInfoAction, SIGNAL(toggled(bool)), this, SLOT(showInfoChanged(bool)));
 	showInfoAction->setChecked(configGroup.readEntry("showInfo", false));
 
 	showGuideLineAction = new KToggleAction(i18n("Show Putter &Guideline"), this);
 	actionCollection()->addAction("showguideline", showGuideLineAction);
 	connect(showGuideLineAction, SIGNAL(triggered(bool) ), SLOT(emptySlot()));
-	showGuideLineAction->setCheckedState(KGuiItem(i18n("Hide Putter &Guideline")));
 	connect(showGuideLineAction, SIGNAL(toggled(bool)), this, SLOT(showGuideLineChanged(bool)));
 	showGuideLineAction->setChecked(configGroup.readEntry("showGuideLine", true));
 
 	KToggleAction *act = new KToggleAction(i18n("Enable All Dialog Boxes"), this);
 	actionCollection()->addAction("enableAll", act);
 	connect(act, SIGNAL(triggered(bool) ), SLOT(enableAllMessages()));
-	act->setCheckedState(KGuiItem(i18n("Disable All Dialog Boxes")));
 
 	soundAction = new KToggleAction(i18n("Play &Sounds"), this);
 	actionCollection()->addAction("sound", soundAction);
--- trunk/KDE/kdegames/kpat/pwidget.cpp #731499:731500
@@ -143,7 +143,6 @@
     dropaction = new KToggleAction(i18n("&Enable Autodrop"), this);
     actionCollection()->addAction("enable_autodrop", dropaction);
     connect( dropaction, SIGNAL( triggered( bool ) ), SLOT(enableAutoDrop()) );
-    dropaction->setCheckedState(KGuiItem(i18n("Disable Autodrop")));
 
     KConfigGroup cg(KGlobal::config(), settings_group );
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic