QTfrontend/togglebutton.cpp
changeset 1933 7b8b0a9032d3
parent 1932 f586d75c8b6a
child 2377 f3fab2b09e0c
--- a/QTfrontend/togglebutton.cpp	Thu Apr 02 20:37:03 2009 +0000
+++ b/QTfrontend/togglebutton.cpp	Thu Apr 02 20:53:52 2009 +0000
@@ -32,6 +32,8 @@
 	pmChecked.load(img);
 	pmDisabled.load(img);
 
+	pbMain->setMaximumWidth(pmChecked.width() + 6);
+
 	l->addWidget(pbMain);
 
 	painter->begin(&pmDisabled);
@@ -44,7 +46,8 @@
 	connect(pbMain, SIGNAL(toggled(bool)), this, SLOT(eventToggled(bool)));
 
 	lbMain = new QLabel(this);
-	lbMain->setFixedHeight(32);
+	lbMain->setWordWrap(true);
+//	lbMain->setFixedHeight(32);
 
 	l->addWidget(lbMain);
 }