summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2003-10-27 20:18:36 (UTC)
committer mickeyl <mickeyl>2003-10-27 20:18:36 (UTC)
commitb367c7a9a97082419832c62d879c1ed2c80b8249 (patch) (side-by-side diff)
tree556d9beed9056aec911734c6bbc365a61ec251a4
parent951d1d4125a80dc814f95d2956853bf53ca52e9a (diff)
downloadopie-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.
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/graphics/drawpad/drawpad.cpp3
-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, 9 insertions, 17 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
@@ -46,13 +46,13 @@
#include <qpainter.h>
#include <qspinbox.h>
#include <qtoolbutton.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
-DrawPad::DrawPad(QWidget* parent, const char* name)
+DrawPad::DrawPad(QWidget* parent, const char* name, WFlags fl )
: QMainWindow(parent, name, WStyle_ContextHelp)
{
// init members
m_pDrawPadCanvas = new DrawPadCanvas(this, this);
@@ -275,12 +275,13 @@ DrawPad::DrawPad(QWidget* parent, const char* name)
QToolTip::add(m_pBrushColorToolButton, tr("Fill Color"));
m_pBrushColorToolButton->setPopup(brushColorPopupMenu);
m_pBrushColorToolButton->setPopupDelay(0);
changeBrushColor(Qt::white);
+ finishStartup();
}
void DrawPad::finishStartup()
{
// init pages
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
@@ -29,15 +29,17 @@ class QWidgetStack;
class DrawPad : public QMainWindow
{
Q_OBJECT
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; }
QPen pen() { return m_pen; }
QBrush brush() { return m_brush; }
bool antiAliasing();
void finishStartup();
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,8 +1,7 @@
-TEMPLATE = app
-CONFIG = qt warn_on release
+CONFIG = qt warn_on release quick-app
HEADERS = drawpad.h \
drawpadcanvas.h \
ellipsetool.h \
erasetool.h \
exportdialog.h \
filltool.h \
@@ -39,13 +38,13 @@ SOURCES = drawpad.cpp \
texttool.cpp \
thumbnailview.cpp \
tool.cpp
INCLUDEPATH += $(OPIEDIR)/include
DEPENDPATH += $(OPIEDIR)/include
LIBS += -lqpe -lopie
-DESTDIR = $(OPIEDIR)/bin
+
TARGET = drawpad
TRANSLATIONS = ../../../i18n/de/drawpad.ts \
../../../i18n/nl/drawpad.ts \
../../../i18n/da/drawpad.ts \
../../../i18n/xx/drawpad.ts \
@@ -61,9 +60,7 @@ TRANSLATIONS = ../../../i18n/de/drawpad.ts \
../../../i18n/pt_BR/drawpad.ts \
../../../i18n/sl/drawpad.ts \
../../../i18n/zh_CN/drawpad.ts \
../../../i18n/it/drawpad.ts \
../../../i18n/zh_TW/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
@@ -11,17 +11,9 @@
* *
***************************************************************************/
#include "drawpad.h"
#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> )