KDDockWidgets API Documentation 1.7
Loading...
Searching...
No Matches
Separator_quick.h
Go to the documentation of this file.
1/*
2 This file is part of KDDockWidgets.
3
4 SPDX-FileCopyrightText: 2020-2023 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#ifndef KD_MULTISPLITTER_SEPARATOR_QUICK_H
13#define KD_MULTISPLITTER_SEPARATOR_QUICK_H
14
15#include "kddockwidgets/docks_export.h"
16#include "Separator_p.h"
17#include "Widget_quick.h"
18
19#include <QQuickItem>
20
21namespace Layouting {
22
23class DOCKS_EXPORT SeparatorQuick
24 : public QQuickItem,
25 public Layouting::Separator,
27{
28 Q_OBJECT
29 Q_PROPERTY(bool isVertical READ isVertical NOTIFY isVerticalChanged)
30public:
31 explicit SeparatorQuick(Layouting::Widget *parent = nullptr);
32
33 bool isVertical() const;
34
35protected:
36 Widget *createRubberBand(Widget *parent) override;
37 Widget *asWidget() override;
38
39public:
40 // Interface with QML:
41 Q_INVOKABLE void onMousePressed();
42 Q_INVOKABLE void onMouseMoved(QPointF localPos);
43 Q_INVOKABLE void onMouseReleased();
44 Q_INVOKABLE void onMouseDoubleClicked();
45Q_SIGNALS:
46 // constant but it's only set after Separator::init
48};
49
50}
51
52#endif
A Layouting::Widget that's deals in QQuickItem.
A Layouting::Widget that's deals in QQuickItem Allows to host a QQuickItem in the layout.
An abstraction/wrapper around QWidget, QtQuickItem or anything else.
Definition Widget.h:77

© 2019-2023 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 Wed Nov 1 2023 00:02:31 for KDDockWidgets API Documentation by doxygen 1.9.8