QSkinny 0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskSeparator.h
1/******************************************************************************
2 * QSkinny - Copyright (C) The authors
3 * SPDX-License-Identifier: BSD-3-Clause
4 *****************************************************************************/
5
6#ifndef QSK_SEPARATOR_H
7#define QSK_SEPARATOR_H
8
9#include "QskControl.h"
10
11class QSK_EXPORT QskSeparator : public QskControl
12{
13 Q_OBJECT
14
15 Q_PROPERTY( Qt::Orientation orientation READ orientation
16 WRITE setOrientation NOTIFY orientationChanged )
17
18 Q_PROPERTY( qreal extent READ extent
19 WRITE setExtent RESET resetExtent NOTIFY extentChanged )
20
21 using Inherited = QskControl;
22
23 public:
24 QSK_SUBCONTROLS( Panel )
25
26 QskSeparator( QQuickItem* parent = nullptr );
27 QskSeparator( Qt::Orientation, QQuickItem* parent = nullptr );
28
29 ~QskSeparator() override;
30
31 void setOrientation( Qt::Orientation );
32 Qt::Orientation orientation() const;
33
34 void setExtent( qreal );
35 void resetExtent();
36 qreal extent() const;
37
39
40 Q_SIGNALS:
41 void orientationChanged( Qt::Orientation );
42 void extentChanged( qreal );
43
44 private:
45 Qt::Orientation m_orientation;
46};
47
48#endif
Variation
Some sort of variation.
Definition QskAspect.h:82
Base class of all controls.
Definition QskControl.h:23
Separates a group of items from adjacent items.
void orientationChanged(Qt::Orientation)
virtual QskAspect::Variation effectiveVariation() const