From 6771f6943d6ca00a01c2ba669c4acc945f915a70 Mon Sep 17 00:00:00 2001 From: Robert Knight Date: Fri, 4 Jan 2008 16:27:31 +0000 Subject: [PATCH] Remove classes from the KPart build which are not used by the part. Remove an #ifndef KONSOLE_PART test from the MainWindow class which is not compiled into the part. svn path=/trunk/KDE/kdebase/apps/konsole/; revision=757280 --- src/CMakeLists.txt | 2 -- src/MainWindow.cpp | 3 --- 2 files changed, 5 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 67b438db6..a80c1e332 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -120,12 +120,10 @@ set(konsolepart_PART_SRCS IncrementalSearchBar.cpp KeyBindingEditor.cpp KeyboardTranslator.cpp - MainWindow.cpp Part.cpp ProcessInfo.cpp Profile.cpp Pty.cpp - RemoteConnectionDialog.cpp Screen.cpp ScreenWindow.cpp Session.cpp diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 429af8d42..28ef9c752 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -198,13 +198,10 @@ void MainWindow::setupActions() remoteConnectionAction->setShortcut( QKeySequence(Qt::CTRL+Qt::SHIFT+Qt::Key_R) ); connect( remoteConnectionAction , SIGNAL(triggered()) , this , SLOT(showRemoteConnectionDialog()) ); - -#ifndef KONSOLE_PART 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); -#endif // Bookmark Menu KActionMenu* bookmarkMenu = new KActionMenu(i18n("&Bookmarks") , collection );