KDDockWidgets API Documentation
2.0
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
f
g
h
i
j
l
m
o
p
q
r
s
t
v
w
Functions
a
b
c
f
g
i
j
l
m
o
p
q
r
s
t
w
Variables
a
r
s
Typedefs
Enumerations
Enumerator
a
c
d
f
l
m
r
s
Concepts
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
~
Variables
d
g
i
m
p
s
v
Typedefs
b
c
l
p
s
t
v
Enumerations
Enumerator
c
f
i
r
Properties
a
c
d
f
g
h
i
m
o
s
t
u
Files
File List
File Members
All
a
b
c
d
f
h
i
k
l
m
o
p
q
r
s
t
w
Functions
a
b
c
d
f
h
i
l
m
o
p
q
r
s
t
w
Variables
Enumerations
Enumerator
Macros
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Macros
Pages
Concepts
Loading...
Searching...
No Matches
source
src
core
core/Action.cpp
Go to the documentation of this file.
1
/*
2
This file is part of KDDockWidgets.
3
4
SPDX-FileCopyrightText: 2020 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
5
Author: Sérgio Martins <sergio.martins@kdab.com>
6
7
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
8
9
Contact KDAB at <info@kdab.com> for commercial licensing options.
10
*/
11
12
#include "
Action.h
"
13
#include "Action_p.h"
14
15
using namespace
KDDockWidgets
;
16
using namespace
KDDockWidgets::Core
;
17
18
Action::Action
(
DockWidget
*dw,
const
char
*debugName)
19
: d(new Private(dw, debugName))
20
{
21
}
18
Action::Action
(
DockWidget
*dw,
const
char
*debugName) {
…
}
22
23
Action::~Action
()
24
{
25
delete
d
;
26
}
23
Action::~Action
() {
…
}
27
28
bool
Action::enabled
()
const
29
{
30
return
isEnabled
();
31
}
28
bool
Action::enabled
()
const
{
…
}
32
33
void
Action::toggle
()
34
{
35
setChecked
(!
isChecked
());
36
}
33
void
Action::toggle
() {
…
}
KDDockWidgets::Core::Action::isEnabled
virtual bool isEnabled() const =0
KDDockWidgets::Core::Action::enabled
bool enabled() const
Definition
core/Action.cpp:28
KDDockWidgets::Core::Action::isChecked
virtual bool isChecked() const =0
KDDockWidgets::Core::Action::setChecked
virtual void setChecked(bool checked)=0
KDDockWidgets::Core::Action::toggle
void toggle()
Definition
core/Action.cpp:33
KDDockWidgets::Core::Action::~Action
virtual ~Action()
Definition
core/Action.cpp:23
KDDockWidgets::Core::Action::Action
Action(Core::DockWidget *, const char *debugName="")
Definition
core/Action.cpp:18
KDDockWidgets::Core::Action::d
Private *const d
Definition
core/Action.h:57
KDDockWidgets::Core::DockWidget
The DockWidget base-class. DockWidget and Core::DockWidget are only split in two so we can share some...
Definition
core/DockWidget.h:60
KDDockWidgets::Core
Definition
Config.h:27
KDDockWidgets
Class to abstract QAction, so code still works with QtQuick and Flutter.
Definition
KDStlContainerAdaptor.h:427
Action.h
© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
KDDockWidgets
Advanced Dock Widget Framework for Qt
https://www.kdab.com/development-resources/qt-tools/kddockwidgets/
Generated by doxygen 1.9.8