Add numerical_labels setting to UserInterface settings
This commit is contained in:
parent
f9c7df21f1
commit
a2a93daaab
3 changed files with 28 additions and 2 deletions
|
|
@ -21,6 +21,7 @@ DeviceView::DeviceView(QWidget *parent) :
|
|||
mouseDown(false)
|
||||
{
|
||||
controller = NULL;
|
||||
numerical_labels = false;
|
||||
setMouseTracking(1);
|
||||
|
||||
size = width();
|
||||
|
|
@ -317,7 +318,7 @@ void DeviceView::setController(RGBController * controller_ptr)
|
|||
{
|
||||
led_labels[led_idx] = it->second.label_utf8;
|
||||
}
|
||||
else
|
||||
else if(numerical_labels)
|
||||
{
|
||||
led_labels[led_idx] = QString::number(led_idx);
|
||||
}
|
||||
|
|
@ -336,6 +337,11 @@ void DeviceView::setController(RGBController * controller_ptr)
|
|||
}
|
||||
}
|
||||
|
||||
void DeviceView::setNumericalLabels(bool enable)
|
||||
{
|
||||
numerical_labels = enable;
|
||||
}
|
||||
|
||||
QSize DeviceView::sizeHint () const
|
||||
{
|
||||
return QSize(height() - 1, height() - 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue