summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/popuphelper.cpp
authorzecke <zecke>2002-07-09 18:28:19 (UTC)
committer zecke <zecke>2002-07-09 18:28:19 (UTC)
commit411ac6f9199b1aae2b6a40e7a8cf6bfea260acba (patch) (unidiff)
tree218836d6509d2dcaba3c6306f9f488b759169b1a /noncore/net/opietooth/manager/popuphelper.cpp
parent5f549398401acc5591ffcb67459dbf55ea323b91 (diff)
downloadopie-411ac6f9199b1aae2b6a40e7a8cf6bfea260acba.zip
opie-411ac6f9199b1aae2b6a40e7a8cf6bfea260acba.tar.gz
opie-411ac6f9199b1aae2b6a40e7a8cf6bfea260acba.tar.bz2
Add a generic class for the sensitive QPopupMenu
Diffstat (limited to 'noncore/net/opietooth/manager/popuphelper.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/popuphelper.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/noncore/net/opietooth/manager/popuphelper.cpp b/noncore/net/opietooth/manager/popuphelper.cpp
new file mode 100644
index 0000000..2a6dad0
--- a/dev/null
+++ b/noncore/net/opietooth/manager/popuphelper.cpp
@@ -0,0 +1,25 @@
1
2#include "popuphelper.h"
3
4using namespace OpieTooth;
5
6PopupHelper::PopupHelper() {
7 init();
8}
9PopupHelper::~PopupHelper() {
10
11}
12void PopupHelper::insert( int id, popupFactory fact ) {
13 m_map.insert(id, fact );
14}
15QPopupMenu* PopupHelper::find( int id ) {
16 FactoryMap::Iterator it = m_map.find(id );
17 if ( it != m_map.end() ) {
18 popupFactory fact = it.data();
19 return (*fact)();
20 }
21 return 0l;
22}
23void PopupHelper::init() {
24
25}