QSkinny 0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskDialogButton.h
1/******************************************************************************
2 * QSkinny - Copyright (C) The authors
3 * SPDX-License-Identifier: BSD-3-Clause
4 *****************************************************************************/
5
6#ifndef QSK_DIALOG_BUTTON_H
7#define QSK_DIALOG_BUTTON_H
8
9#include "QskDialog.h"
10#include "QskPushButton.h"
11
12class QSK_EXPORT QskDialogButton : public QskPushButton
13{
14 Q_OBJECT
15
16 Q_PROPERTY( QskDialog::Action action READ action()
17 WRITE setAction NOTIFY actionChanged() FINAL )
18
20
21 public:
22
23 QskDialogButton( QskDialog::Action, QQuickItem* parent = nullptr );
24 QskDialogButton( QQuickItem* parent = nullptr );
25
26 ~QskDialogButton() override;
27
28 void setAction( QskDialog::Action );
29 QskDialog::Action action() const;
30
31 Q_SIGNALS:
32 void actionChanged();
33
34 protected:
35 void changeEvent( QEvent* ) override;
36
37 private:
38 void resetButton();
39
40 QskDialog::Action m_action;
41};
42
43#endif
void changeEvent(QEvent *) override