KDDockWidgets API Documentation
2.0
Loading...
Searching...
No Matches
source
src
qtquick
views
qtquick/views/RubberBand.cpp
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
12
#include "
RubberBand.h
"
13
#include "
Config.h
"
14
#include "
qtquick/Platform.h
"
15
16
#include <QQmlEngine>
17
18
using namespace
KDDockWidgets
;
19
20
using namespace
KDDockWidgets
;
21
using namespace
KDDockWidgets::QtQuick
;
22
23
RubberBand::RubberBand
(QQuickItem *parent)
24
:
View
(nullptr, Core::ViewType::
RubberBand
, parent)
25
{
26
setVisible
(
false
);
27
setZ(1000);
28
QQuickItem *
visualItem
=
createItem
(
29
plat
()->qmlEngine(), QStringLiteral(
"qrc:/kddockwidgets/qtquick/views/qml/RubberBand.qml"
));
30
visualItem
->setParent(
this
);
31
visualItem
->setParentItem(
this
);
32
}
Config.h
Application-wide config to tune certain behaviours of the framework.
KDDockWidgets::QtQuick::RubberBand
Definition
qtquick/views/RubberBand.h:23
KDDockWidgets::QtQuick::RubberBand::RubberBand
RubberBand(QQuickItem *parent)
Definition
qtquick/views/RubberBand.cpp:23
KDDockWidgets::QtQuick::View
Definition
qtquick/views/View.h:53
KDDockWidgets::QtQuick::View::createItem
static QQuickItem * createItem(QQmlEngine *engine, const QString &filename, QQmlContext *context=nullptr)
Convenience to create a QQuickItem.
Definition
qtquick/views/View.cpp:163
KDDockWidgets::QtQuick::View::visualItem
virtual QQuickItem * visualItem() const
Definition
qtquick/views/View.cpp:880
KDDockWidgets::QtQuick::View::setVisible
void setVisible(bool is) override
Definition
qtquick/views/View.cpp:339
KDDockWidgets::QtQuick
Definition
core/MainWindow.h:36
KDDockWidgets
Class to abstract QAction, so code still works with QtQuick and Flutter.
Definition
KDStlContainerAdaptor.h:427
KDDockWidgets::plat
QtQuick::Platform * plat()
Definition
qtquick/Platform.h:84
Platform.h
RubberBand.h
© 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