32 lines
		
	
	
	
		
			567 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
	
		
			567 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef SLIDERGROUP_H
 | 
						|
#define SLIDERGROUP_H
 | 
						|
 | 
						|
#include <QGroupBox>
 | 
						|
#include <QDoubleSpinBox>
 | 
						|
#include <QVBoxLayout>
 | 
						|
#include <QSlider>
 | 
						|
 | 
						|
class SliderGroup : public QGroupBox
 | 
						|
{
 | 
						|
    Q_OBJECT
 | 
						|
 | 
						|
public:
 | 
						|
    SliderGroup(const QString &title,
 | 
						|
                 int min,
 | 
						|
                 int max,
 | 
						|
                 int decimals,
 | 
						|
                 QWidget *parent = nullptr);
 | 
						|
 | 
						|
signals:
 | 
						|
    void valueChanged(float value);
 | 
						|
 | 
						|
public slots:
 | 
						|
    void setValue(float value);
 | 
						|
    void sliderValueChanged(int value);
 | 
						|
 | 
						|
private:
 | 
						|
    QSlider *slider;
 | 
						|
    QDoubleSpinBox *valueBox;
 | 
						|
};
 | 
						|
 | 
						|
#endif
 |