summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2003-12-02 15:29:06 (UTC)
committer mickeyl <mickeyl>2003-12-02 15:29:06 (UTC)
commite215d4b2bc542b557913ba3dcd57fd20a5a2a0fe (patch) (side-by-side diff)
tree8bb36647649cebf7c204ce58adcb820f4f0c19d6
parent7a7683d435cfbb4fa2d6ed99fd4a94d388402aec (diff)
downloadopie-e215d4b2bc542b557913ba3dcd57fd20a5a2a0fe.zip
opie-e215d4b2bc542b557913ba3dcd57fd20a5a2a0fe.tar.gz
opie-e215d4b2bc542b557913ba3dcd57fd20a5a2a0fe.tar.bz2
revert the changes approaching to compile libopie2 under X11
it broke signals and slots and has to be done like zecke did it with libqpe
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/oapplication.cpp4
-rw-r--r--libopie2/opiecore/oapplication.h9
-rw-r--r--libopie2/opieui/oresource.cpp2
3 files changed, 5 insertions, 10 deletions
diff --git a/libopie2/opiecore/oapplication.cpp b/libopie2/opiecore/oapplication.cpp
index 12f33cc..c3cacce 100644
--- a/libopie2/opiecore/oapplication.cpp
+++ b/libopie2/opiecore/oapplication.cpp
@@ -54,7 +54,7 @@ class OApplicationPrivate
OApplication::OApplication( int& argc, char** argv, const QCString& rAppName )
- :OpieApplication( argc, argv ),
+ :QPEApplication( argc, argv ),
_appname( rAppName ),
_config( 0 )
{
@@ -108,7 +108,7 @@ void OApplication::init()
void OApplication::showMainWidget( QWidget* widget, bool nomax )
{
- OpieApplication::showMainWidget( widget, nomax );
+ QPEApplication::showMainWidget( widget, nomax );
widget->setCaption( _appname );
}
diff --git a/libopie2/opiecore/oapplication.h b/libopie2/opiecore/oapplication.h
index a3f2201..72a659e 100644
--- a/libopie2/opiecore/oapplication.h
+++ b/libopie2/opiecore/oapplication.h
@@ -34,14 +34,14 @@
#define oApp OApplication::oApplication()
-#include "opieapplication.h"
+#include <qpe/qpeapplication.h>
class OApplicationPrivate;
class OConfig;
-class OApplication : public OpieApplication
+class OApplication : public QPEApplication
{
Q_OBJECT
@@ -92,11 +92,6 @@ class OApplication : public OpieApplication
*/
virtual void setTitle( const QString& title = QString::null ) const;
- /**
- * see qpeDir()
- */
- static QString opieDir() {return qpeDir();};
-
protected:
void init();
diff --git a/libopie2/opieui/oresource.cpp b/libopie2/opieui/oresource.cpp
index d97307f..03b9d51 100644
--- a/libopie2/opieui/oresource.cpp
+++ b/libopie2/opieui/oresource.cpp
@@ -41,7 +41,7 @@ namespace Resource
QPixmap loadPixmap( const QString& pix )
{
QString filename;
- filename.sprintf( "%s/%s.png", (const char*) oApp->opieDir(), (const char*) pix );
+ filename.sprintf( "%s/%s.png", (const char*) oApp->qpeDir(), (const char*) pix );
QPixmap pixmap( filename );
if ( pixmap.isNull() )
{