blob: 2a6dad01ed04baec7f7b93fb600d3a14801317ea (
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
|
#include "popuphelper.h"
using namespace OpieTooth;
PopupHelper::PopupHelper() {
init();
}
PopupHelper::~PopupHelper() {
}
void PopupHelper::insert( int id, popupFactory fact ) {
m_map.insert(id, fact );
}
QPopupMenu* PopupHelper::find( int id ) {
FactoryMap::Iterator it = m_map.find(id );
if ( it != m_map.end() ) {
popupFactory fact = it.data();
return (*fact)();
}
return 0l;
}
void PopupHelper::init() {
}
|