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

svn at pcbsd.org svn at pcbsd.org
Thu Apr 4 09:53:28 PDT 2013


Author: kenmoore
Date: 2013-04-04 16:53:28 +0000 (Thu, 04 Apr 2013)
New Revision: 22065

Modified:
   pcbsd-projects/PCDM/loginWidget.cpp
   pcbsd-projects/PCDM/pcdm-gui.cpp
   pcbsd-projects/PCDM/themeStruct.cpp
Log:
Fix a typo in the new theme directory implementation, and try another fix for the sizing



Modified: pcbsd-projects/PCDM/loginWidget.cpp
===================================================================
--- pcbsd-projects/PCDM/loginWidget.cpp	2013-04-04 16:23:09 UTC (rev 22064)
+++ pcbsd-projects/PCDM/loginWidget.cpp	2013-04-04 16:53:28 UTC (rev 22065)
@@ -31,7 +31,7 @@
   listUserBig = new QListWidget;
   	listUserBig->setFocusPolicy(Qt::StrongFocus);
   	listUserBig->setSelectionMode(QAbstractItemView::SingleSelection);
-  	listUserBig->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Minimum);
+  	//listUserBig->setSizePolicy(QSizePolicy::Preferred);
   listUsers = new QComboBox;
   	listUsers->setFocusPolicy(Qt::NoFocus); //big one gets keyboard focus instead
   linePassword = new QLineEdit;

Modified: pcbsd-projects/PCDM/pcdm-gui.cpp
===================================================================
--- pcbsd-projects/PCDM/pcdm-gui.cpp	2013-04-04 16:23:09 UTC (rev 22064)
+++ pcbsd-projects/PCDM/pcdm-gui.cpp	2013-04-04 16:53:28 UTC (rev 22065)
@@ -421,7 +421,6 @@
     loginW->displayHostName(hostname);	  
   }
   loginW->retranslateUi();
-  loginW->updateGeometry(); //make sure the widget is the proper size
   //The desktop switcher
   deSwitcher->removeAllItems();
   QStringList deList = Backend::getAvailableDesktops();

Modified: pcbsd-projects/PCDM/themeStruct.cpp
===================================================================
--- pcbsd-projects/PCDM/themeStruct.cpp	2013-04-04 16:23:09 UTC (rev 22064)
+++ pcbsd-projects/PCDM/themeStruct.cpp	2013-04-04 16:53:28 UTC (rev 22065)
@@ -20,9 +20,9 @@
   //Get the directory the current theme file is in
   int li = filePath.lastIndexOf("/");
   QString currDir = filePath;
-  if(li > 0){ currDir.truncate(li); } //should keep the "/" on the end
+  if(li > 0){ currDir.truncate(li); }
   else{ currDir.clear(); }
-  qDebug() << "currDir" << currDir << "li" << li << "filePath" << filePath;
+  if(!currDir.endsWith("/")){ currDir.append("/"); }
   //Now initialize variables for the file search
   QString iconFileDir;
   int numspacers = 0;



More information about the Commits mailing list