Working scale and zoom

This commit is contained in:
2020-05-14 22:42:39 +02:00
parent c3a71ed4e6
commit 30c8f6557f
8 changed files with 161 additions and 17 deletions
+6
View File
@@ -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)));
}