KDDockWidgets API Documentation  1.5
Namespaces | Functions
QWidgetAdapter_quick.cpp File Reference

A class that is QWidget when building for QtWidgets, and QObject when building for QtQuick. More...

#include "QWidgetAdapter.h"
#include "MainWindowBase.h"
#include "../DockRegistry_p.h"
#include "../Utils_p.h"
#include "../FloatingWindow_p.h"
#include <QResizeEvent>
#include <QMouseEvent>
#include <QQmlComponent>
#include <QQuickItem>
#include <QQmlEngine>
#include <QQuickView>
#include <QScopedValueRollback>
#include "QWidgetAdapter_quick.moc"
Include dependency graph for QWidgetAdapter_quick.cpp:

Go to the source code of this file.

Namespaces

 KDDockWidgets
 

Functions

static QQuickItem * actualParentItem (QQuickItem *candidateParentItem, Qt::WindowFlags flags)
 
static bool flagsAreTopLevelFlags (Qt::WindowFlags flags)
 

Detailed Description

A class that is QWidget when building for QtWidgets, and QObject when building for QtQuick.

Allows to have the same code base supporting both stacks.

Author
Sérgio Martins <sergi.nosp@m.o.ma.nosp@m.rtins.nosp@m.@kda.nosp@m.b.com>

Definition in file QWidgetAdapter_quick.cpp.

Function Documentation

◆ actualParentItem()

static QQuickItem* actualParentItem ( QQuickItem *  candidateParentItem,
Qt::WindowFlags  flags 
)
static

Definition at line 112 of file QWidgetAdapter_quick.cpp.

References flagsAreTopLevelFlags().

◆ flagsAreTopLevelFlags()

static bool flagsAreTopLevelFlags ( Qt::WindowFlags  flags)
static

Definition at line 107 of file QWidgetAdapter_quick.cpp.

References Qt::Tool, and Qt::Window.

Referenced by actualParentItem().


© 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:21 for KDDockWidgets API Documentation by doxygen 1.8.20