[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdegraphics/kamera/kcontrol
From:       Jonathan Michael Thomas <echidnaman () kubuntu ! org>
Date:       2010-12-30 17:31:17
Message-ID: 20101230173117.74292AC8AC () svn ! kde ! org
[Download RAW message or body]

SVN commit 1210323 by jmthomas:

Port from Q3Grid to QGridLayout. This was very straightforward, but since I cannot \
actually access this dialog I won't be doing any other Q3* porting.


 M  +8 -4      kameraconfigdialog.cpp  


--- trunk/KDE/kdegraphics/kamera/kcontrol/kameraconfigdialog.cpp #1210322:1210323
@@ -21,7 +21,6 @@
 
 */
 #include <qlayout.h>
-#include <q3grid.h>
 #include <qlabel.h>
 #include <Q3GroupBox>
 #include <qcheckbox.h>
@@ -116,11 +115,16 @@
 		{
 			gp_widget_get_value(widget, &widget_value_string);
 
-			Q3Grid *grid = new Q3Grid(2, Qt::Horizontal, parent);
+			QWidget *grid = new QWidget(parent);
+			QGridLayout *gridLayout = new QGridLayout(grid);
+			gridLayout->setSpacing(spacingHint());
+			grid->setLayout(gridLayout);
 			parent->layout()->addWidget(grid);
-			grid->setSpacing(spacingHint());
-			new QLabel(QString::fromLocal8Bit( widget_label )+':', grid);
+			QLabel *label = new QLabel(QString::fromLocal8Bit( widget_label )+':', grid);
 			QLineEdit *lineEdit = new QLineEdit(widget_value_string, grid);
+
+			gridLayout->addWidget(label, 0, 0, Qt::AlignLeft);
+			gridLayout->addWidget(label, 0, 1, Qt::AlignRight);
 			m_wmap.insert(widget, lineEdit);
 
 			if (!whats_this.isEmpty())


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic