summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/oapplication.cpp8
-rw-r--r--libopie2/opiecore/oapplication.h6
2 files changed, 13 insertions, 1 deletions
diff --git a/libopie2/opiecore/oapplication.cpp b/libopie2/opiecore/oapplication.cpp
index ac7cd5a..0ce61d8 100644
--- a/libopie2/opiecore/oapplication.cpp
+++ b/libopie2/opiecore/oapplication.cpp
@@ -56,9 +56,15 @@ class OApplicationPrivate
/**************************************************************************************************
* OApplication
**************************************************************************************************/
-
+OApplication::OApplication( int& argc, char** argv, Type type )
+ :QPEApplication( argc, argv, type ),
+ _appname( QString::null ),
+ _config( 0 )
+{
+ init();
+}
OApplication::OApplication( int& argc, char** argv, const QCString& rAppName )
:QPEApplication( argc, argv ),
_appname( rAppName ),
diff --git a/libopie2/opiecore/oapplication.h b/libopie2/opiecore/oapplication.h
index 337fe5e..d34e6b1 100644
--- a/libopie2/opiecore/oapplication.h
+++ b/libopie2/opiecore/oapplication.h
@@ -48,8 +48,14 @@ class OApplication : public QPEApplication
{
Q_OBJECT
public:
+
+ /**
+ * Constructor. Compatible to QPEApplication
+ */
+ OApplication( int& argc, char** argv, Type type=GuiClient);
+
/**
* Constructor. Parses command-line arguments and sets the window caption.
*
* @param rAppName application name. Will be used for finding the