From db2fdbe872cc6c1b224a1c4c735fac4369b3802e Mon Sep 17 00:00:00 2001 From: deva Date: Fri, 13 Aug 2010 08:24:46 +0000 Subject: Add missing children widgets to actual layouts. --- client/widgets/altcombobox.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'client/widgets/altcombobox.cc') 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); -- cgit v1.2.3