Mercurial > hg > svgui
changeset 779:037a7c22bec8 tonioni
Replace setCurrentText (which doesn't appear to exist in qt4) with setCurrentIndex
author | Chris Cannam |
---|---|
date | Fri, 23 May 2014 16:48:06 +0100 |
parents | c2291e22bf0c |
children | bf0b419fdaac |
files | widgets/PropertyBox.cpp |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/widgets/PropertyBox.cpp Thu May 22 17:49:58 2014 +0100 +++ b/widgets/PropertyBox.cpp Fri May 23 16:48:06 2014 +0100 @@ -768,7 +768,13 @@ dialog->setLabelText(tr("Set playback clip:")); QComboBox *cb = dialog->findChild<QComboBox *>(); - if (cb) cb->setCurrentText(clip); + if (cb) { + for (int i = 0; i < cb->count(); ++i) { + if (cb->itemText(i) == clip) { + cb->setCurrentIndex(i); + } + } + } connect(dialog, SIGNAL(textValueChanged(QString)), this, SLOT(playClipChanged(QString)));