summaryrefslogtreecommitdiffabout
path: root/kmicromail/qpe/qdialog_hacked.cpp
blob: 5d4d35325e3cc0c86534289ea749a2107989f806 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

#include <qdialog.h>
#include <q3hbox.h>
#include <qpushbutton.h>
#include <klocale.h>
#ifdef QDialog
#undef QDialog
#endif
    QDialog_hacked::QDialog_hacked ( QWidget * parent, const char * name, bool modal, Qt::WFlags f ) 
        :  QDialog(  parent,name,modal, f)
        {
            qDebug("New hacked QDialog for ompi desktop");
            //QTimer::singleShot(  1, this,SLOT(addaddbuttons()) );

            setOrientation ( Vertical ); 
            Q3HBox * hb = new Q3HBox ( this );
            QPushButton *ok = new QPushButton( i18n("OK"), hb );
            QPushButton *cancel = new QPushButton( i18n("Cancel"), hb );
            setExtension ( hb );
            showExtension ( true );
            connect ( ok, SIGNAL ( clicked()),this, SLOT (accept() ) );
            connect ( cancel, SIGNAL ( clicked()),this, SLOT (reject() ) );
            //setWFlags(WStyle_MinMax );

        }