From 91970dbba11c663f9d6d5b40b8c563dc05b332b9 Mon Sep 17 00:00:00 2001 From: deva Date: Wed, 18 Aug 2010 14:09:16 +0000 Subject: Do not enable all children recursively. Make eventOnChange recursive on-demand. --- client/widgets/altcombobox.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'client/widgets/altcombobox.cc') diff --git a/client/widgets/altcombobox.cc b/client/widgets/altcombobox.cc index b5cdab0..fac2610 100644 --- a/client/widgets/altcombobox.cc +++ b/client/widgets/altcombobox.cc @@ -126,7 +126,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()); @@ -181,7 +181,6 @@ void AltComboBox::setValue(QString value, QString source) void AltComboBox::onValueChange(int index) { - QComboBox *cmb = (QComboBox*)combobox->qwidget(); DEBUG(alcombobox, "Value changed: %s altvalue: %s\n", @@ -203,6 +202,8 @@ void AltComboBox::onValueChange(int index) frame->layout()->addWidget(altframerepl); altframerepl->setVisible(true); } + + eventOnChange(true); } void AltComboBox::onValueChange(const QString &text) @@ -214,7 +215,7 @@ void AltComboBox::onValueChange(const QString &text) void AltComboBox::onChildChange() { emit wasChanged(); - eventOnChange(); + eventOnChange(true); } bool AltComboBox::setKeyboardFocus() -- cgit v1.2.3