summaryrefslogtreecommitdiff
path: root/client/widgets/pushbutton.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/widgets/pushbutton.cc')
-rw-r--r--client/widgets/pushbutton.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/client/widgets/pushbutton.cc b/client/widgets/pushbutton.cc
index 0a01947..1e22190 100644
--- a/client/widgets/pushbutton.cc
+++ b/client/widgets/pushbutton.cc
@@ -33,11 +33,13 @@ PushButton::PushButton(QDomNode node)
QDomElement elem = node.toElement();
if(elem.hasAttribute("width")) {
- resize(elem.attribute("width").toInt(), height());
+ //resize(elem.attribute("width").toInt(), height());
+ setMinimumWidth(elem.attribute("width").toInt());
}
if(elem.hasAttribute("height")) {
- resize(width(), elem.attribute("height").toInt());
+ //resize(width(), elem.attribute("height").toInt());
+ setMinimumHeight(elem.attribute("height").toInt());
}
if(elem.hasAttribute("caption")) {