summaryrefslogtreecommitdiff
authoralwin <alwin>2005-04-10 15:08:36 (UTC)
committer alwin <alwin>2005-04-10 15:08:36 (UTC)
commita6670730bf0b36b243303e581c4a80d29851c12b (patch) (side-by-side diff)
treeee32e2014def6e99315292d48daa9ae8661797c3
parent7a49d0610ae9bc1cadacf9d572c671009cb3c088 (diff)
downloadopie-a6670730bf0b36b243303e581c4a80d29851c12b.zip
opie-a6670730bf0b36b243303e581c4a80d29851c12b.tar.gz
opie-a6670730bf0b36b243303e581c4a80d29851c12b.tar.bz2
using big icons on small screens makes no sense. Half of screen will
just used by unsharp icons - not a good idea. Now it depends on desktopsize
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opieui/fileselector/ofileselector.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/libopie2/opieui/fileselector/ofileselector.cpp b/libopie2/opieui/fileselector/ofileselector.cpp
index f3e7501..a30bd8b 100644
--- a/libopie2/opieui/fileselector/ofileselector.cpp
+++ b/libopie2/opieui/fileselector/ofileselector.cpp
@@ -322,2 +322,3 @@ OFileViewFileListView::OFileViewFileListView( QWidget* parent, const QString& st
m_currentDir = startDir;
+ bool bigicons = qApp->desktop()->size().width()>330;
@@ -338,3 +339,3 @@ OFileViewFileListView::OFileViewFileListView( QWidget* parent, const QString& st
QToolButton *btn = new QToolButton( box );
- btn->setUsesBigPixmap( true );
+ btn->setUsesBigPixmap(bigicons);
btn->setPixmap( Opie::Core::OResource::loadPixmap( "up", Opie::Core::OResource::SmallIcon ) );
@@ -344,3 +345,3 @@ OFileViewFileListView::OFileViewFileListView( QWidget* parent, const QString& st
btn = new QToolButton( box );
- btn->setUsesBigPixmap( true );
+ btn->setUsesBigPixmap(bigicons);
btn->setPixmap( Opie::Core::OResource::loadPixmap( "home", Opie::Core::OResource::SmallIcon ) );
@@ -350,3 +351,3 @@ OFileViewFileListView::OFileViewFileListView( QWidget* parent, const QString& st
btn = new QToolButton( box );
- btn->setUsesBigPixmap( true );
+ btn->setUsesBigPixmap(bigicons);
btn->setPixmap( Opie::Core::OResource::loadPixmap( "DocsIcon", Opie::Core::OResource::SmallIcon ) );
@@ -356,3 +357,3 @@ OFileViewFileListView::OFileViewFileListView( QWidget* parent, const QString& st
m_btnNew = new QToolButton( box );
- m_btnNew->setUsesBigPixmap( true );
+ m_btnNew->setUsesBigPixmap(bigicons);
m_btnNew->setPixmap( Opie::Core::OResource::loadPixmap( "new", Opie::Core::OResource::SmallIcon ) );
@@ -363,3 +364,3 @@ OFileViewFileListView::OFileViewFileListView( QWidget* parent, const QString& st
m_btnClose = new QToolButton( box );
- m_btnClose->setUsesBigPixmap( true );
+ m_btnClose->setUsesBigPixmap(bigicons);
m_btnClose->setPixmap( Opie::Core::OResource::loadPixmap( "close", Opie::Core::OResource::SmallIcon ) );
@@ -369,3 +370,3 @@ OFileViewFileListView::OFileViewFileListView( QWidget* parent, const QString& st
btn = new QToolButton( box );
- btn->setUsesBigPixmap( true );
+ btn->setUsesBigPixmap(bigicons);
btn->setPixmap( Opie::Core::OResource::loadPixmap( "cardmon/pcmcia", Opie::Core::OResource::SmallIcon ) );