summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/obexpopup.cpp
Unidiff
Diffstat (limited to 'noncore/net/opietooth/manager/obexpopup.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/obexpopup.cpp41
1 files changed, 41 insertions, 0 deletions
diff --git a/noncore/net/opietooth/manager/obexpopup.cpp b/noncore/net/opietooth/manager/obexpopup.cpp
new file mode 100644
index 0000000..a550648
--- a/dev/null
+++ b/noncore/net/opietooth/manager/obexpopup.cpp
@@ -0,0 +1,41 @@
1
2#include <qtimer.h>
3
4#include "obexdialog.h"
5#include "obexpopup.h"
6
7using namespace OpieTooth;
8
9/*
10 * c'tor init the QAction
11 */
12ObexPopup::ObexPopup()
13 : QPopupMenu() {
14 qWarning("RfcCommPopup c'tor");
15
16 QAction* a;
17
18 /* connect action */
19 a = new QAction( ); // so it's get deleted
20 a->setText("Push file");
21 a->addTo( this );
22 connect( a, SIGNAL( activated() ),
23 this, SLOT( slotPush() ) );
24};
25
26
27ObexPopup::~ObexPopup() {
28}
29
30
31void ObexPopup::slotPush() {
32
33 qWarning("push something");
34
35
36 ObexDialog obexDialog;
37 obexDialog.showMaximized();
38 obexDialog.exec();
39}
40
41