OGS
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
v
w
z
Enumerations
b
c
d
e
f
g
i
l
m
n
o
p
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
l
m
n
p
r
s
t
v
y
Classes
Class List
Class Index
Class Hierarchy
Files
File List
File Members
All
a
b
c
d
e
f
g
i
k
m
n
o
p
r
s
t
v
w
x
Functions
a
c
d
e
f
g
i
m
o
p
r
s
t
v
w
Variables
Typedefs
Enumerations
Macros
b
c
g
m
n
o
p
r
s
t
▼
OGS
►
OpenGeoSys 6.5.4-423-gda6ede93c83 source code documentation
►
OGS CTests—Project Files
►
OGS Input File Parameters—Quality Assurance
►
OGS Input File Parameters
BulkMappingDocuPage
Todo List
OGS Input File Parameters—List of incomplete documentation pages
Bibliography
►
Namespaces
►
Classes
▼
Files
▼
File List
▼
Applications
►
ApplicationsLib
►
CLI
▼
DataExplorer
▼
Base
CheckboxDelegate.cpp
►
CheckboxDelegate.h
ColorPickerPushButton.cpp
►
ColorPickerPushButton.h
►
ImportFileTypes.h
►
LastSavedFileDirectory.h
OGSError.cpp
►
OGSError.h
QNonScalableGraphicsTextItem.cpp
►
QNonScalableGraphicsTextItem.h
QValueTooltipSlider.cpp
►
QValueTooltipSlider.h
RecentFiles.cpp
►
RecentFiles.h
►
StrictDoubleValidator.h
►
StrictIntValidator.h
TreeItem.cpp
►
TreeItem.h
TreeModel.cpp
►
TreeModel.h
TreeModelIterator.cpp
►
TreeModelIterator.h
►
Utils.cpp
►
Utils.h
►
DataView
►
VtkVis
►
main.cpp
mainwindow.cpp
►
mainwindow.h
►
DataHolderLib
►
FileIO
►
InSituLib
►
Python
►
Utils
►
BaseLib
►
build
►
ChemistryLib
Documentation
►
GeoLib
►
InfoLib
►
MaterialLib
►
MathLib
►
MeshGeoToolsLib
►
MeshLib
►
MeshToolsLib
►
NumLib
►
ParameterLib
►
ProcessLib
►
File Members
StrictIntValidator.h
Go to the documentation of this file.
1
15
#pragma once
16
17
#include <QIntValidator>
18
24
class
StrictIntValidator
:
public
QIntValidator
25
{
26
public
:
27
StrictIntValidator
(
int
min,
int
max, QObject* parent =
nullptr
)
28
: QIntValidator(min, max, parent)
29
{
30
}
27
StrictIntValidator
(
int
min,
int
max, QObject* parent =
nullptr
) {
…
}
31
32
QValidator::State
validate
(QString& input,
int
& pos)
const override
33
{
34
if
(input.isEmpty())
35
return
Intermediate;
36
37
if
(QIntValidator::validate(input, pos) != Acceptable)
38
return
Invalid;
39
return
Acceptable;
40
}
32
QValidator::State
validate
(QString& input,
int
& pos)
const override
{
…
}
41
};
24
class
StrictIntValidator
:
public
QIntValidator {
…
};
StrictIntValidator
A validator for an input field which only accepts integers. Source code adapted from Qt developer faq...
Definition
StrictIntValidator.h:25
StrictIntValidator::validate
QValidator::State validate(QString &input, int &pos) const override
Definition
StrictIntValidator.h:32
StrictIntValidator::StrictIntValidator
StrictIntValidator(int min, int max, QObject *parent=nullptr)
Definition
StrictIntValidator.h:27
Applications
DataExplorer
Base
StrictIntValidator.h
Generated by
1.12.0