qskinny/src/controls/QskSeparator.h

49 lines
1.3 KiB
C
Raw Normal View History

2017-07-21 18:21:34 +02:00
/******************************************************************************
* QSkinny - Copyright (C) 2016 Uwe Rathmann
* This file may be used under the terms of the QSkinny License, Version 1.0
*****************************************************************************/
#ifndef QSK_SEPARATOR_H
#define QSK_SEPARATOR_H
#include "QskControl.h"
class QSK_EXPORT QskSeparator : public QskControl
{
Q_OBJECT
Q_PROPERTY( Qt::Orientation orientation READ orientation
WRITE setOrientation NOTIFY orientationChanged )
Q_PROPERTY( qreal thickness READ thickness
WRITE setThickness NOTIFY thicknessChanged )
2017-07-21 18:21:34 +02:00
using Inherited = QskControl;
2018-08-03 08:15:28 +02:00
public:
2017-07-21 18:21:34 +02:00
QSK_SUBCONTROLS( Panel )
QskSeparator( QQuickItem* parent = nullptr );
QskSeparator( Qt::Orientation, QQuickItem* parent = nullptr );
2018-07-31 17:32:25 +02:00
~QskSeparator() override;
2017-07-21 18:21:34 +02:00
void setOrientation( Qt::Orientation );
Qt::Orientation orientation() const;
void setThickness( qreal thickness );
qreal thickness() const;
2018-07-31 17:32:25 +02:00
QSizeF contentsSizeHint() const override;
QskAspect::Placement effectivePlacement() const override;
2017-07-21 18:21:34 +02:00
2018-08-03 08:15:28 +02:00
Q_SIGNALS:
2017-07-21 18:21:34 +02:00
void orientationChanged( Qt::Orientation );
2017-10-30 08:33:43 +01:00
void thicknessChanged();
2017-07-21 18:21:34 +02:00
2018-08-03 08:15:28 +02:00
private:
2017-07-21 18:21:34 +02:00
Qt::Orientation m_orientation;
};
#endif