summaryrefslogtreecommitdiff
path: root/client/widgets/altcombobox.cc
diff options
context:
space:
mode:
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);