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