author | harlekin <harlekin> | 2002-08-07 14:25:20 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-08-07 14:25:20 (UTC) |
commit | 7effde67fd121736ec658e690858c6c54bd6d125 (patch) (unidiff) | |
tree | 3209a4af6ce12e1dbfeccb67b71ecdda1c029256 /core/applets/cardmon/cardmon.cpp | |
parent | c829f4047a79947310b8ae759594c3fcf70a6df7 (diff) | |
download | opie-7effde67fd121736ec658e690858c6c54bd6d125.zip opie-7effde67fd121736ec658e690858c6c54bd6d125.tar.gz opie-7effde67fd121736ec658e690858c6c54bd6d125.tar.bz2 |
small gcc3.x fix
Diffstat (limited to 'core/applets/cardmon/cardmon.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/cardmon/cardmon.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/applets/cardmon/cardmon.cpp b/core/applets/cardmon/cardmon.cpp index ffead4d..e94f1dc 100644 --- a/core/applets/cardmon/cardmon.cpp +++ b/core/applets/cardmon/cardmon.cpp | |||
@@ -56,25 +56,25 @@ CardMonitor::CardMonitor( QWidget *parent ) : QWidget( parent ), | |||
56 | 56 | ||
57 | setFixedSize( pm.size() ); | 57 | setFixedSize( pm.size() ); |
58 | getStatusPcmcia(TRUE); | 58 | getStatusPcmcia(TRUE); |
59 | getStatusSd(TRUE); | 59 | getStatusSd(TRUE); |
60 | repaint(FALSE); | 60 | repaint(FALSE); |
61 | popupMenu = 0; | 61 | popupMenu = 0; |
62 | } | 62 | } |
63 | 63 | ||
64 | CardMonitor::~CardMonitor() { | 64 | CardMonitor::~CardMonitor() { |
65 | if( popupMenu ) { delete popupMenu; } | 65 | if( popupMenu ) { delete popupMenu; } |
66 | } | 66 | } |
67 | 67 | ||
68 | void CardMonitor::popUp( QString message, QString icon = QString::null ) { | 68 | void CardMonitor::popUp( QString message, QString icon ) { |
69 | if ( ! popupMenu ) { | 69 | if ( ! popupMenu ) { |
70 | popupMenu = new QPopupMenu(); | 70 | popupMenu = new QPopupMenu(); |
71 | } | 71 | } |
72 | popupMenu->clear(); | 72 | popupMenu->clear(); |
73 | if( icon.isEmpty() ) { | 73 | if( icon.isEmpty() ) { |
74 | popupMenu->insertItem( message, 0 ); | 74 | popupMenu->insertItem( message, 0 ); |
75 | } else { | 75 | } else { |
76 | popupMenu->insertItem( QIconSet ( Resource::loadPixmap ( icon )), | 76 | popupMenu->insertItem( QIconSet ( Resource::loadPixmap ( icon )), |
77 | message, 0 ); | 77 | message, 0 ); |
78 | } | 78 | } |
79 | 79 | ||
80 | QPoint p = mapToGlobal ( QPoint ( 0, 0 )); | 80 | QPoint p = mapToGlobal ( QPoint ( 0, 0 )); |