summaryrefslogtreecommitdiff
path: root/utils/themeeditor/gui/configdocument.h
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-06-17 07:34:24 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-06-17 07:34:24 +0000
commit1dc2c5ebcbdf2046c2aad6314018796fe3d0d06e (patch)
tree0c8dea31338eb2915224847c72cdacbb7caf8944 /utils/themeeditor/gui/configdocument.h
parent75560845aad0cc8d1fccfeda5534489ca278ac80 (diff)
downloadrockbox-1dc2c5ebcbdf2046c2aad6314018796fe3d0d06e.tar.gz
rockbox-1dc2c5ebcbdf2046c2aad6314018796fe3d0d06e.zip
Theme Editor: Stopped combo boxes in configuration editor from scrolling on mouse-wheel
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26879 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/gui/configdocument.h')
-rw-r--r--utils/themeeditor/gui/configdocument.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/utils/themeeditor/gui/configdocument.h b/utils/themeeditor/gui/configdocument.h
index 8493c7a138..746ed94627 100644
--- a/utils/themeeditor/gui/configdocument.h
+++ b/utils/themeeditor/gui/configdocument.h
@@ -29,6 +29,7 @@
29#include <QWidget> 29#include <QWidget>
30#include <QLabel> 30#include <QLabel>
31#include <QMap> 31#include <QMap>
32#include <QWheelEvent>
32 33
33#include "tabcontent.h" 34#include "tabcontent.h"
34 35
@@ -36,6 +37,14 @@ namespace Ui {
36 class ConfigDocument; 37 class ConfigDocument;
37} 38}
38 39
40class NoScrollCombo: public QComboBox
41{
42public:
43 NoScrollCombo(QWidget* parent = 0) : QComboBox(parent) {}
44
45 void wheelEvent(QWheelEvent* event) { event->ignore(); }
46};
47
39class ConfigDocument : public TabContent { 48class ConfigDocument : public TabContent {
40 Q_OBJECT 49 Q_OBJECT
41public: 50public:
@@ -69,7 +78,7 @@ private slots:
69private: 78private:
70 Ui::ConfigDocument *ui; 79 Ui::ConfigDocument *ui;
71 QList<QHBoxLayout*> containers; 80 QList<QHBoxLayout*> containers;
72 QList<QComboBox*> keys; 81 QList<NoScrollCombo*> keys;
73 QList<QLineEdit*> values; 82 QList<QLineEdit*> values;
74 QList<QPushButton*> deleteButtons; 83 QList<QPushButton*> deleteButtons;
75 QList<QLabel*> labels; 84 QList<QLabel*> labels;