[PC-BSD Commits] r21536 - pcbsd-projects/PCDM
svn at pcbsd.org
svn at pcbsd.org
Fri Feb 15 08:05:16 PST 2013
Author: kenmoore
Date: 2013-02-15 16:05:16 +0000 (Fri, 15 Feb 2013)
New Revision: 21536
Modified:
pcbsd-projects/PCDM/pcdm-gui.cpp
pcbsd-projects/PCDM/themeStruct.cpp
Log:
Narrow down on the spacer issue with PCDM
Modified: pcbsd-projects/PCDM/pcdm-gui.cpp
===================================================================
--- pcbsd-projects/PCDM/pcdm-gui.cpp 2013-02-15 15:59:05 UTC (rev 21535)
+++ pcbsd-projects/PCDM/pcdm-gui.cpp 2013-02-15 16:05:16 UTC (rev 21536)
@@ -202,7 +202,7 @@
bool isVertical = (spacers[i].section("::",0,0) == "true");
int row = spacers[i].section("::",1,1).toInt();
int col = spacers[i].section("::",2,2).toInt();
- qDebug() << "Add Spacer:" << isVertical << row << col;
+ //qDebug() << "Add Spacer:" << isVertical << row << col;
if(isVertical){
grid->setRowStretch(row,1);
}else{ //horizontal
Modified: pcbsd-projects/PCDM/themeStruct.cpp
===================================================================
--- pcbsd-projects/PCDM/themeStruct.cpp 2013-02-15 15:59:05 UTC (rev 21535)
+++ pcbsd-projects/PCDM/themeStruct.cpp 2013-02-15 16:05:16 UTC (rev 21536)
@@ -56,6 +56,7 @@
items[index].isVertical = (val.section("::",0,0).toLower() == "vertical");
//Now get the location
val = val.section("::",1,1).remove("[").remove("]").simplified();
+ qDebug() << "ADDSPACER:" << line << val;
items[index].x1 = val.section(",",0,0).section("-",0,0).toInt();
items[index].x2 = -1;
items[index].y1 = val.section(",",1,1).section("-",0,0).toInt();
@@ -231,7 +232,7 @@
if( itemNames[i].startsWith("spacer") ){
if(items[i].isVertical){ isvert="true"; }
else{ isvert="false"; }
- spc << isvert + "::" + QString(items[i].x1) +"::"+ QString(items[i].y1);
+ spc << isvert + "::" + QString::number(items[i].x1) +"::"+ QString::number(items[i].y1);
}
}
qDebug() << "Spacers:" << spc;
More information about the Commits
mailing list