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
pqSectionVisibilityContextMenu.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
#ifndef pqSectionVisibilityContextMenu_h
5
#define pqSectionVisibilityContextMenu_h
6
7
// In case of QTableView, or any other spreadsheet-like view, the user
8
// should be provided an option to toggle the visibility of
9
// columns/rows. pqSectionVisibilityContextMenu is a context menu
10
// that can be used for the same.
11
12
#include "
pqWidgetsModule.h
"
13
#include <QHeaderView>
14
#include <QMenu>
15
#include <QPointer>
16
17
class
PQWIDGETS_EXPORT
pqSectionVisibilityContextMenu
:
public
QMenu
18
{
19
Q_OBJECT
20
public
:
21
pqSectionVisibilityContextMenu
(QWidget* parent =
nullptr
);
22
~
pqSectionVisibilityContextMenu
()
override
;
23
24
// Set the QHeaderView whose section visibility is affected by
25
// this menu. This leads to clearing of any actions
26
// already present in the menu and populating the menu
27
// with the section headings from the header.
28
// This must be set before calling exec().
29
void
setHeaderView(QHeaderView* header);
30
QHeaderView*
headerView
() {
return
this->HeaderView; }
31
32
protected
Q_SLOTS:
33
void
toggleSectionVisibility(QAction* action);
34
35
protected
:
// NOLINT(readability-redundant-access-specifiers)
36
QPointer<QHeaderView>
HeaderView
;
37
};
38
39
#endif
pqSectionVisibilityContextMenu::HeaderView
QPointer< QHeaderView > HeaderView
Definition:
pqSectionVisibilityContextMenu.h:36
pqWidgetsModule.h
pqSectionVisibilityContextMenu
Definition:
pqSectionVisibilityContextMenu.h:17
PQWIDGETS_EXPORT
#define PQWIDGETS_EXPORT
Definition:
pqWidgetsModule.h:15
pqSectionVisibilityContextMenu::headerView
QHeaderView * headerView()
Definition:
pqSectionVisibilityContextMenu.h:30
Generated by
1.8.13 on Wed Apr 23 2025