summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Mi <codeminister@publicstatic.de>2014-01-21 10:58:50 (GMT)
committerGregor Mi <codeminister@publicstatic.de>2014-01-21 10:58:50 (GMT)
commit54b8ff0fa326045578f1af3a2cfd8aa5bae43797 (patch)
tree1b61a40aeffd840938c23fcc03fdc4b80e903b37
parentc6543cc5d9fcda986ae34a111fb7cf3bfa5c1423 (diff)
use QApplication instead of KApplication
-rw-r--r--.gitignore1
-rw-r--r--src/main.cpp5
-rw-r--r--src/skanlite.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index 62d579d..620833b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@
.kdev4/
build/
skanlite.kdev4
+src/.kdev_include_paths
diff --git a/src/main.cpp b/src/main.cpp
index cbb7169..672fc6d 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -30,6 +30,8 @@
int main(int argc, char *argv[])
{
+ QApplication app(argc, argv);
+
// about data
KAboutData aboutData("Skanlite", // appname
"skanlite", // catalogName
@@ -73,15 +75,12 @@ int main(int argc, char *argv[])
//QString device = args->getOption("d");
QString device; // FIXME KF5
- KApplication app;
Skanlite skanliteDialog(device, 0);
skanliteDialog.setAboutData(&aboutData);
skanliteDialog.show();
- QObject::connect(&app, SIGNAL(lastWindowClosed()), &app, SLOT(quit()));
-
return app.exec();
}
diff --git a/src/skanlite.h b/src/skanlite.h
index 16b455c..7ed9579 100644
--- a/src/skanlite.h
+++ b/src/skanlite.h
@@ -26,7 +26,7 @@
#include <QDir>
-#include <KSane/ksane.h>
+#include <ksane.h>
#include <KDialog>