QTfrontend/igbox.cpp
changeset 1810 4059cafd1da7
parent 1424 2b45d88716b0
child 2072 6e0fcbcc3f60
--- a/QTfrontend/igbox.cpp	Thu Feb 19 14:51:57 2009 +0000
+++ b/QTfrontend/igbox.cpp	Thu Feb 19 14:52:32 2009 +0000
@@ -25,7 +25,8 @@
 
 IconedGroupBox::IconedGroupBox(QWidget * parent)
 {
-	padding = 82;
+	titleLeftPadding = 82;
+    contentTopPadding = 22;
 }
 
 void IconedGroupBox::setIcon(const QIcon & icon)
@@ -35,16 +36,16 @@
 			"IconedGroupBox{"
 				"margin-top: 46px;"
 				"margin-left: 12px;"
-				"padding: 22px 0px 0px 0px;"
+                "padding: %1px 2px 5px 2px;"
 				"}"
 			"IconedGroupBox::title{"
 				"subcontrol-origin: margin;"
 				"subcontrol-position: top left;"
-				"padding-left: %1px;"
-				"padding-top: 26px;"
+				"padding-left: %2px;"
+				"padding-top: 25px;"
 				"text-align: left;"
 				"}"
-				).arg(padding)
+				).arg(contentTopPadding).arg(titleLeftPadding)
 		);
 
 	this->icon = icon;
@@ -64,5 +65,10 @@
 
 void IconedGroupBox::setTitleTextPadding(int px)
 {
-	padding = px;
+	titleLeftPadding = px;
 }
+
+void IconedGroupBox::setContentTopPadding(int px)
+{
+	contentTopPadding = px;
+}