Diffstat (limited to 'noncore/net/opietooth/manager/obexpopup.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/obexpopup.cpp | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/noncore/net/opietooth/manager/obexpopup.cpp b/noncore/net/opietooth/manager/obexpopup.cpp index a550648..d147d52 100644 --- a/noncore/net/opietooth/manager/obexpopup.cpp +++ b/noncore/net/opietooth/manager/obexpopup.cpp @@ -1,19 +1,24 @@ -#include <qtimer.h> - #include "obexdialog.h" #include "obexpopup.h" +/* OPIE */ +#include <qpe/qpeapplication.h> + +/* QT */ +#include <qtimer.h> + using namespace OpieTooth; /* * c'tor init the QAction */ ObexPopup::ObexPopup() - : QPopupMenu() { + : QPopupMenu() +{ qWarning("RfcCommPopup c'tor"); QAction* a; /* connect action */ a = new QAction( ); // so it's get deleted @@ -21,21 +26,20 @@ ObexPopup::ObexPopup() a->addTo( this ); connect( a, SIGNAL( activated() ), this, SLOT( slotPush() ) ); }; -ObexPopup::~ObexPopup() { -} +ObexPopup::~ObexPopup() +{} -void ObexPopup::slotPush() { +void ObexPopup::slotPush() +{ qWarning("push something"); - ObexDialog obexDialog; - obexDialog.showMaximized(); - obexDialog.exec(); + QPEApplication::execDialog( &obexDialog ); } |