summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Semke <alexander.semke@web.de>2016-10-09 19:19:21 (GMT)
committerAlexander Semke <alexander.semke@web.de>2016-10-09 19:19:21 (GMT)
commit0e070cd9b81ea171b8493e9ccb6e55b155145c2c (patch)
tree0d3ca97ce9d6f4af3f6306148fb8b1ce209d396e
parentf91c7c458399e807bb37668739d92fae8ea03805 (diff)
Fixed a warning message and removed couple of unneeded includes in cantor.cpp
-rw-r--r--src/cantor.cpp27
-rw-r--r--src/cantor.h6
-rw-r--r--src/main.cpp1
3 files changed, 12 insertions, 22 deletions
diff --git a/src/cantor.cpp b/src/cantor.cpp
index 745a03b..f9d343f 100644
--- a/src/cantor.cpp
+++ b/src/cantor.cpp
@@ -19,35 +19,22 @@
*/
#include "cantor.h"
-
-#include <QAction>
#include <KActionCollection>
-#include <KConfig>
-#include <KEditToolBar>
-#include <QFileDialog>
-#include <KShortcutsDialog>
-#include <KPluginLoader>
+#include <KConfigDialog>
+#include <KConfigGroup>
#include <KMessageBox>
+#include <KShortcutsDialog>
#include <KStandardAction>
-#include <QStatusBar>
-#include <QIcon>
-#include <KLocalizedString>
-#include <QTabWidget>
-#include <KConfigDialog>
-#include <KTextEdit>
-#include <QTextBrowser>
-#include <KXMLGUIFactory>
-#include <KToggleAction>
-#include <QMenu>
-
#include <KNS3/DownloadDialog>
+#include <KParts/ReadWritePart>
#include <QApplication>
+#include <QCloseEvent>
#include <QDebug>
#include <QDockWidget>
#include <QDir>
+#include <QFileDialog>
#include <QPushButton>
-#include <KConfigGroup>
#include "lib/backend.h"
#include "lib/panelpluginhandler.h"
@@ -391,7 +378,7 @@ bool CantorShell::reallyClose(bool checkAllParts) {
}
if(!modified) return true;
int want_save = KMessageBox::warningYesNo( this,
- i18n("Multiple unsaved Worksheets are opened do want to close?"),
+ i18n("Multiple unsaved Worksheets are opened. Do you want to close them?"),
i18n("Close Cantor"));
switch (want_save) {
case KMessageBox::Yes:
diff --git a/src/cantor.h b/src/cantor.h
index 373fe51..15ee854 100644
--- a/src/cantor.h
+++ b/src/cantor.h
@@ -26,8 +26,6 @@
#include <QList>
-#include <KParts/ReadWritePart>
-
class QTabWidget;
class KTextEdit;
@@ -35,6 +33,10 @@ namespace Cantor{
class WorksheetAccessInterface;
}
+namespace KParts{
+ class ReadWritePart;
+}
+
/**
* This is the application "Shell". It has a menubar, toolbar, and
* statusbar but relies on the "Part" to do all the real work.
diff --git a/src/main.cpp b/src/main.cpp
index 4686a3a..a0b8055 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -27,6 +27,7 @@
#include <KLocalizedString>
#include <KConfigGroup>
#include <QCommandLineParser>
+#include <QUrl>
static const char description[] =
I18N_NOOP("KDE Frontend to mathematical applications");