First version OpenGL drawing
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#include "stretchpanel.h"
|
||||
#include <QVBoxLayout>
|
||||
|
||||
StretchPanel::StretchPanel(QWidget *parent) : QWidget(parent)
|
||||
{
|
||||
QVBoxLayout *layout = new QVBoxLayout(this);
|
||||
setLayout(layout);
|
||||
|
||||
m_lowSlider = new QSlider(Qt::Horizontal, this);
|
||||
m_highSlider = new QSlider(Qt::Horizontal, this);
|
||||
|
||||
m_lowSlider->setRange(0, UINT16_MAX);
|
||||
m_highSlider->setRange(0, UINT16_MAX);
|
||||
m_highSlider->setValue(UINT16_MAX);
|
||||
|
||||
layout->addWidget(m_lowSlider);
|
||||
layout->addWidget(m_highSlider);
|
||||
|
||||
connect(m_lowSlider, SIGNAL(valueChanged(int)), this, SIGNAL(lowChanged(int)));
|
||||
connect(m_highSlider, SIGNAL(valueChanged(int)), this, SIGNAL(highChanged(int)));
|
||||
}
|
||||
Reference in New Issue
Block a user