From 3c446259f59c03abe2a64b2eba9a65cb11a81a1b Mon Sep 17 00:00:00 2001 From: zecke Date: Wed, 03 Nov 2004 22:44:14 +0000 Subject: Provide a QPEApplication compatible constructor --- 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 @@ -57,7 +57,13 @@ 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 ), 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 @@ -49,6 +49,12 @@ 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. * -- cgit v0.9.0.2