summaryrefslogtreecommitdiff
path: root/utils/themeeditor/gui/configdocument.h
diff options
context:
space:
mode:
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 8493c7a..746ed94 100644
--- a/utils/themeeditor/gui/configdocument.h
+++ b/utils/themeeditor/gui/configdocument.h
@@ -29,6 +29,7 @@
#include <QWidget>
#include <QLabel>
#include <QMap>
+#include <QWheelEvent>
#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<QHBoxLayout*> containers;
- QList<QComboBox*> keys;
+ QList<NoScrollCombo*> keys;
QList<QLineEdit*> values;
QList<QPushButton*> deleteButtons;
QList<QLabel*> labels;