Diffstat (limited to 'noncore/apps/advancedfm/advancedfmData.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/advancedfm/advancedfmData.cpp | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/noncore/apps/advancedfm/advancedfmData.cpp b/noncore/apps/advancedfm/advancedfmData.cpp index 3664c75..b43d2ba 100644 --- a/noncore/apps/advancedfm/advancedfmData.cpp +++ b/noncore/apps/advancedfm/advancedfmData.cpp @@ -15,2 +15,3 @@ #include <opie2/odebug.h> +#include <qpe/applnk.h> #include <qpe/storage.h> @@ -53,4 +54,6 @@ void AdvancedFm::init() { + QPixmap pm; cdUpButton = new QToolButton( 0,"cdUpButton"); - cdUpButton->setPixmap(Resource::loadPixmap("up")); + pm.convertFromImage( Resource::loadImage( "up" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); + cdUpButton->setPixmap( pm ); cdUpButton->setAutoRaise( true ); @@ -59,3 +62,4 @@ void AdvancedFm::init() { qpeDirButton= new QToolButton( 0,"QPEButton"); - qpeDirButton->setPixmap( Resource::loadPixmap("launcher/opielogo16x16"));//,"",this,"QPEButton"); + pm.convertFromImage( Resource::loadImage( "logo/opielogo" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); + qpeDirButton->setPixmap( pm );//,"",this,"QPEButton"); qpeDirButton->setAutoRaise( true ); @@ -64,3 +68,4 @@ void AdvancedFm::init() { cfButton = new QToolButton( 0, "CFButton"); - cfButton->setPixmap(Resource::loadPixmap("cardmon/pcmcia")); + pm.convertFromImage( Resource::loadImage( "cardmon/pcmcia" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); + cfButton->setPixmap( pm ); cfButton->setAutoRaise( true ); @@ -69,3 +74,4 @@ void AdvancedFm::init() { sdButton = new QToolButton( 0, "SDButton"); - sdButton->setPixmap(Resource::loadPixmap("advancedfm/sdcard")); + pm.convertFromImage( Resource::loadImage( "advancedfm/sdcard" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); + sdButton->setPixmap( pm ); sdButton->setAutoRaise( true ); @@ -74,3 +80,4 @@ void AdvancedFm::init() { docButton = new QToolButton( 0,"docsButton"); - docButton->setPixmap(Resource::loadPixmap("DocsIcon")); + pm.convertFromImage( Resource::loadImage( "DocsIcon" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); + docButton->setPixmap( pm ); docButton->setAutoRaise( true ); @@ -79,3 +86,4 @@ void AdvancedFm::init() { homeButton = new QToolButton( 0, "homeButton"); - homeButton->setPixmap(Resource::loadPixmap("home")); + pm.convertFromImage( Resource::loadImage( "home" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); + homeButton->setPixmap( pm ); homeButton->setAutoRaise( true ); |