Working scale and zoom
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "stretchpanel.h"
|
||||
#include <QVBoxLayout>
|
||||
#include <QComboBox>
|
||||
|
||||
StretchPanel::StretchPanel(QWidget *parent) : QWidget(parent)
|
||||
{
|
||||
@@ -13,9 +14,14 @@ StretchPanel::StretchPanel(QWidget *parent) : QWidget(parent)
|
||||
m_highSlider->setRange(0, UINT16_MAX);
|
||||
m_highSlider->setValue(UINT16_MAX);
|
||||
|
||||
QComboBox *stretchSelect = new QComboBox(this);
|
||||
stretchSelect->addItems({tr("Linear"), tr("Square root"), tr("Power"), tr("Logarithm"), tr("Asinh")});
|
||||
|
||||
layout->addWidget(m_lowSlider);
|
||||
layout->addWidget(m_highSlider);
|
||||
layout->addWidget(stretchSelect);
|
||||
|
||||
connect(m_lowSlider, SIGNAL(valueChanged(int)), this, SIGNAL(lowChanged(int)));
|
||||
connect(m_highSlider, SIGNAL(valueChanged(int)), this, SIGNAL(highChanged(int)));
|
||||
connect(stretchSelect, SIGNAL(activated(int)), this, SIGNAL(stretchChanged(int)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user