KDDockWidgets API Documentation
2.1
Loading...
Searching...
No Matches
source
src
core
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
25
namespace
KDDockWidgets::Core
{
26
27
class
View;
28
30
class
DOCKS_EXPORT
FocusScope
31
{
32
KDDW_DELETE_COPY_CTOR
(
FocusScope
)
33
public
:
35
explicit
FocusScope
(
View
*thisView);
36
virtual
~FocusScope
();
37
41
bool
isFocused()
const
;
42
46
void
focus(
Qt::FocusReason
=
Qt::OtherFocusReason
);
47
48
protected
:
50
virtual
void
isFocusedChangedCallback
() = 0;
51
virtual
void
focusedWidgetChangedCallback
() = 0;
52
53
private
:
54
class
Private;
55
Private *
const
d;
56
};
57
}
58
59
#endif
KDDW_DELETE_COPY_CTOR
#define KDDW_DELETE_COPY_CTOR(NAME)
Definition
KDDockWidgets.h:438
KDDockWidgets::Core::FocusScope
Allows to implement a similar functionality to QtQuick's FocusScope item, in QtWidgets.
Definition
FocusScope.h:31
KDDockWidgets::Core::FocusScope::focusedWidgetChangedCallback
virtual void focusedWidgetChangedCallback()=0
KDDockWidgets::Core::FocusScope::isFocusedChangedCallback
virtual void isFocusedChangedCallback()=0
reimplement in the 1st QObject derived class
KDDockWidgets::Core::View
Definition
core/View.h:48
KDDockWidgets::Core
Definition
Config.h:27
Qt::FocusReason
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