summaryrefslogtreecommitdiff
path: root/libopie2/opiecore
authormickeyl <mickeyl>2003-12-02 15:29:06 (UTC)
committer mickeyl <mickeyl>2003-12-02 15:29:06 (UTC)
commite215d4b2bc542b557913ba3dcd57fd20a5a2a0fe (patch) (unidiff)
tree8bb36647649cebf7c204ce58adcb820f4f0c19d6 /libopie2/opiecore
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 (limited to 'libopie2/opiecore') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/oapplication.cpp4
-rw-r--r--libopie2/opiecore/oapplication.h9
2 files changed, 4 insertions, 9 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
@@ -51,13 +51,13 @@ class OApplicationPrivate
51/**************************************************************************************************/ 51/**************************************************************************************************/
52/* OApplication 52/* OApplication
53/**************************************************************************************************/ 53/**************************************************************************************************/
54 54
55 55
56OApplication::OApplication( int& argc, char** argv, const QCString& rAppName ) 56OApplication::OApplication( int& argc, char** argv, const QCString& rAppName )
57 :OpieApplication( argc, argv ), 57 :QPEApplication( argc, argv ),
58 _appname( rAppName ), 58 _appname( rAppName ),
59 _config( 0 ) 59 _config( 0 )
60{ 60{
61 init(); 61 init();
62} 62}
63 63
@@ -105,13 +105,13 @@ void OApplication::init()
105 } 105 }
106} 106}
107 107
108 108
109void OApplication::showMainWidget( QWidget* widget, bool nomax ) 109void OApplication::showMainWidget( QWidget* widget, bool nomax )
110{ 110{
111 OpieApplication::showMainWidget( widget, nomax ); 111 QPEApplication::showMainWidget( widget, nomax );
112 widget->setCaption( _appname ); 112 widget->setCaption( _appname );
113} 113}
114 114
115 115
116void OApplication::setTitle( const QString& title ) const 116void OApplication::setTitle( const QString& title ) const
117{ 117{
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
@@ -31,20 +31,20 @@
31#ifndef OAPPLICATION_H 31#ifndef OAPPLICATION_H
32#define OAPPLICATION_H 32#define OAPPLICATION_H
33 33
34#define oApp OApplication::oApplication() 34#define oApp OApplication::oApplication()
35 35
36 36
37#include "opieapplication.h" 37#include <qpe/qpeapplication.h>
38 38
39 39
40class OApplicationPrivate; 40class OApplicationPrivate;
41class OConfig; 41class OConfig;
42 42
43 43
44class OApplication : public OpieApplication 44class OApplication : public QPEApplication
45{ 45{
46 Q_OBJECT 46 Q_OBJECT
47 47
48 public: 48 public:
49 /** 49 /**
50 * Constructor. Parses command-line arguments and sets the window caption. 50 * Constructor. Parses command-line arguments and sets the window caption.
@@ -89,17 +89,12 @@ class OApplication : public OpieApplication
89 * to the application name given in the constructor. 89 * to the application name given in the constructor.
90 * 90 *
91 * @param title the title. If not given, resets caption to appname 91 * @param title the title. If not given, resets caption to appname
92 */ 92 */
93 virtual void setTitle( const QString& title = QString::null ) const; 93 virtual void setTitle( const QString& title = QString::null ) const;
94 94
95 /**
96 * see qpeDir()
97 */
98 static QString opieDir() {return qpeDir();};
99
100 protected: 95 protected:
101 void init(); 96 void init();
102 97
103 private: 98 private:
104 const QCString _appname; 99 const QCString _appname;
105 static OApplication* _instance; 100 static OApplication* _instance;