KDDockWidgets API Documentation
2.1
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
f
g
h
i
j
l
m
n
o
p
q
r
s
t
v
w
Functions
a
b
c
d
f
g
i
j
l
m
o
p
q
r
s
t
w
Variables
a
r
s
Typedefs
Enumerations
Enumerator
a
c
d
f
l
m
r
s
Concepts
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
d
g
i
m
n
p
s
v
Typedefs
b
c
l
p
s
t
v
Enumerations
Enumerator
c
f
i
m
r
Properties
a
c
d
f
g
h
i
m
o
s
t
u
Files
File List
File Members
All
a
b
c
d
f
h
i
k
l
m
o
p
q
r
s
t
w
Functions
a
b
c
d
f
h
i
l
m
o
p
q
r
s
t
w
Variables
Enumerations
Enumerator
Macros
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Macros
Pages
Concepts
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
};
30
class
DOCKS_EXPORT
FocusScope
{
…
};
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