diff --git a/utils/themeeditor/gui/configdocument.cpp b/utils/themeeditor/gui/configdocument.cpp index cfdd8c5c62..0962484ba9 100644 --- a/utils/themeeditor/gui/configdocument.cpp +++ b/utils/themeeditor/gui/configdocument.cpp @@ -187,7 +187,7 @@ QString ConfigDocument::toPlainText() const void ConfigDocument::addRow(QString key, QString value) { QHBoxLayout* layout = new QHBoxLayout(); - QComboBox* keyEdit = new QComboBox(this); + NoScrollCombo* keyEdit = new NoScrollCombo(this); QLineEdit* valueEdit = new QLineEdit(value, this); QPushButton* delButton = new QPushButton(tr("-"), this); QLabel* label = new QLabel(":"); @@ -203,6 +203,7 @@ void ConfigDocument::addRow(QString key, QString value) else keyEdit->setEditText(key); + layout->addWidget(keyEdit); layout->addWidget(label); layout->addWidget(valueEdit); 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;