qt-material-widgets/components/qtmaterialdialog.h

38 lines
650 B
C
Raw Normal View History

2017-09-29 23:15:08 +00:00
#ifndef QTMATERIALDIALOG_H
#define QTMATERIALDIALOG_H
#include <QScopedPointer>
2017-09-29 23:40:00 +00:00
#include "lib/qtmaterialoverlaywidget.h"
2022-02-17 02:15:21 +00:00
namespace md
{
2017-09-29 23:15:08 +00:00
class QLayout;
2022-02-17 02:15:21 +00:00
class DialogPrivate;
2017-09-29 23:15:08 +00:00
2022-02-17 02:15:21 +00:00
class Dialog : public OverlayWidget
2017-09-29 23:15:08 +00:00
{
Q_OBJECT
public:
2022-02-17 02:15:21 +00:00
explicit Dialog(QWidget *parent = 0);
~Dialog();
2017-09-29 23:15:08 +00:00
QLayout *windowLayout() const;
void setWindowLayout(QLayout *layout);
public slots:
2017-09-29 23:15:08 +00:00
void showDialog();
void hideDialog();
protected:
void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE;
2022-02-17 02:15:21 +00:00
const QScopedPointer<DialogPrivate> d_ptr;
2017-09-29 23:15:08 +00:00
private:
2022-02-17 02:15:21 +00:00
Q_DISABLE_COPY(Dialog)
Q_DECLARE_PRIVATE(Dialog)
2017-09-29 23:15:08 +00:00
};
2022-02-17 02:15:21 +00:00
}
2017-09-29 23:15:08 +00:00
#endif // QTMATERIALDIALOG_H