author | drw <drw> | 2005-03-25 00:19:13 (UTC) |
---|---|---|
committer | drw <drw> | 2005-03-25 00:19:13 (UTC) |
commit | 934dae61a04966616c105dbabfe4576ab7608e62 (patch) (side-by-side diff) | |
tree | f0acc0bcf55e62f1cf56cc77115d51c727b7952f /libopie2/opieui/fileselector | |
parent | f4827589e37172b4955d5153ede6c8babb808ced (diff) | |
download | opie-934dae61a04966616c105dbabfe4576ab7608e62.zip opie-934dae61a04966616c105dbabfe4576ab7608e62.tar.gz opie-934dae61a04966616c105dbabfe4576ab7608e62.tar.bz2 |
Fix for bug #1613 - scale file dialog icons appropriately
Diffstat (limited to 'libopie2/opieui/fileselector') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opieui/fileselector/ofileselector.cpp | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/libopie2/opieui/fileselector/ofileselector.cpp b/libopie2/opieui/fileselector/ofileselector.cpp index dbba4b9..2746732 100644 --- a/libopie2/opieui/fileselector/ofileselector.cpp +++ b/libopie2/opieui/fileselector/ofileselector.cpp @@ -336,4 +336,6 @@ OFileViewFileListView::OFileViewFileListView( QWidget* parent, const QString& st + QPixmap pic; QToolButton *btn = new QToolButton( box ); - btn->setIconSet( Resource::loadIconSet("up") ); + pic.convertFromImage( Resource::loadImage( "up" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); + btn->setPixmap( pic ); connect(btn, SIGNAL(clicked() ), @@ -342,3 +344,4 @@ OFileViewFileListView::OFileViewFileListView( QWidget* parent, const QString& st btn = new QToolButton( box ); - btn->setIconSet( Resource::loadIconSet("home") ); + pic.convertFromImage( Resource::loadImage( "home" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); + btn->setPixmap( pic ); connect(btn, SIGNAL(clicked() ), @@ -347,3 +350,4 @@ OFileViewFileListView::OFileViewFileListView( QWidget* parent, const QString& st btn = new QToolButton( box ); - btn->setIconSet( Resource::loadIconSet("DocsIcon") ); + pic.convertFromImage( Resource::loadImage( "DocsIcon" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); + btn->setPixmap( pic ); connect(btn, SIGNAL(clicked() ), @@ -352,3 +356,4 @@ OFileViewFileListView::OFileViewFileListView( QWidget* parent, const QString& st m_btnNew = new QToolButton( box ); - m_btnNew->setIconSet( Resource::loadIconSet("new") ); + pic.convertFromImage( Resource::loadImage( "new" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); + btn->setPixmap( pic ); connect(m_btnNew, SIGNAL(clicked() ), @@ -358,3 +363,4 @@ OFileViewFileListView::OFileViewFileListView( QWidget* parent, const QString& st m_btnClose = new QToolButton( box ); - m_btnClose->setIconSet( Resource::loadIconSet("close") ); + pic.convertFromImage( Resource::loadImage( "close" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); + btn->setPixmap( pic ); connect(m_btnClose, SIGNAL(clicked() ), @@ -363,3 +369,4 @@ OFileViewFileListView::OFileViewFileListView( QWidget* parent, const QString& st btn = new QToolButton( box ); - btn->setIconSet( Resource::loadIconSet("cardmon/pcmcia") ); + pic.convertFromImage( Resource::loadImage( "cardmon/pcmcia" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); + btn->setPixmap( pic ); |