[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdeedu/kwordquiz/src
From: Albert Astals Cid <tsdgeos () terra ! es>
Date: 2004-07-08 18:18:30
Message-ID: 20040708181830.638F79985 () office ! kde ! org
[Download RAW message or body]
CVS commit by aacid:
- Make three class members local to the only function they are used to save a bit of \
memory
- Remove the configureShortcuts line as it is already handled by setupGUI
- Rework how the tooltip for configure toolbars is put, we were creating a stdaction \
with an unexistant slot and it gave the user a warning, there's no need to created \
the action as it is created by setupGUI too
M +8 -6 kwordquiz.cpp 1.58
M +0 -4 kwordquiz.h 1.21
--- kdeedu/kwordquiz/src/kwordquiz.cpp #1.57:1.58
@@ -98,4 +98,8 @@ KWordQuizApp::~KWordQuizApp()
void KWordQuizApp::initActions()
{
+ KAction* configToolbar;
+ KAction* configNotifications;
+ KAction* configApp;
+
fileNew = KStdAction::openNew(this, SLOT(slotFileNew()), actionCollection());
fileNew->setWhatsThis(i18n("Creates a new blank vocabulary document"));
@@ -256,10 +260,4 @@ void KWordQuizApp::initActions()
quizRepeatErrors->setToolTip(quizRepeatErrors->whatsThis());
- KStdAction::keyBindings(guiFactory(), SLOT(configureShortcuts()), \
actionCollection());
-
- configToolbar = KStdAction::configureToolbars(this, SLOT( slotConfigureToolbar() \
), actionCollection());
- configToolbar->setWhatsThis(i18n("Toggles display of the toolbars"));
- configToolbar->setToolTip(configToolbar->whatsThis());
-
configNotifications = KStdAction::configureNotifications(this, \
SLOT(slotConfigureNotifications()), actionCollection()); \
configNotifications->setWhatsThis(i18n("Configures sound and other notifications for \
certain events")); @@ -299,4 +297,8 @@ void KWordQuizApp::initActions()
setupGUI();
+
+ configToolbar = actionCollection()->action("options_configure_toolbars");
+ configToolbar->setWhatsThis(i18n("Toggles display of the toolbars"));
+ configToolbar->setToolTip(configToolbar->whatsThis());
}
--- kdeedu/kwordquiz/src/kwordquiz.h #1.20:1.21
@@ -294,8 +294,4 @@ class KWordQuizApp : public KMainWindow
KAction* qaHint;
- KAction* configToolbar;
- KAction* configNotifications;
- KAction* configApp;
-
QSignalMapper* charMapper;
KAction* specialChar1;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic