[Kst] kdeextragear-2/kst/kst
Laurent Montel
montel at kde.org
Sun Aug 17 15:10:09 CEST 2003
CVS commit by mlaurent:
Allow to change shortcut
M +9 -1 kst.cpp 1.48
M +2 -1 kst.h 1.19
--- kdeextragear-2/kst/kst/kst.cpp #1.47:1.48
@@ -37,4 +37,5 @@
#include <kaccel.h>
#include <kstatusbar.h>
+#include <kkeydialog.h>
#include <iostream>
@@ -169,5 +170,5 @@ void KstApp::initActions() {
KStdAction::close( this, SLOT(slotFileClose()), actionCollection());
KStdAction::quit( this, SLOT(slotFileClose()), actionCollection());
-
+ KStdAction::keyBindings( this, SLOT( slotConfigureKeys() ), actionCollection() );
/************/
filePrint = KStdAction::print( this, SLOT(slotFilePrint()),
@@ -391,4 +392,11 @@ void KstApp::initActions() {
createGUI();
}
+
+
+void KstApp::slotConfigureKeys()
+{
+ KKeyDialog::configure( actionCollection(), this );
+}
+
void KstApp::setPaused(bool in_paused) {
--- kdeextragear-2/kst/kst/kst.h #1.18:1.19
@@ -152,4 +152,5 @@ private slots:
public slots:
+ void slotConfigureKeys();
/** open a new application window by creating a new instance of KstApp */
@@ -244,5 +245,5 @@ public slots:
void registerDocChange();
- KstView *viewObject() { return view; }
+ KstView *viewObject() const { return view; }
private:
More information about the Kst
mailing list