From a7ce3d715138fffe0817855468a38f6ca46b7c60 Mon Sep 17 00:00:00 2001 From: senator Date: Thu, 11 Oct 2007 07:49:03 +0000 Subject: Updated all widgets with better width height control --- client/widgets/combobox.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'client/widgets/combobox.cc') diff --git a/client/widgets/combobox.cc b/client/widgets/combobox.cc index 22efc96..e60ea8e 100644 --- a/client/widgets/combobox.cc +++ b/client/widgets/combobox.cc @@ -33,11 +33,13 @@ ComboBox::ComboBox(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()); } QDomNodeList children = node.childNodes(); -- cgit v1.2.3