QTfrontend/igbox.cpp
changeset 1248 8c77eec56bf4
parent 1209 7f6cb1d7be2a
child 1424 2b45d88716b0
--- a/QTfrontend/igbox.cpp	Sat Sep 06 12:35:34 2008 +0000
+++ b/QTfrontend/igbox.cpp	Mon Sep 08 18:08:47 2008 +0000
@@ -25,25 +25,26 @@
 
 IconedGroupBox::IconedGroupBox(QWidget * parent)
 {
-
+	padding = 82;
 }
 
 void IconedGroupBox::setIcon(const QIcon & icon)
 {
 	this->icon = icon;
-	setStyleSheet(
+	setStyleSheet(QString(
 		"IconedGroupBox{"
 			"margin-top: 46px;"
 			"margin-left: 12px;"
-			"padding-top: 22px;"
+			"padding: 22px 0px 0px 0px;"
 			"}"
 		"IconedGroupBox::title{"
 			"subcontrol-origin: margin;"
 			"subcontrol-position: top left;"
-			"padding-left: 82px;"
+			"padding-left: %1px;"
 			"padding-top: 26px;"
 			"text-align: left;"
 			"}"
+			).arg(padding)
 	);
 }
 
@@ -57,3 +58,8 @@
 
 	icon.paint(&painter, QRect(QPoint(0, 0), icon.actualSize(size())));
 }
+
+void IconedGroupBox::setTitleTextPadding(int px)
+{
+	padding = px;
+}