QSkinny 0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskTabButton.h
1/******************************************************************************
2 * QSkinny - Copyright (C) The authors
3 * SPDX-License-Identifier: BSD-3-Clause
4 *****************************************************************************/
5
6#ifndef QSK_TAB_BUTTON_H
7#define QSK_TAB_BUTTON_H
8
9#include "QskAbstractButton.h"
10
11class QskTextOptions;
12class QskTabBar;
13
14class QSK_EXPORT QskTabButton : public QskAbstractButton
15{
16 Q_OBJECT
17
18 Q_PROPERTY( QString text READ text WRITE setText NOTIFY textChanged FINAL )
19
20 Q_PROPERTY( QskTextOptions textOptions READ textOptions
21 WRITE setTextOptions RESET resetTextOptions NOTIFY textOptionsChanged )
22
24
25 public:
26 QSK_SUBCONTROLS( Panel, Text )
27
28 QskTabButton( QQuickItem* parent = nullptr );
29 QskTabButton( const QString& text, QQuickItem* parent = nullptr );
30
31 ~QskTabButton() override;
32
33 bool isCheckable() const override final;
34
35 void setText( const QString& text );
36 QString text() const;
37
38 void setTextOptions( const QskTextOptions& );
39 QskTextOptions textOptions() const;
40 void resetTextOptions();
41
42 QRectF layoutRectForSize( const QSizeF& ) const override;
43
45
46 const QskTabBar* tabBar() const;
47 QskTabBar* tabBar();
48
49 Q_SIGNALS:
50 void textChanged( const QString& text );
51 void textOptionsChanged();
52
53 protected:
54 void changeEvent( QEvent* ) override;
55
56 private:
57 class PrivateData;
58 std::unique_ptr< PrivateData > m_data;
59};
60
61#endif
Variation
Some sort of variation.
Definition QskAspect.h:82
virtual QRectF layoutRectForSize(const QSizeF &) const
virtual void changeEvent(QEvent *)
Definition QskItem.cpp:859
virtual QskAspect::Variation effectiveVariation() const