summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/graphics/drawpad/drawpad.cpp5
-rw-r--r--noncore/graphics/drawpad/drawpad.h4
-rw-r--r--noncore/graphics/drawpad/drawpad.pro7
-rw-r--r--noncore/graphics/drawpad/main.cpp12
4 files changed, 10 insertions, 18 deletions
diff --git a/noncore/graphics/drawpad/drawpad.cpp b/noncore/graphics/drawpad/drawpad.cpp
index aac6bc1..ac08e15 100644
--- a/noncore/graphics/drawpad/drawpad.cpp
+++ b/noncore/graphics/drawpad/drawpad.cpp
@@ -51,3 +51,3 @@
51 51
52DrawPad::DrawPad(QWidget* parent, const char* name) 52DrawPad::DrawPad(QWidget* parent, const char* name, WFlags fl )
53 : QMainWindow(parent, name, WStyle_ContextHelp) 53 : QMainWindow(parent, name, WStyle_ContextHelp)
@@ -280,2 +280,3 @@ DrawPad::DrawPad(QWidget* parent, const char* name)
280 280
281 finishStartup();
281} 282}
@@ -283,3 +284,3 @@ DrawPad::DrawPad(QWidget* parent, const char* name)
283 284
284void DrawPad::finishStartup() 285void DrawPad::finishStartup()
285{ 286{
diff --git a/noncore/graphics/drawpad/drawpad.h b/noncore/graphics/drawpad/drawpad.h
index 2cae700..48d5225 100644
--- a/noncore/graphics/drawpad/drawpad.h
+++ b/noncore/graphics/drawpad/drawpad.h
@@ -34,5 +34,7 @@ class DrawPad : public QMainWindow
34public: 34public:
35 DrawPad(QWidget* parent = 0, const char* name = 0); 35 DrawPad(QWidget* parent = 0, const char* name = 0, WFlags fl = 0);
36 ~DrawPad(); 36 ~DrawPad();
37 37
38 static QString appName() { return QString::fromLatin1("drawpad"); }
39
38 Tool* tool() { return m_pTool; } 40 Tool* tool() { return m_pTool; }
diff --git a/noncore/graphics/drawpad/drawpad.pro b/noncore/graphics/drawpad/drawpad.pro
index bfe6ac4..03cf7aa 100644
--- a/noncore/graphics/drawpad/drawpad.pro
+++ b/noncore/graphics/drawpad/drawpad.pro
@@ -1,3 +1,2 @@
1 TEMPLATE= app 1 CONFIG = qt warn_on release quick-app
2 CONFIG = qt warn_on release
3 HEADERS = drawpad.h \ 2 HEADERS = drawpad.h \
@@ -44,3 +43,3 @@ DEPENDPATH += $(OPIEDIR)/include
44 LIBS += -lqpe -lopie 43 LIBS += -lqpe -lopie
45 DESTDIR = $(OPIEDIR)/bin 44
46 TARGET = drawpad 45 TARGET = drawpad
@@ -66,4 +65,2 @@ TRANSLATIONS = ../../../i18n/de/drawpad.ts \
66 65
67
68
69include ( $(OPIEDIR)/include.pro ) 66include ( $(OPIEDIR)/include.pro )
diff --git a/noncore/graphics/drawpad/main.cpp b/noncore/graphics/drawpad/main.cpp
index 12f8084..87bc621 100644
--- a/noncore/graphics/drawpad/main.cpp
+++ b/noncore/graphics/drawpad/main.cpp
@@ -16,12 +16,4 @@
16#include <qpe/qpeapplication.h> 16#include <qpe/qpeapplication.h>
17#include <opie/oapplicationfactory.h>
17 18
18int main(int argc, char **argv) 19OPIE_EXPORT_APP( OApplicationFactory<DrawPad> )
19{
20 QPEApplication a(argc, argv);
21
22 DrawPad mw; // = new DrawPad();;
23 a.showMainWidget(&mw );
24 mw.finishStartup();
25
26 return a.exec();
27}