QskDialogButtonBox

Inherits from QskBox

Public Signals

  Name
void clicked(QskPushButton * button)
void accepted()
void rejected()
void centeredButtonsChanged()
void orientationChanged()

Public Functions

  Name
  QskDialogButtonBox(QQuickItem * parent =nullptr)
  QskDialogButtonBox(Qt::Orientation orientation, QQuickItem * parent =nullptr)
  ~QskDialogButtonBox() override
void setOrientation(Qt::Orientation orientation)
Qt::Orientation orientation() const
void setCenteredButtons(bool center)
bool centeredButtons() const
void addButton(QskPushButton * button, QskDialog::ActionRole role)
void removeButton(QskPushButton * button)
void clear()
QVector< QskPushButton * > buttons() const
QVector< QskPushButton * > buttons(QskDialog::ActionRole role) const
QskDialog::ActionRole actionRole(const QskPushButton * button) const
void addAction(QskDialog::Action action)
void setActions(QskDialog::Actions actions)
QskDialog::Actions actions() const
QskDialog::Action action(const QskPushButton * button) const
QskPushButton * button(QskDialog::Action action) const
QskDialog::Action clickedAction() const
void setDefaultButton(QskPushButton * button)
QskPushButton * defaultButton() const
bool isDefaultButtonKeyEvent(const QKeyEvent * event)
QString buttonText(QskDialog::Action action)

Protected Functions

  Name
bool event(QEvent * event) override
void itemChange(ItemChange , const ItemChangeData & ) override
void updateLayout() override
QSizeF layoutSizeHint(Qt::SizeHint which, const QSizeF & constraint) const override
virtual QskPushButton * createButton(QskDialog::Action action) const
void invalidateLayout()
QskAspect::Subcontrol substitutedSubcontrol(QskAspect::Subcontrol subControl) const override

Public Properties

  Name
Qt::Orientation orientation
bool centeredButtons

Public Attributes

  Name
const QskAspect::Subcontrol Panel

Public Signals Documentation

signal clicked

void clicked(
    QskPushButton * button
)

signal accepted

void accepted()

signal rejected

void rejected()

signal centeredButtonsChanged

void centeredButtonsChanged()

signal orientationChanged

void orientationChanged()

Public Functions Documentation

function QskDialogButtonBox

QskDialogButtonBox(
    QQuickItem * parent =nullptr
)

function QskDialogButtonBox

QskDialogButtonBox(
    Qt::Orientation orientation,
    QQuickItem * parent =nullptr
)

function ~QskDialogButtonBox

~QskDialogButtonBox() override

function setOrientation

void setOrientation(
    Qt::Orientation orientation
)

function orientation

Qt::Orientation orientation() const

function setCenteredButtons

void setCenteredButtons(
    bool center
)

function centeredButtons

bool centeredButtons() const

function addButton

void addButton(
    QskPushButton * button,
    QskDialog::ActionRole role
)

function removeButton

void removeButton(
    QskPushButton * button
)

function clear

void clear()

function buttons

QVector< QskPushButton * > buttons() const

function buttons

QVector< QskPushButton * > buttons(
    QskDialog::ActionRole role
) const

function actionRole

QskDialog::ActionRole actionRole(
    const QskPushButton * button
) const

function addAction

void addAction(
    QskDialog::Action action
)

function setActions

void setActions(
    QskDialog::Actions actions
)

function actions

QskDialog::Actions actions() const

function action

QskDialog::Action action(
    const QskPushButton * button
) const

function button

QskPushButton * button(
    QskDialog::Action action
) const

function clickedAction

QskDialog::Action clickedAction() const

function setDefaultButton

void setDefaultButton(
    QskPushButton * button
)

function defaultButton

QskPushButton * defaultButton() const

function isDefaultButtonKeyEvent

static bool isDefaultButtonKeyEvent(
    const QKeyEvent * event
)

function buttonText

static QString buttonText(
    QskDialog::Action action
)

Protected Functions Documentation

function event

bool event(
    QEvent * event
) override

function itemChange

void itemChange(
    ItemChange ,
    const ItemChangeData & 
) override

function updateLayout

void updateLayout() override

function layoutSizeHint

QSizeF layoutSizeHint(
    Qt::SizeHint which,
    const QSizeF & constraint
) const override

function createButton

virtual QskPushButton * createButton(
    QskDialog::Action action
) const

function invalidateLayout

void invalidateLayout()

function substitutedSubcontrol

QskAspect::Subcontrol substitutedSubcontrol(
    QskAspect::Subcontrol subControl
) const override

Public Property Documentation

property orientation

Qt::Orientation orientation;

property centeredButtons

bool centeredButtons;

Public Attributes Documentation

variable Panel

static const QskAspect::Subcontrol Panel;

Updated on 28 July 2023 at 14:02:29 CEST