KDDockWidgets API Documentation 1.7
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-2023 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 "docks_export.h"
23#include "QWidgetAdapter.h"
24
25namespace KDDockWidgets {
27class DOCKS_EXPORT FocusScope
28{
29 Q_DISABLE_COPY(FocusScope)
30public:
32 explicit FocusScope(QWidgetAdapter *thisWidget);
33 virtual ~FocusScope();
34
38 bool isFocused() const;
39
43 WidgetType *focusedWidget() const;
44
49
50 /*Q_SIGNALS:*/
51protected:
53 virtual void isFocusedChangedCallback() = 0;
54 virtual void focusedWidgetChangedCallback() = 0;
55
56private:
57 class Private;
58 Private *const d;
59};
60}
61
62#endif
Abstraction for supporting both QtWidgets and QtQuick.
Allows to implement a similar functionality to QtQuick's FocusScope item, in QtWidgets.
Definition FocusScope.h:28
virtual void isFocusedChangedCallback()=0
reimplement in the 1st QObject derived class
virtual void focusedWidgetChangedCallback()=0
FocusReason

© 2019-2023 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 on Wed Nov 1 2023 00:02:31 for KDDockWidgets API Documentation by doxygen 1.9.8