kopia lustrzana https://gitlab.com/eliggett/wfview
Make comboboxes smaller on Linux
rodzic
0b51d5bb05
commit
2bf14520d8
|
@ -147,13 +147,16 @@ void controllerSetup::newDevice(unsigned char devType, QVector<BUTTON>* but, QVe
|
||||||
|
|
||||||
onEvent.blockSignals(true);
|
onEvent.blockSignals(true);
|
||||||
offEvent.blockSignals(true);
|
offEvent.blockSignals(true);
|
||||||
|
onEvent.clear();
|
||||||
|
offEvent.clear();
|
||||||
|
|
||||||
onEvent.setMaxVisibleItems(5);
|
onEvent.setMaxVisibleItems(5);
|
||||||
offEvent.setMaxVisibleItems(5);
|
offEvent.setMaxVisibleItems(5);
|
||||||
onEvent.view()->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
|
onEvent.view()->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
|
||||||
offEvent.view()->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
|
offEvent.view()->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
|
||||||
|
onEvent.setStyleSheet("combobox-popup: 0;");
|
||||||
|
offEvent.setStyleSheet("combobox-popup: 0;");
|
||||||
|
|
||||||
onEvent.clear();
|
|
||||||
offEvent.clear();
|
|
||||||
for (COMMAND &c : *commands) {
|
for (COMMAND &c : *commands) {
|
||||||
onEvent.addItem(c.text);
|
onEvent.addItem(c.text);
|
||||||
offEvent.addItem(c.text);
|
offEvent.addItem(c.text);
|
||||||
|
|
Ładowanie…
Reference in New Issue