KDDockWidgets API Documentation 2.1
Loading...
Searching...
No Matches
FocusScope.h
Go to the documentation of this file.
1/*
2 This file is part of KDDockWidgets.
3
4 SPDX-FileCopyrightText: 2019 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
19#ifndef KD_DOCKWIDGETS_FOCUSSCOPE_H
20#define KD_DOCKWIDGETS_FOCUSSCOPE_H
21
22#include "kddockwidgets/docks_export.h"
23#include "kddockwidgets/KDDockWidgets.h"
24
25namespace KDDockWidgets::Core {
26
27class View;
28
30class DOCKS_EXPORT FocusScope
31{
33public:
35 explicit FocusScope(View *thisView);
36 virtual ~FocusScope();
37
41 bool isFocused() const;
42
47
48protected:
50 virtual void isFocusedChangedCallback() = 0;
51 virtual void focusedWidgetChangedCallback() = 0;
52
53private:
54 class Private;
55 Private *const d;
56};
57}
58
59#endif
#define KDDW_DELETE_COPY_CTOR(NAME)
Allows to implement a similar functionality to QtQuick's FocusScope item, in QtWidgets.
Definition FocusScope.h:31
virtual void focusedWidgetChangedCallback()=0
virtual void isFocusedChangedCallback()=0
reimplement in the 1st QObject derived class
FocusReason

© 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