From fd7451d278d4d90afd185e7f7418d89cbcc5ba3d Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 17 Aug 2010 07:20:07 +0000 Subject: Add default layout on unknown layout attribute content. --- client/widgets/altcombobox.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'client') 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()); -- cgit v1.2.3