16 Q_PROPERTY(
int selectedIndex READ selectedIndex
17 WRITE setSelectedIndex NOTIFY selectedIndexChanged FINAL )
19 Q_PROPERTY( QStringList options READ options
20 WRITE setOptions NOTIFY optionsChanged FINAL )
25 QSK_SUBCONTROLS( Panel, Button, CheckIndicatorPanel, CheckIndicator, Text )
26 QSK_STATES( Selected, Pressed )
29 QskRadioBox(
const QStringList&, QQuickItem* parent =
nullptr );
30 QskRadioBox(
const QStringList&,
int, QQuickItem* parent =
nullptr );
36 QStringList options()
const;
37 QString optionAt(
int )
const;
39 int selectedIndex()
const;
40 int pressedIndex()
const;
43 void setSelectedIndex(
int );
44 void setOptions(
const QStringList& );
47 void selectedIndexChanged(
int );
48 void optionsChanged(
const QStringList& );
51 void keyPressEvent( QKeyEvent* )
override;
52 void keyReleaseEvent( QKeyEvent* )
override;
54 void mousePressEvent( QMouseEvent* )
override;
55 void mouseReleaseEvent( QMouseEvent* )
override;
59 void hoverMoveEvent( QHoverEvent* )
override;
62 void focusInEvent( QFocusEvent* )
override;
63 void focusOutEvent( QFocusEvent* )
override;
65 int indexAt(
const QPointF& )
const;
68 void setHoveredIndex(
int index );
69 void setFocusedIndex(
int index );
72 std::unique_ptr< PrivateData > m_data;