Diffstat (limited to 'noncore/settings/networksettings2/networksettings2/netnode.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/networksettings2/netnode.cpp | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/noncore/settings/networksettings2/networksettings2/netnode.cpp b/noncore/settings/networksettings2/networksettings2/netnode.cpp index dc66aff..1182543 100644 --- a/noncore/settings/networksettings2/networksettings2/netnode.cpp +++ b/noncore/settings/networksettings2/networksettings2/netnode.cpp | |||
@@ -1,3 +1,5 @@ | |||
1 | #include <qpe/qpeapplication.h> | ||
2 | #include <time.h> | 1 | #include <time.h> |
2 | #include <qpe/qpeapplication.h> | ||
3 | #include <qpainter.h> | ||
4 | #include <qbitmap.h> | ||
3 | #include <qtextstream.h> | 5 | #include <qtextstream.h> |
@@ -249,4 +251,13 @@ static char * State2PixmapTbl[] = { | |||
249 | QPixmap NodeCollection::devicePixmap( void ) { | 251 | QPixmap NodeCollection::devicePixmap( void ) { |
250 | return NSResources->getPixmap( | 252 | QPixmap pm = NSResources->getPixmap( |
251 | device()->netNode()->pixmapName()+"-large" ); | 253 | getToplevel()->nextNode()->pixmapName()+"-large"); |
254 | |||
255 | QPixmap Mini = NSResources->getPixmap( device()->netNode()->pixmapName() ); | ||
256 | |||
257 | QPainter painter( &pm ); | ||
258 | painter.drawPixmap( pm.width()-Mini.width(), | ||
259 | pm.height()-Mini.height(), | ||
260 | Mini ); | ||
261 | pm.setMask( pm.createHeuristicMask( TRUE ) ); | ||
262 | return pm; | ||
252 | } | 263 | } |