rendered paste bodyFrom 12d88aab3502eadd17903a8ded3ce9b379a2c48a Mon Sep 17 00:00:00 2001
From: Peter Oberndorfer <kumbayo84@snip>
Date: Wed, 25 Feb 2009 17:00:06 +0100
Subject: [PATCH] remove unused slots
the connect is commented out since 625605(before the beginning of kdevplatform)
options_configure action was partially removed in 860931
MainWindowPrivate::setupActions() should handle everything we need
---
shell/mainwindow.cpp | 4 ----
shell/mainwindow_actions.cpp | 20 --------------------
shell/mainwindow_p.h | 2 --
3 files changed, 0 insertions(+), 26 deletions(-)
diff --git a/shell/mainwindow.cpp b/shell/mainwindow.cpp
index f254379..eabbdc3 100644
--- a/shell/mainwindow.cpp
+++ b/shell/mainwindow.cpp
@@ -133,10 +133,6 @@ void MainWindow::initialize()
connect(Core::self()->documentController(), SIGNAL(documentActivated(KDevelop::IDocument*)), SLOT(documentActivated(KDevelop::IDocument*)));
connect(Core::self()->documentController(), SIGNAL(documentStateChanged(KDevelop::IDocument*)), SLOT(documentStateChanged(KDevelop::IDocument*)));
connect(Core::self()->documentController(), SIGNAL(documentClosed(KDevelop::IDocument*)), SLOT(documentClosed(KDevelop::IDocument*)));
- /*connect( Core::projectController(), SIGNAL( projectOpened() ),
- d, SLOT( projectOpened() ) );
- connect( Core::projectController(), SIGNAL( projectClosed() ),
- d, SLOT( projectClosed() ) );*/
d->setupGui();
}
diff --git a/shell/mainwindow_actions.cpp b/shell/mainwindow_actions.cpp
index 3b38c48..7b4cc32 100644
--- a/shell/mainwindow_actions.cpp
+++ b/shell/mainwindow_actions.cpp
@@ -81,26 +81,6 @@ void MainWindowPrivate::gotoLastWindow()
{
}
-void MainWindowPrivate::projectOpened()
-{
- QString app = i18n( "Project" );
- QString text = i18n( "Configure %1", app );
- QAction *action = actionCollection() ->action( "options_configure" );
- action->setToolTip( text );
- action->setWhatsThis( QString( "<b>%1</b><p>%2" ).arg( text ).arg(
- i18n( "Lets you customize %1.", app ) ) );
-}
-
-void MainWindowPrivate::projectClosed()
-{
- QString app = qApp->applicationName();
- QString text = i18n( "Configure %1", app );
- QAction *action = actionCollection() ->action( "options_configure" );
- action->setToolTip( text );
- action->setWhatsThis( QString( "<b>%1</b><p>%2" ).arg( text ).arg(
- i18n( "Lets you customize %1.", app ) ) );
-}
-
void MainWindowPrivate::configureToolbars()
{}
diff --git a/shell/mainwindow_p.h b/shell/mainwindow_p.h
index 9e3d362..c5b1766 100644
--- a/shell/mainwindow_p.h
+++ b/shell/mainwindow_p.h
@@ -80,8 +80,6 @@ public Q_SLOTS:
void split(Qt::Orientation orientation);
void toggleFullScreen(bool fullScreen);
- void projectOpened();
- void projectClosed();
void configureToolbars();
void newToolbarConfig();