18 Q_PROPERTY( Qt::Orientation orientation READ orientation
19 WRITE setOrientation NOTIFY orientationChanged )
21 Q_PROPERTY(
bool centeredButtons READ centeredButtons
22 WRITE setCenteredButtons NOTIFY centeredButtonsChanged )
27 QSK_SUBCONTROLS( Panel )
34 void setOrientation( Qt::Orientation );
35 Qt::Orientation orientation()
const;
37 void setCenteredButtons(
bool center );
38 bool centeredButtons()
const;
44 QVector< QskPushButton* > buttons()
const;
45 QVector< QskPushButton* > buttons( QskDialog::ActionRole )
const;
47 QskDialog::ActionRole actionRole(
const QskPushButton* )
const;
49 void addAction( QskDialog::Action );
51 void setActions( QskDialog::Actions );
52 QskDialog::Actions actions()
const;
58 QskDialog::Action clickedAction()
const;
63 static bool isDefaultButtonKeyEvent(
const QKeyEvent* );
70 void centeredButtonsChanged();
71 void orientationChanged();
74 bool event( QEvent* )
override;
75 void itemChange( ItemChange,
const ItemChangeData& )
override;
77 void updateLayout()
override;
78 QSizeF layoutSizeHint( Qt::SizeHint,
const QSizeF& )
const override;
80 virtual QskPushButton* createButton( QskDialog::Action )
const;
81 void invalidateLayout();
87 void onButtonClicked();
88 void rearrangeButtons();
89 void updateTabFocusChain();
92 std::unique_ptr< PrivateData > m_data;