KDDockWidgets API Documentation 2.1
Loading...
Searching...
No Matches
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
15using namespace KDDockWidgets;
16using namespace KDDockWidgets::Core;
17
18Action::Action(DockWidget *dw, const char *debugName)
19 : d(new Private(dw, debugName))
20{
21}
22
24{
25 delete d;
26}
27
28bool Action::enabled() const
29{
30 return isEnabled();
31}
32
34{
36}
virtual bool isEnabled() const =0
virtual bool isChecked() const =0
virtual void setChecked(bool checked)=0
Action(Core::DockWidget *, const char *debugName="")
The DockWidget base-class. DockWidget and Core::DockWidget are only split in two so we can share some...
Class to abstract QAction, so code still works with QtQuick and Flutter.

© 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