diff options
| author | Robert Bieber <robby@bieberphoto.com> | 2010-07-12 05:33:14 +0000 |
|---|---|---|
| committer | Robert Bieber <robby@bieberphoto.com> | 2010-07-12 05:33:14 +0000 |
| commit | bae183633705b087f80afe11a36772f553a5cb26 (patch) | |
| tree | a2052d09c8cb26b927ae33095b524026aad91d30 /utils/themeeditor/gui/devicestate.cpp | |
| parent | c9f997cc91db23e0ba3ac60fa6c37ae066e5265d (diff) | |
| download | rockbox-bae183633705b087f80afe11a36772f553a5cb26.zip rockbox-bae183633705b087f80afe11a36772f553a5cb26.tar.gz rockbox-bae183633705b087f80afe11a36772f553a5cb26.tar.bz2 rockbox-bae183633705b087f80afe11a36772f553a5cb26.tar.xz | |
Theme Editor: Implemented some touch area click events
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27397 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/gui/devicestate.cpp')
| -rw-r--r-- | utils/themeeditor/gui/devicestate.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/utils/themeeditor/gui/devicestate.cpp b/utils/themeeditor/gui/devicestate.cpp index 21f95bf..89985bf 100644 --- a/utils/themeeditor/gui/devicestate.cpp +++ b/utils/themeeditor/gui/devicestate.cpp @@ -474,10 +474,14 @@ void DeviceState::setData(QString tag, QVariant data) break; case Combo: - dynamic_cast<QComboBox*> - (found.second)-> - setCurrentIndex(dynamic_cast<QComboBox*> - (found.second)->findText(data.toString())); + if(data.type() == QVariant::String) + dynamic_cast<QComboBox*> + (found.second)-> + setCurrentIndex(dynamic_cast<QComboBox*> + (found.second)->findText(data.toString())); + else + dynamic_cast<QComboBox*>(found.second)-> + setCurrentIndex(data.toInt()); break; case Check: |