Mercurial > octave
changeset 33659:b44cf0267b59 stable
uitable: Fix updating value with combo box selection (bug #65873).
* libgui/graphics/Table.cc (Table::updateData): Connect from
QComboBox::currentTextChanged instead of currentIndexChanged. Use new
signal-slot syntax for better compiler diagnostics.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Tue, 11 Jun 2024 18:56:42 +0200 |
parents | b1d6e40ac737 |
children | 836084110d9c |
files | libgui/graphics/Table.cc |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/graphics/Table.cc Wed Jun 05 11:27:35 2024 +0200 +++ b/libgui/graphics/Table.cc Tue Jun 11 18:56:42 2024 +0200 @@ -1269,8 +1269,8 @@ comboBox->installEventFilter (this); m_tableWidget->setCellWidget (row, col, comboBox); - connect (comboBox, SIGNAL(currentIndexChanged (const QString&)), - this, SLOT(comboBoxCurrentIndexChanged (const QString&))); + connect (comboBox, &QComboBox::currentTextChanged, + this, &Table::comboBoxCurrentIndexChanged); } else {