KDDockWidgets API Documentation
2.1
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
}
22
23
Action::~Action
()
24
{
25
delete
d
;
26
}
27
28
bool
Action::enabled
()
const
29
{
30
return
isEnabled
();
31
}
32
33
void
Action::toggle
()
34
{
35
setChecked
(!
isChecked
());
36
}
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