KDDockWidgets API Documentation 2.1
Loading...
Searching...
No Matches
qtquick/views/Separator.h
Go to the documentation of this file.
1/*
2 This file is part of KDDockWidgets.
3
4 SPDX-FileCopyrightText: 2020 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#pragma once
15
16#include "View.h"
17#include "kddockwidgets/docks_export.h"
18
19#include <QQuickItem>
20
21namespace KDDockWidgets::Core {
22class Separator;
23}
24
25namespace KDDockWidgets {
26
27namespace QtQuick {
28
29class DOCKS_EXPORT Separator : public QtQuick::View
30{
31 Q_OBJECT
32 Q_PROPERTY(bool isVertical READ isVertical NOTIFY isVerticalChanged)
33public:
34 explicit Separator(Core::Separator *controller, QQuickItem *parent = nullptr);
35 bool isVertical() const;
36
37public:
38 // Interface with QML:
39 Q_INVOKABLE void onMousePressed();
40 Q_INVOKABLE void onMouseMoved(QPointF localPos);
41 Q_INVOKABLE void onMouseReleased();
42 Q_INVOKABLE void onMouseDoubleClicked();
43Q_SIGNALS:
44 // constant but it's only set after Separator::init
46
47private:
48 void init() override final;
49 QSize minSize() const override;
50 Core::Separator *const m_controller;
51};
52
53}
54
55}
56
57#endif
Class to abstract QAction, so code still works with QtQuick and Flutter.

© 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