summaryrefslogtreecommitdiff
path: root/client/widgets/altcombobox.cc
diff options
context:
space:
mode:
authordeva <deva>2010-08-13 08:24:46 +0000
committerdeva <deva>2010-08-13 08:24:46 +0000
commitdb2fdbe872cc6c1b224a1c4c735fac4369b3802e (patch)
treecb85d03da44b457c97c2595f8550d91ea7bb6a6d /client/widgets/altcombobox.cc
parentbc229dbfabdf6a59453605e7652f04a268605b3a (diff)
Add missing children widgets to actual layouts.
Diffstat (limited to 'client/widgets/altcombobox.cc')
-rw-r--r--client/widgets/altcombobox.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/client/widgets/altcombobox.cc b/client/widgets/altcombobox.cc
index 66eb444..a4f5e76 100644
--- a/client/widgets/altcombobox.cc
+++ b/client/widgets/altcombobox.cc
@@ -97,7 +97,7 @@ AltComboBox::AltComboBox(QDomNode &node, MacroWindow *macrowindow)
altframe->setLayout(layout);
}
- addChildren(item);
+ addChildren(item, altframe->layout());
}
@@ -177,7 +177,13 @@ void AltComboBox::setValue(QString value, QString source)
void AltComboBox::onValueChange(int index)
{
+
QComboBox *cmb = (QComboBox*)combobox->qwidget();
+
+ printf("Value changed: %s altvalue: %s\n",
+ cmb->itemData(index).toString().toStdString().c_str(),
+ altvalue.toStdString().c_str());
+
if(cmb->itemData(index).toString() == altvalue) {
// altframe->setEnabled(true);
altframerepl->setVisible(false);