author | mickeyl <mickeyl> | 2003-10-27 20:18:36 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-10-27 20:18:36 (UTC) |
commit | b367c7a9a97082419832c62d879c1ed2c80b8249 (patch) (side-by-side diff) | |
tree | 556d9beed9056aec911734c6bbc365a61ec251a4 | |
parent | 951d1d4125a80dc814f95d2956853bf53ca52e9a (diff) | |
download | opie-b367c7a9a97082419832c62d879c1ed2c80b8249.zip opie-b367c7a9a97082419832c62d879c1ed2c80b8249.tar.gz opie-b367c7a9a97082419832c62d879c1ed2c80b8249.tar.bz2 |
merge noncore/graphics/*
Note: qpdf is still not quicklaunch-able. I recommend not wasting time
to convert it but look @ qpdf2 instead.
-rw-r--r-- | noncore/graphics/drawpad/drawpad.cpp | 5 | ||||
-rw-r--r-- | noncore/graphics/drawpad/drawpad.h | 4 | ||||
-rw-r--r-- | noncore/graphics/drawpad/drawpad.pro | 7 | ||||
-rw-r--r-- | noncore/graphics/drawpad/main.cpp | 12 |
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 @@ -DrawPad::DrawPad(QWidget* parent, const char* name) +DrawPad::DrawPad(QWidget* parent, const char* name, WFlags fl ) : QMainWindow(parent, name, WStyle_ContextHelp) @@ -280,2 +280,3 @@ DrawPad::DrawPad(QWidget* parent, const char* name) + finishStartup(); } @@ -283,3 +284,3 @@ DrawPad::DrawPad(QWidget* parent, const char* name) -void DrawPad::finishStartup() +void DrawPad::finishStartup() { 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 public: - DrawPad(QWidget* parent = 0, const char* name = 0); + DrawPad(QWidget* parent = 0, const char* name = 0, WFlags fl = 0); ~DrawPad(); + static QString appName() { return QString::fromLatin1("drawpad"); } + 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 @@ -TEMPLATE = app -CONFIG = qt warn_on release +CONFIG = qt warn_on release quick-app HEADERS = drawpad.h \ @@ -44,3 +43,3 @@ DEPENDPATH += $(OPIEDIR)/include LIBS += -lqpe -lopie -DESTDIR = $(OPIEDIR)/bin + TARGET = drawpad @@ -66,4 +65,2 @@ TRANSLATIONS = ../../../i18n/de/drawpad.ts \ - - include ( $(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 @@ #include <qpe/qpeapplication.h> +#include <opie/oapplicationfactory.h> -int main(int argc, char **argv) -{ - QPEApplication a(argc, argv); - - DrawPad mw; // = new DrawPad();; - a.showMainWidget(&mw ); - mw.finishStartup(); - - return a.exec(); -} +OPIE_EXPORT_APP( OApplicationFactory<DrawPad> ) |