diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 40dc877d9ebdc9a047ab19ce0a24b18e325ba0ce..eb712b79c9544da8e6f0cf0c248728794f4ca5d5 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -62,7 +62,6 @@ MainWindow::MainWindow() setXMLFile("konsole/konsoleui.rc"); setupActions(); - actionCollection()->associateWidget(this); // create view manager _viewManager = new ViewManager(this,actionCollection()); @@ -168,19 +167,19 @@ void MainWindow::setupActions() KActionCollection* collection = actionCollection(); // File Menu - QAction* newTabAction = collection->addAction("new-tab"); + KAction* newTabAction = collection->addAction("new-tab"); newTabAction->setIcon( KIcon("openterm") ); newTabAction->setText( i18n("New &Tab") ); newTabAction->setShortcut( QKeySequence(Qt::CTRL+Qt::SHIFT+Qt::Key_N) ); connect( newTabAction , SIGNAL(triggered()) , this , SLOT(newTab()) ); - QAction* newWindowAction = collection->addAction("new-window"); + KAction* newWindowAction = collection->addAction("new-window"); newWindowAction->setIcon( KIcon("window-new") ); newWindowAction->setText( i18n("New &Window") ); newWindowAction->setShortcut( QKeySequence(Qt::CTRL+Qt::SHIFT+Qt::Key_M) ); connect( newWindowAction , SIGNAL(triggered()) , this , SLOT(newWindow()) ); - QAction* remoteConnectionAction = collection->addAction("remote-connection"); + KAction* remoteConnectionAction = collection->addAction("remote-connection"); remoteConnectionAction->setText( i18n("Remote Connection...") ); remoteConnectionAction->setIcon( KIcon("network") ); remoteConnectionAction->setShortcut( QKeySequence(Qt::CTRL+Qt::SHIFT+Qt::Key_R) ); @@ -188,7 +187,7 @@ void MainWindow::setupActions() #ifndef KONSOLE_PART - QAction* quitAction = KStandardAction::quit( this , SLOT(close()) , collection ); + KAction* quitAction = KStandardAction::quit( this , SLOT(close()) , collection ); // the default shortcut for quit is typically Ctrl+[Some Letter, usually Q] but that is reserved for // use by terminal applications quitAction->setShortcut(Qt::CTRL+Qt::SHIFT+Qt::Key_Q); @@ -226,7 +225,7 @@ void MainWindow::setupActions() KStandardAction::configureNotifications( this , SLOT(configureNotifications()) , collection ); KStandardAction::keyBindings( this , SLOT(showShortcutsDialog()) , collection ); - QAction* manageProfilesAction = collection->addAction("manage-profiles"); + KAction* manageProfilesAction = collection->addAction("manage-profiles"); manageProfilesAction->setText( i18n("Manage Profiles...") ); manageProfilesAction->setIcon( KIcon("configure") ); connect( manageProfilesAction , SIGNAL(triggered()) , this , SLOT(showManageProfilesDialog()) ); diff --git a/src/SessionController.cpp b/src/SessionController.cpp index addbf2294c73bc98c4b2afef610bf038b646e6af..8396588425a374c3863bcf636b5253218da17a93 100644 --- a/src/SessionController.cpp +++ b/src/SessionController.cpp @@ -392,7 +392,7 @@ void SessionController::setShowMenuAction(QAction* action) void SessionController::setupActions() { - QAction* action = 0; + KAction* action = 0; KToggleAction* toggleAction = 0; KActionCollection* collection = actionCollection(); diff --git a/src/SessionController.h b/src/SessionController.h index e069907d2952bb980b85087e184f9759f8be36ae..a73bfa006bc7eb1596b0ad62ac4d3c3885145036 100644 --- a/src/SessionController.h +++ b/src/SessionController.h @@ -226,8 +226,8 @@ private: RegExpFilter* _searchFilter; KAction* _searchToggleAction; - QAction* _findNextAction; - QAction* _findPreviousAction; + KAction* _findNextAction; + KAction* _findPreviousAction; static KIcon _activityIcon; static KIcon _silenceIcon; diff --git a/src/ViewManager.cpp b/src/ViewManager.cpp index 41ad14db5d956d5b984a2be9eb2d46bfba0c4fde..9f44e8d5588f874a00c68f5ec70de6ceb6d60fe0 100644 --- a/src/ViewManager.cpp +++ b/src/ViewManager.cpp @@ -150,7 +150,7 @@ void ViewManager::setupActions() multiViewOnlyActions << closeOtherAction; - QAction* detachViewAction = collection->addAction("detach-view"); + KAction* detachViewAction = collection->addAction("detach-view"); detachViewAction->setIcon( KIcon("tab-detach") ); detachViewAction->setText( i18n("&Detach View") ); // Ctrl+Shift+D is not used as a shortcut by default because it is too close