kopia lustrzana https://gitlab.com/eliggett/wfview
Make combobox smaller and add scrollbar
rodzic
72e8b2ec2f
commit
0b51d5bb05
|
@ -147,6 +147,11 @@ void controllerSetup::newDevice(unsigned char devType, QVector<BUTTON>* but, QVe
|
||||||
|
|
||||||
onEvent.blockSignals(true);
|
onEvent.blockSignals(true);
|
||||||
offEvent.blockSignals(true);
|
offEvent.blockSignals(true);
|
||||||
|
onEvent.setMaxVisibleItems(5);
|
||||||
|
offEvent.setMaxVisibleItems(5);
|
||||||
|
onEvent.view()->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
|
||||||
|
offEvent.view()->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
|
||||||
|
|
||||||
onEvent.clear();
|
onEvent.clear();
|
||||||
offEvent.clear();
|
offEvent.clear();
|
||||||
for (COMMAND &c : *commands) {
|
for (COMMAND &c : *commands) {
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
#include <QComboBox>
|
#include <QComboBox>
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
#include <QGraphicsProxyWidget>
|
#include <QGraphicsProxyWidget>
|
||||||
|
#include <QAbstractItemView>
|
||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
|
|
Ładowanie…
Reference in New Issue