nightly (development)
latest release (v5.13.3)
5.13.3
5.13.2
5.13.1
5.13.0
5.12.1
5.12.0
5.11.2
5.11.1
5.11.0
5.10.2
5.10.1
5.10.0
5.9.1
5.9.0
5.8.1
5.8.0
5.7.0
5.6.2
5.5.2
C++
Python
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
pqTreeWidgetCheckHelper.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 pqTreeWidgetCheckHelper_h
6
#define pqTreeWidgetCheckHelper_h
7
8
#include "
pqWidgetsModule.h
"
9
#include <QObject>
10
11
class
QTreeWidget;
12
class
QTreeWidgetItem;
13
22
class
PQWIDGETS_EXPORT
pqTreeWidgetCheckHelper
:
public
QObject
23
{
24
Q_OBJECT
25
public
:
26
// treeWidget :- the tree widget managed by this helper.
27
// checkableColumn :- column index for the checkable item.
28
// parent :- QObject parent.
29
pqTreeWidgetCheckHelper
(QTreeWidget* treeWidget,
int
checkableColumn, QObject* parent);
30
31
enum
CheckMode
32
{
33
CLICK_IN_COLUMN
,
// toggle check state when clicked in the column
34
// with the checkable item.
35
CLICK_IN_ROW
,
// toggle check state when clicked in the row
36
// with the checkable item (default).
37
};
38
39
// Check Mode controls whether the user must click in the column
40
// with the checkable item or any column in the same row.
41
void
setCheckMode
(
CheckMode
mode) { this->Mode = mode; }
42
CheckMode
checkMode
()
const
{
return
this->Mode; }
43
44
protected
Q_SLOTS:
45
void
onItemClicked(QTreeWidgetItem* item,
int
column);
46
void
onItemPressed(QTreeWidgetItem* item,
int
column);
47
48
private
:
49
Q_DISABLE_COPY(
pqTreeWidgetCheckHelper
)
50
51
QTreeWidget* Tree;
52
int
CheckableColumn;
53
int
PressState;
54
CheckMode
Mode;
55
};
56
57
#endif
pqTreeWidgetCheckHelper::CLICK_IN_COLUMN
Definition:
pqTreeWidgetCheckHelper.h:33
pqTreeWidgetCheckHelper::CheckMode
CheckMode
Definition:
pqTreeWidgetCheckHelper.h:31
pqWidgetsModule.h
pqTreeWidgetCheckHelper::CLICK_IN_ROW
Definition:
pqTreeWidgetCheckHelper.h:35
PQWIDGETS_EXPORT
#define PQWIDGETS_EXPORT
Definition:
pqWidgetsModule.h:15
pqTreeWidgetCheckHelper
If a QTreeWidget has checkable elements in any column, one needs to explicitly click on the checkbox ...
Definition:
pqTreeWidgetCheckHelper.h:22
pqTreeWidgetCheckHelper::checkMode
CheckMode checkMode() const
Definition:
pqTreeWidgetCheckHelper.h:42
pqTreeWidgetCheckHelper::setCheckMode
void setCheckMode(CheckMode mode)
Definition:
pqTreeWidgetCheckHelper.h:41
Generated by
1.8.13 on Wed Apr 23 2025