Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
c
f
g
i
l
m
n
p
q
r
s
t
v
w
+
Functions
c
g
l
m
n
p
q
r
s
t
v
+
Variables
_
l
m
q
v
Typedefs
Enumerations
+
Enumerator
a
c
g
l
m
n
p
q
r
s
t
v
w
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
2
3
:
_
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
2
3
_
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
x
y
z
+
Typedefs
a
b
c
d
e
g
i
l
m
n
p
q
r
s
t
u
v
w
+
Enumerations
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
+
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Related Functions
:
a
b
c
d
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
x
+
Files
File List
+
File 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
k
l
m
n
o
p
q
r
s
t
v
w
x
+
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
+
Typedefs
b
c
g
i
k
m
n
o
p
q
s
u
v
z
Enumerations
+
Enumerator
c
k
v
x
y
z
+
Macros
_
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
Qt
Widgets
pqScaledSpinBox.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2
// SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3
// SPDX-License-Identifier: BSD-3-Clause
4
5
#ifndef pqScaledSpinBox_h
6
#define pqScaledSpinBox_h
7
8
#include "
pqWidgetsModule.h
"
9
#include <QDoubleSpinBox>
10
14
class
PQWIDGETS_EXPORT
pqScaledSpinBox
:
public
QDoubleSpinBox
15
{
16
Q_OBJECT
17
18
public
Q_SLOTS:
20
void
setValue(
double
val);
21
22
public
:
// NOLINT(readability-redundant-access-specifiers)
24
explicit
pqScaledSpinBox
(QWidget* parent =
nullptr
);
26
explicit
pqScaledSpinBox
(QDoubleSpinBox* other);
28
~
pqScaledSpinBox
()
override
;
29
33
void
setScalingFactor(
double
scaleFactor);
34
35
protected
:
37
void
keyPressEvent(QKeyEvent* event)
override
;
38
39
protected
Q_SLOTS:
// NOLINT(readability-redundant-access-specifiers)
40
void
onValueChanged(
double
newValue);
41
42
private
:
43
void
initialize();
44
void
scaledStepUp();
45
void
scaledStepDown();
46
47
double
LastValue;
48
double
ScaleFactor;
49
};
50
51
#endif // pqScaledSpinBox_h
pqWidgetsModule.h
pqScaledSpinBox
Identical to a QDoubleSpinBox, but doubles/halves the value upon button presses.
Definition:
pqScaledSpinBox.h:14
PQWIDGETS_EXPORT
#define PQWIDGETS_EXPORT
Definition:
pqWidgetsModule.h:15
Generated by
1.8.13 on Wed Apr 23 2025