From c8662dc632987a317386b923e24acb9507859528 Mon Sep 17 00:00:00 2001 From: zautrix Date: Sat, 30 Oct 2004 15:56:24 +0000 Subject: ompi desktop compile hack --- (limited to 'kmicromail/qpe/qdialog_hacked.cpp') diff --git a/kmicromail/qpe/qdialog_hacked.cpp b/kmicromail/qpe/qdialog_hacked.cpp new file mode 100644 index 0000000..e2ce21a --- a/dev/null +++ b/kmicromail/qpe/qdialog_hacked.cpp @@ -0,0 +1,30 @@ + +#include +#include +#include +#include +#ifdef QDialog +#undef QDialog +#endif + QDialog_hacked::QDialog_hacked ( QWidget * parent, const char * name, bool modal, WFlags f ) + : QDialog( parent,name,modal) + { + qDebug("******************** "); + qDebug("******************** "); + qDebug("******************** "); + qDebug("******************** "); + qDebug("New hacked QDialog == KDialogBase "); + //QTimer::singleShot( 1, this,SLOT(addaddbuttons()) ); + + setOrientation ( Vertical ); + QHBox * hb = new QHBox ( 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() ) ); + + } + + -- cgit v0.9.0.2