summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authordeva <deva>2010-08-17 07:20:07 +0000
committerdeva <deva>2010-08-17 07:20:07 +0000
commitfd7451d278d4d90afd185e7f7418d89cbcc5ba3d (patch)
tree0fe6d10602ecc6334a9a2dbcba78217b8e23f6f6 /client
parent4045c912597ba88a88fc0420db91eb5f68305cad (diff)
Add default layout on unknown layout attribute content.
Diffstat (limited to 'client')
-rw-r--r--client/widgets/altcombobox.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/widgets/altcombobox.cc b/client/widgets/altcombobox.cc
index e18fb59..f60fb5c 100644
--- a/client/widgets/altcombobox.cc
+++ b/client/widgets/altcombobox.cc
@@ -90,6 +90,9 @@ AltComboBox::AltComboBox(QDomNode &node, MacroWindow *macrowindow)
} else if(item.attribute("layout") == "vbox") {
QVBoxLayout *layout = new QVBoxLayout();
altframe->setLayout(layout);
+ } else { // Illigal layout choosen.
+ QVBoxLayout *layout = new QVBoxLayout();
+ altframe->setLayout(layout);
}
} else {
QHBoxLayout *layout = new QHBoxLayout();
@@ -121,7 +124,7 @@ AltComboBox::AltComboBox(QDomNode &node, MacroWindow *macrowindow)
connect(innerwidget, SIGNAL(wasChanged()), this, SLOT(onChildChange()));
frame->layout()->setContentsMargins(0,0,0,0);
- altframe->layout()->setContentsMargins(0,0,0,0);
+ //altframe->layout()->setContentsMargins(0,0,0,0);
frame->show(); // Force altframe to get resized to its real size.
altframerepl->setFixedHeight(altframe->height());