ArchitectureColoredPainting/qt-material-widgets/components/qtmaterialdialog.h

36 lines
714 B
C
Raw Normal View History

2023-03-06 12:38:25 +08:00
#ifndef QTMATERIALDIALOG_H
#define QTMATERIALDIALOG_H
#include <QScopedPointer>
#include "lib/qtmaterialoverlaywidget.h"
class QLayout;
class QtMaterialDialogPrivate;
class QtMaterialDialog : public QtMaterialOverlayWidget
{
Q_OBJECT
public:
explicit QtMaterialDialog(QWidget *parent = 0);
~QtMaterialDialog();
QLayout *windowLayout() const;
void setWindowLayout(QLayout *layout);
public slots:
void showDialog();
void hideDialog();
protected:
void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE;
const QScopedPointer<QtMaterialDialogPrivate> d_ptr;
private:
Q_DISABLE_COPY(QtMaterialDialog)
Q_DECLARE_PRIVATE(QtMaterialDialog)
};
#endif // QTMATERIALDIALOG_H