-rw-r--r-- | kmicromail/qpe/qdialog.h | 8 | ||||
-rw-r--r-- | kmicromail/qpe/qdialog_hacked.cpp | 5 |
2 files changed, 6 insertions, 7 deletions
diff --git a/kmicromail/qpe/qdialog.h b/kmicromail/qpe/qdialog.h index d671e34..aafdf80 100644 --- a/kmicromail/qpe/qdialog.h +++ b/kmicromail/qpe/qdialog.h | |||
@@ -4,9 +4,10 @@ | |||
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 an compiling error please adjust your path her | 8 | #warning if you get a compiling error |
9 | #warning please adjust your path here! | ||
9 | 10 | ||
10 | #include "/usr/local/qt/include/qdialog.h" | 11 | #include "/usr/local/qt/include/qdialog.h" |
11 | class QDialog_hacked : public QDialog | 12 | class QDialog_hacked : public QDialog |
12 | { | 13 | { |
@@ -25,11 +26,8 @@ class QDialog_hacked : public QDialog | |||
25 | #warning ****************************************** | 26 | #warning ****************************************** |
26 | #warning ****************************************** | 27 | #warning ****************************************** |
27 | #warning ****************************************** | 28 | #warning ****************************************** |
28 | #warning ****************************************** | 29 | #warning ****************************************** |
29 | #warning ****************************************** | 30 | #warning "/usr/local/qt/include/qdialog.h" for KDialog |
30 | #warning ****************************************** | ||
31 | #warning ****************************************** | ||
32 | #warning ****************************************** | ||
33 | #include "/usr/local/qt/include/qdialog.h" | 31 | #include "/usr/local/qt/include/qdialog.h" |
34 | 32 | ||
35 | #endif | 33 | #endif |
diff --git a/kmicromail/qpe/qdialog_hacked.cpp b/kmicromail/qpe/qdialog_hacked.cpp index e2ce21a..3669312 100644 --- a/kmicromail/qpe/qdialog_hacked.cpp +++ b/kmicromail/qpe/qdialog_hacked.cpp | |||
@@ -6,15 +6,15 @@ | |||
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) | 10 | : QDialog( parent,name,modal, f) |
11 | { | 11 | { |
12 | qDebug("******************** "); | 12 | qDebug("******************** "); |
13 | qDebug("******************** "); | 13 | qDebug("******************** "); |
14 | qDebug("******************** "); | 14 | qDebug("******************** "); |
15 | qDebug("******************** "); | 15 | qDebug("******************** "); |
16 | qDebug("New hacked QDialog == KDialogBase "); | 16 | qDebug("New hacked QDialog for ompi "); |
17 | //QTimer::singleShot( 1, this,SLOT(addaddbuttons()) ); | 17 | //QTimer::singleShot( 1, this,SLOT(addaddbuttons()) ); |
18 | 18 | ||
19 | setOrientation ( Vertical ); | 19 | setOrientation ( Vertical ); |
20 | QHBox * hb = new QHBox ( this ); | 20 | QHBox * hb = new QHBox ( this ); |
@@ -23,8 +23,9 @@ | |||
23 | setExtension ( hb ); | 23 | setExtension ( hb ); |
24 | showExtension ( true ); | 24 | showExtension ( true ); |
25 | connect ( ok, SIGNAL ( clicked()),this, SLOT (accept() ) ); | 25 | connect ( ok, SIGNAL ( clicked()),this, SLOT (accept() ) ); |
26 | connect ( cancel, SIGNAL ( clicked()),this, SLOT (reject() ) ); | 26 | connect ( cancel, SIGNAL ( clicked()),this, SLOT (reject() ) ); |
27 | //setWFlags(WStyle_MinMax ); | ||
27 | 28 | ||
28 | } | 29 | } |
29 | 30 | ||
30 | 31 | ||