summaryrefslogtreecommitdiff
authordrw <drw>2005-03-02 19:32:43 (UTC)
committer drw <drw>2005-03-02 19:32:43 (UTC)
commit9f3e0913c7b01c1e14f907e756999b9d9bf9ceef (patch) (side-by-side diff)
treec117c38bbbeb630adbe2f25025ff97dc02475a88
parentaf157881a6265b1ea9e74d61853c2d3d865a6080 (diff)
downloadopie-9f3e0913c7b01c1e14f907e756999b9d9bf9ceef.zip
opie-9f3e0913c7b01c1e14f907e756999b9d9bf9ceef.tar.gz
opie-9f3e0913c7b01c1e14f907e756999b9d9bf9ceef.tar.bz2
Scale icons approprtely
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/advancedfm/advancedfm.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp
index 56e3282..fd81313 100644
--- a/noncore/apps/advancedfm/advancedfm.cpp
+++ b/noncore/apps/advancedfm/advancedfm.cpp
@@ -138,8 +138,8 @@ void AdvancedFm::populateView() {
if( !QDir( fi->filePath() ).isReadable()) //is directory
- pm = Resource::loadPixmap( "lockedfolder" );
+ pm.convertFromImage( Resource::loadImage( "lockedfolder" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) );
else
- pm= Resource::loadPixmap( "folder" );
+ pm.convertFromImage( Resource::loadImage( "folder" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) );
}
else if ( fs == "vfat" && fileInfo.filePath().contains("/bin") ) {
- pm = Resource::loadPixmap( "exec");
+ pm.convertFromImage( Resource::loadImage( "exec" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) );
}
@@ -148,6 +148,6 @@ void AdvancedFm::populateView() {
| fileInfo.permission( QFileInfo::ExeOther)) && fs != "vfat" ) {
- pm = Resource::loadPixmap( "exec");
+ pm.convertFromImage( Resource::loadImage( "exec" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) );
}
else if( !fi->isReadable() ) {
- pm = Resource::loadPixmap( "locked" );
+ pm.convertFromImage( Resource::loadImage( "locked" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) );
}
@@ -162,3 +162,3 @@ void AdvancedFm::populateView() {
// odebug << " overlay link image" << oendl;
- pm= Resource::loadPixmap( "advancedfm/symlink" );
+ pm.convertFromImage( Resource::loadImage( "advancedfm/symlink" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) );
// pm= Resource::loadPixmap( "folder" );
@@ -169,3 +169,3 @@ void AdvancedFm::populateView() {
}
- item->setPixmap( 0,pm);
+ item->setPixmap( 0, pm );