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.tar.gz rockbox-bae183633705b087f80afe11a36772f553a5cb26.zip |
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 21f95bfa10..89985bf730 100644 --- a/utils/themeeditor/gui/devicestate.cpp +++ b/utils/themeeditor/gui/devicestate.cpp | |||
@@ -474,10 +474,14 @@ void DeviceState::setData(QString tag, QVariant data) | |||
474 | break; | 474 | break; |
475 | 475 | ||
476 | case Combo: | 476 | case Combo: |
477 | dynamic_cast<QComboBox*> | 477 | if(data.type() == QVariant::String) |
478 | (found.second)-> | 478 | dynamic_cast<QComboBox*> |
479 | setCurrentIndex(dynamic_cast<QComboBox*> | 479 | (found.second)-> |
480 | (found.second)->findText(data.toString())); | 480 | setCurrentIndex(dynamic_cast<QComboBox*> |
481 | (found.second)->findText(data.toString())); | ||
482 | else | ||
483 | dynamic_cast<QComboBox*>(found.second)-> | ||
484 | setCurrentIndex(data.toInt()); | ||
481 | break; | 485 | break; |
482 | 486 | ||
483 | case Check: | 487 | case Check: |