QSkinny 0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskCheckBox.h
1/******************************************************************************
2 * QSkinny - Copyright (C) The authors
3 * SPDX-License-Identifier: BSD-3-Clause
4 *****************************************************************************/
5
6#ifndef QSK_CHECK_BOX_H
7#define QSK_CHECK_BOX_H
8
9#include "QskAbstractButton.h"
10
11class QSK_EXPORT QskCheckBox : public QskAbstractButton
12{
13 Q_OBJECT
14
15 Q_PROPERTY( QString text READ text WRITE setText NOTIFY textChanged FINAL )
16
18
19 public:
20 QSK_SUBCONTROLS( Panel, Box, Indicator, Text )
21 QSK_STATES( Error )
22
23 QskCheckBox( QQuickItem* parent = nullptr );
24 QskCheckBox( const QString&, QQuickItem* parent = nullptr );
25
26 ~QskCheckBox() override;
27
28 QString text() const;
29
30 bool isCheckable() const override final;
31
32 public Q_SLOTS:
33 void setText( const QString& );
34
35 Q_SIGNALS:
36 void textChanged();
37
38 protected:
39 void changeEvent( QEvent* ) override;
40
41 private:
42 class PrivateData;
43 std::unique_ptr< PrivateData > m_data;
44};
45
46#endif
virtual void changeEvent(QEvent *)
Definition QskItem.cpp:859