From 1dc2c5ebcbdf2046c2aad6314018796fe3d0d06e Mon Sep 17 00:00:00 2001 From: Robert Bieber Date: Thu, 17 Jun 2010 07:34:24 +0000 Subject: 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 --- utils/themeeditor/gui/configdocument.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'utils/themeeditor/gui/configdocument.h') 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 @@ #include #include #include +#include #include "tabcontent.h" @@ -36,6 +37,14 @@ namespace Ui { class ConfigDocument; } +class NoScrollCombo: public QComboBox +{ +public: + NoScrollCombo(QWidget* parent = 0) : QComboBox(parent) {} + + void wheelEvent(QWheelEvent* event) { event->ignore(); } +}; + class ConfigDocument : public TabContent { Q_OBJECT public: @@ -69,7 +78,7 @@ private slots: private: Ui::ConfigDocument *ui; QList containers; - QList keys; + QList keys; QList values; QList deleteButtons; QList labels; -- cgit v1.2.3