KDDockWidgets API Documentation  1.5
FocusScope.h
Go to the documentation of this file.
1 /*
2  This file is part of KDDockWidgets.
3 
4  SPDX-FileCopyrightText: 2019-2022 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 
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
KDDockWidgets::FocusScope::focusedWidgetChangedCallback
virtual void focusedWidgetChangedCallback()=0
KDDockWidgets::FocusScope::isFocusedChangedCallback
virtual void isFocusedChangedCallback()=0
reimplement in the 1st QObject derived class
QWidget
KDDockWidgets::FocusScope
Allows to implement a similar functionality to QtQuick's FocusScope item, in QtWidgets.
Definition: FocusScope.h:28
QWidgetAdapter.h
Abstraction for supporting both QtWidgets and QtQuick.
Qt::FocusReason
FocusReason
KDDockWidgets
Definition: Config.cpp:36

© 2019-2022 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 Mon Mar 7 2022 02:01:20 for KDDockWidgets API Documentation by doxygen 1.8.20