diff options
Diffstat (limited to 'client/widgets/textedit.cc')
-rw-r--r-- | client/widgets/textedit.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/client/widgets/textedit.cc b/client/widgets/textedit.cc index 9334d8a..61c5a99 100644 --- a/client/widgets/textedit.cc +++ b/client/widgets/textedit.cc @@ -37,11 +37,13 @@ TextEdit::TextEdit(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("regexp")) { |