[PC-BSD Commits] r21713 - pcbsd/current/src-qt4/pc-controlpanel

svn at pcbsd.org svn at pcbsd.org
Wed Mar 6 11:51:37 PST 2013


Author: kris
Date: 2013-03-06 19:51:36 +0000 (Wed, 06 Mar 2013)
New Revision: 21713

Modified:
   pcbsd/current/src-qt4/pc-controlpanel/grouplist.cpp
   pcbsd/current/src-qt4/pc-controlpanel/mainwnd.cpp
   pcbsd/current/src-qt4/pc-controlpanel/qautoexpandlist.cpp
Log:

Add some spacing code to control panel, fixes the icons being un-aligned



Modified: pcbsd/current/src-qt4/pc-controlpanel/grouplist.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-controlpanel/grouplist.cpp	2013-03-06 19:24:38 UTC (rev 21712)
+++ pcbsd/current/src-qt4/pc-controlpanel/grouplist.cpp	2013-03-06 19:51:36 UTC (rev 21713)
@@ -40,7 +40,7 @@
 	setViewMode(QListView::IconMode);
 	setWordWrap(true);
 	setFrameStyle(QFrame::NoFrame);
-        //setSizePolicy(QSizePolicy(QSizePlicy::Preferred, QSizePlicy::Minimum));
+        //setSizePolicy(QSizePolicy(QSizePolicy::Preferred, QSizePolicy::Minimum));
 }
 
 ///////////////////////////////////////////////////////////////////////////////

Modified: pcbsd/current/src-qt4/pc-controlpanel/mainwnd.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-controlpanel/mainwnd.cpp	2013-03-06 19:24:38 UTC (rev 21712)
+++ pcbsd/current/src-qt4/pc-controlpanel/mainwnd.cpp	2013-03-06 19:51:36 UTC (rev 21713)
@@ -22,6 +22,7 @@
 *   OTHER DEALINGS IN THE SOFTWARE.                                       *
 ***************************************************************************/
 
+#include <QDebug>
 #include "mainwnd.h"
 #include "ui_mainwnd.h"
 #include "deinfo.h"
@@ -165,6 +166,17 @@
         ui->statusBar->clearMessage();
         ui->centralWidget->setEnabled(true);
 
+        if( NetworkingList->sizeHintForRow(0) > 0 ) {
+          SystemList->setGridSize(QSize(NetworkingList->sizeHintForColumn(0), NetworkingList->sizeHintForRow(0)));
+          SoftwareList->setGridSize(QSize(NetworkingList->sizeHintForColumn(0), NetworkingList->sizeHintForRow(0)));
+          HardwareList->setGridSize(QSize(NetworkingList->sizeHintForColumn(0), NetworkingList->sizeHintForRow(0)));
+          ToolsList->setGridSize(QSize(NetworkingList->sizeHintForColumn(0), NetworkingList->sizeHintForRow(0)));
+          DEList->setGridSize(QSize(NetworkingList->sizeHintForColumn(0), NetworkingList->sizeHintForRow(0)));
+          NetworkingList->setGridSize(QSize(NetworkingList->sizeHintForColumn(0), NetworkingList->sizeHintForRow(0)));
+          //qDebug() << NetworkingList->sizeHintForRow(0);
+          //qDebug() << NetworkingList->sizeHintForColumn(0);
+        } 
+
         mRefreshMutex.unlock();
 }
 

Modified: pcbsd/current/src-qt4/pc-controlpanel/qautoexpandlist.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-controlpanel/qautoexpandlist.cpp	2013-03-06 19:24:38 UTC (rev 21712)
+++ pcbsd/current/src-qt4/pc-controlpanel/qautoexpandlist.cpp	2013-03-06 19:51:36 UTC (rev 21713)
@@ -28,6 +28,7 @@
 	QListWidget(parent), mIsExpandEnabled(true)
 {
 	setResizeMode(QListView::Adjust);
+        //setGridSize(QSize(100,100));
 }
 
 ///////////////////////////////////////////////////////////////////////////////



More information about the Commits mailing list