diff widgets/PropertyBox.cpp @ 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 336ccf8fc3f8
children e4773943c9c1
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)));