KDDockWidgets API Documentation  1.5
Separator_quick.h
Go to the documentation of this file.
1 /*
2  This file is part of KDDockWidgets.
3 
4  SPDX-FileCopyrightText: 2020-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 
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 
21 namespace Layouting {
22 
23 class DOCKS_EXPORT SeparatorQuick
24  : public QQuickItem,
25  public Layouting::Separator,
27 {
28  Q_OBJECT
29  Q_PROPERTY(bool isVertical READ isVertical NOTIFY isVerticalChanged)
30 public:
31  explicit SeparatorQuick(Layouting::Widget *parent = nullptr);
32 
33  bool isVertical() const;
34 
35 protected:
36  Widget *createRubberBand(Widget *parent) override;
37  Widget *asWidget() override;
38 
39 public:
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();
45 Q_SIGNALS:
46  // constant but it's only set after Separator::init
48 };
49 
50 }
51 
52 #endif
Layouting::SeparatorQuick
Definition: Separator_quick.h:27
Layouting::SeparatorQuick::isVerticalChanged
void isVerticalChanged()
QPointF
Layouting::Widget
An abstraction/wrapper around QWidget, QtQuickItem or anything else.
Definition: Widget.h:79
Widget_quick.h
A Layouting::Widget that's deals in QQuickItem.
Layouting::Widget_quick
A Layouting::Widget that's deals in QQuickItem Allows to host a QQuickItem in the layout.
Definition: Widget_quick.h:30
Layouting
Definition: FrameworkWidgetFactory.h:32

© 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