Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

+12 -2
+2 -1
utils/themeeditor/gui/configdocument.cpp
··· 187 187 void ConfigDocument::addRow(QString key, QString value) 188 188 { 189 189 QHBoxLayout* layout = new QHBoxLayout(); 190 - QComboBox* keyEdit = new QComboBox(this); 190 + NoScrollCombo* keyEdit = new NoScrollCombo(this); 191 191 QLineEdit* valueEdit = new QLineEdit(value, this); 192 192 QPushButton* delButton = new QPushButton(tr("-"), this); 193 193 QLabel* label = new QLabel(":"); ··· 202 202 keyEdit->setCurrentIndex(keyEdit->findText(key)); 203 203 else 204 204 keyEdit->setEditText(key); 205 + 205 206 206 207 layout->addWidget(keyEdit); 207 208 layout->addWidget(label);
+10 -1
utils/themeeditor/gui/configdocument.h
··· 29 29 #include <QWidget> 30 30 #include <QLabel> 31 31 #include <QMap> 32 + #include <QWheelEvent> 32 33 33 34 #include "tabcontent.h" 34 35 35 36 namespace Ui { 36 37 class ConfigDocument; 37 38 } 39 + 40 + class NoScrollCombo: public QComboBox 41 + { 42 + public: 43 + NoScrollCombo(QWidget* parent = 0) : QComboBox(parent) {} 44 + 45 + void wheelEvent(QWheelEvent* event) { event->ignore(); } 46 + }; 38 47 39 48 class ConfigDocument : public TabContent { 40 49 Q_OBJECT ··· 69 78 private: 70 79 Ui::ConfigDocument *ui; 71 80 QList<QHBoxLayout*> containers; 72 - QList<QComboBox*> keys; 81 + QList<NoScrollCombo*> keys; 73 82 QList<QLineEdit*> values; 74 83 QList<QPushButton*> deleteButtons; 75 84 QList<QLabel*> labels;