[PC-BSD Commits] r21666 - pcbsd-projects/PCDM

svn at pcbsd.org svn at pcbsd.org
Wed Feb 27 11:19:37 PST 2013


Author: kenmoore
Date: 2013-02-27 19:19:37 +0000 (Wed, 27 Feb 2013)
New Revision: 21666

Modified:
   pcbsd-projects/PCDM/fancySwitcher.cpp
Log:
Adjust the fancy switcher size to show more of the neighboring icons



Modified: pcbsd-projects/PCDM/fancySwitcher.cpp
===================================================================
--- pcbsd-projects/PCDM/fancySwitcher.cpp	2013-02-27 17:16:08 UTC (rev 21665)
+++ pcbsd-projects/PCDM/fancySwitcher.cpp	2013-02-27 19:19:37 UTC (rev 21666)
@@ -37,7 +37,7 @@
   iconViewer->setVerticalScrollBarPolicy( Qt::ScrollBarAlwaysOff );
   iconViewer->setViewportUpdateMode(QGraphicsView::SmartViewportUpdate);
   if(isHorizontal){
-    iconViewer->setFixedSize(2*iconSize,iconSize+2);
+    iconViewer->setFixedSize(3*iconSize,iconSize+2);
     pushBack->setIcon(QIcon(":images/left.png"));
     pushBack->setShortcut(tr("Ctrl+Left"));
     pushForward->setIcon(QIcon(":images/right.png"));
@@ -47,7 +47,7 @@
     layout->addWidget(pushForward,1,3);
     layout->addWidget(textLabel,2,1,1,3);
   }else{ //vertical
-    iconViewer->setFixedSize(iconSize+2,2*iconSize);
+    iconViewer->setFixedSize(iconSize+2,3*iconSize);
     pushBack->setIcon(QIcon(":images/up.png"));
     pushBack->setShortcut(tr("Ctrl+Up"));
     pushForward->setIcon(QIcon(":images/down.png"));
@@ -313,9 +313,9 @@
   pushForward->setIconSize(QSize(iconSize/2,iconSize/2));
   //Update the iconViewer sizes
   if(isHorizontal){
-    iconViewer->setFixedSize(2*iconSize,iconSize+2);
+    iconViewer->setFixedSize(3*iconSize,iconSize+2);
   }else{
-    iconViewer->setFixedSize(iconSize+2,2*iconSize);
+    iconViewer->setFixedSize(iconSize+2,3*iconSize);
   }
   updateIconViewer();
 }



More information about the Commits mailing list