VAPOR3 3.9.4
VIntLineEdit.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 VIntLineEdit(int value = 0);
23
25 void SetValueInt(int value);
26
28 int GetValueInt() const;
29
30protected:
31 virtual void _valueChanged();
32
33 std::string _formatValue(int value);
34 bool _checkOverflow(double value);
35
36 int _value;
37
38signals:
39 void ValueChanged(int value);
40};
A wrapper for a QLineEdit that handles user input of type int, and provides Vapor's standard setters,...
Definition: VIntLineEdit.h:18
void SetValueInt(int value)
Set the current int value in the line edit.
std::string _formatValue(int value)
void ValueChanged(int value)
virtual void _valueChanged()
int GetValueInt() const
Get the current int value in the line iedit.
bool _checkOverflow(double value)
VIntLineEdit(int value=0)