-rw-r--r-- | kmicromail/qpe/global.cpp | 6 | ||||
-rw-r--r-- | kmicromail/qpe/qdialog.h | 4 | ||||
-rw-r--r-- | kmicromail/qpe/qdialog_hacked.cpp | 6 |
3 files changed, 5 insertions, 11 deletions
diff --git a/kmicromail/qpe/global.cpp b/kmicromail/qpe/global.cpp index f4c6f60..8314f23 100644 --- a/kmicromail/qpe/global.cpp +++ b/kmicromail/qpe/global.cpp | |||
@@ -1,12 +1,14 @@ | |||
1 | 1 | ||
2 | #include "global.h" | 2 | #include "global.h" |
3 | 3 | #include <qstatusbar.h> | |
4 | QStatusBar* globalSstatusBarMainWindow = 0; | ||
4 | namespace Global{ | 5 | namespace Global{ |
5 | 6 | ||
6 | void statusMessage(QString message) | 7 | void statusMessage(QString message) |
7 | { | 8 | { |
8 | 9 | if ( globalSstatusBarMainWindow ) | |
10 | globalSstatusBarMainWindow->message( message,15000 ); | ||
9 | qDebug("statusMessage %s ", message.latin1()); | 11 | qDebug("statusMessage %s ", message.latin1()); |
10 | } | 12 | } |
11 | } | 13 | } |
12 | 14 | ||
diff --git a/kmicromail/qpe/qdialog.h b/kmicromail/qpe/qdialog.h index aafdf80..c63133d 100644 --- a/kmicromail/qpe/qdialog.h +++ b/kmicromail/qpe/qdialog.h | |||
@@ -1,33 +1,29 @@ | |||
1 | 1 | ||
2 | #ifndef MINIKDE_KDIALOG_H | 2 | #ifndef MINIKDE_KDIALOG_H |
3 | 3 | ||
4 | #ifndef DEFINE_QDIALOG_HACK | 4 | #ifndef DEFINE_QDIALOG_HACK |
5 | #define DEFINE_QDIALOG_HACK | 5 | #define DEFINE_QDIALOG_HACK |
6 | #warning call of include <qdialog.h> | 6 | #warning call of include <qdialog.h> |
7 | #warning including /usr/local/qt/include/qdialog.h | 7 | #warning including /usr/local/qt/include/qdialog.h |
8 | #warning if you get a compiling error | 8 | #warning if you get a compiling error |
9 | #warning please adjust your path here! | 9 | #warning please adjust your path here! |
10 | 10 | ||
11 | #include "/usr/local/qt/include/qdialog.h" | 11 | #include "/usr/local/qt/include/qdialog.h" |
12 | class QDialog_hacked : public QDialog | 12 | class QDialog_hacked : public QDialog |
13 | { | 13 | { |
14 | //Q__OBJECT | 14 | //Q__OBJECT |
15 | 15 | ||
16 | public: | 16 | public: |
17 | QDialog_hacked ( QWidget * parent=0, const char * name=0, bool modal=true, WFlags f=0 ); | 17 | QDialog_hacked ( QWidget * parent=0, const char * name=0, bool modal=true, WFlags f=0 ); |
18 | 18 | ||
19 | }; | 19 | }; |
20 | 20 | ||
21 | #define QDialog QDialog_hacked | 21 | #define QDialog QDialog_hacked |
22 | 22 | ||
23 | #endif | 23 | #endif |
24 | 24 | ||
25 | #else | 25 | #else |
26 | #warning ****************************************** | ||
27 | #warning ****************************************** | ||
28 | #warning ****************************************** | ||
29 | #warning ****************************************** | ||
30 | #warning "/usr/local/qt/include/qdialog.h" for KDialog | 26 | #warning "/usr/local/qt/include/qdialog.h" for KDialog |
31 | #include "/usr/local/qt/include/qdialog.h" | 27 | #include "/usr/local/qt/include/qdialog.h" |
32 | 28 | ||
33 | #endif | 29 | #endif |
diff --git a/kmicromail/qpe/qdialog_hacked.cpp b/kmicromail/qpe/qdialog_hacked.cpp index 3669312..0a34cec 100644 --- a/kmicromail/qpe/qdialog_hacked.cpp +++ b/kmicromail/qpe/qdialog_hacked.cpp | |||
@@ -1,31 +1,27 @@ | |||
1 | 1 | ||
2 | #include <qdialog.h> | 2 | #include <qdialog.h> |
3 | #include <qhbox.h> | 3 | #include <qhbox.h> |
4 | #include <qpushbutton.h> | 4 | #include <qpushbutton.h> |
5 | #include <klocale.h> | 5 | #include <klocale.h> |
6 | #ifdef QDialog | 6 | #ifdef QDialog |
7 | #undef QDialog | 7 | #undef QDialog |
8 | #endif | 8 | #endif |
9 | QDialog_hacked::QDialog_hacked ( QWidget * parent, const char * name, bool modal, WFlags f ) | 9 | QDialog_hacked::QDialog_hacked ( QWidget * parent, const char * name, bool modal, WFlags f ) |
10 | : QDialog( parent,name,modal, f) | 10 | : QDialog( parent,name,modal, f) |
11 | { | 11 | { |
12 | qDebug("******************** "); | 12 | qDebug("New hacked QDialog for ompi desktop"); |
13 | qDebug("******************** "); | ||
14 | qDebug("******************** "); | ||
15 | qDebug("******************** "); | ||
16 | qDebug("New hacked QDialog for ompi "); | ||
17 | //QTimer::singleShot( 1, this,SLOT(addaddbuttons()) ); | 13 | //QTimer::singleShot( 1, this,SLOT(addaddbuttons()) ); |
18 | 14 | ||
19 | setOrientation ( Vertical ); | 15 | setOrientation ( Vertical ); |
20 | QHBox * hb = new QHBox ( this ); | 16 | QHBox * hb = new QHBox ( this ); |
21 | QPushButton *ok = new QPushButton( i18n("OK"), hb ); | 17 | QPushButton *ok = new QPushButton( i18n("OK"), hb ); |
22 | QPushButton *cancel = new QPushButton( i18n("Cancel"), hb ); | 18 | QPushButton *cancel = new QPushButton( i18n("Cancel"), hb ); |
23 | setExtension ( hb ); | 19 | setExtension ( hb ); |
24 | showExtension ( true ); | 20 | showExtension ( true ); |
25 | connect ( ok, SIGNAL ( clicked()),this, SLOT (accept() ) ); | 21 | connect ( ok, SIGNAL ( clicked()),this, SLOT (accept() ) ); |
26 | connect ( cancel, SIGNAL ( clicked()),this, SLOT (reject() ) ); | 22 | connect ( cancel, SIGNAL ( clicked()),this, SLOT (reject() ) ); |
27 | //setWFlags(WStyle_MinMax ); | 23 | //setWFlags(WStyle_MinMax ); |
28 | 24 | ||
29 | } | 25 | } |
30 | 26 | ||
31 | 27 | ||