VAPOR3 3.9.4
VDoubleLineEdit.h
Go to the documentation of this file.
1#pragma once
2
3#include <iostream>
4
5#include <string>
6#include <sstream>
7#include <iomanip>
8
9#include <QString>
10
11#include "VNumericLineEdit.h"
12
17
19 Q_OBJECT
20
21public:
22 VDoubleLineEdit(double value = 0.0);
23
25 void SetValueDouble(double value);
26
28 double GetValueDouble() const;
29
30 void SetRange(double min, double max);
31
32protected:
33 std::string _formatValue(double value);
34
35 double _value;
36 double _min = -std::numeric_limits<double>::max();
37 double _max = std::numeric_limits<double>::max();
38
39protected slots:
40 void _valueChanged() override;
41
42signals:
43 void ValueChanged(double value);
44};
A wrapper for a QLineEdit that handles user input of type double, and provides Vapor's standard sette...
std::string _formatValue(double value)
VDoubleLineEdit(double value=0.0)
void _valueChanged() override
void SetRange(double min, double max)
double GetValueDouble() const
Get the current double value in the line edit.
void SetValueDouble(double value)
Set the current double value in the line edit.
void ValueChanged(double value)