qtmaterialdialog.h 714 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef QTMATERIALDIALOG_H
  2. #define QTMATERIALDIALOG_H
  3. #include <QScopedPointer>
  4. #include "lib/qtmaterialoverlaywidget.h"
  5. class QLayout;
  6. class QtMaterialDialogPrivate;
  7. class QtMaterialDialog : public QtMaterialOverlayWidget
  8. {
  9. Q_OBJECT
  10. public:
  11. explicit QtMaterialDialog(QWidget *parent = 0);
  12. ~QtMaterialDialog();
  13. QLayout *windowLayout() const;
  14. void setWindowLayout(QLayout *layout);
  15. public slots:
  16. void showDialog();
  17. void hideDialog();
  18. protected:
  19. void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE;
  20. const QScopedPointer<QtMaterialDialogPrivate> d_ptr;
  21. private:
  22. Q_DISABLE_COPY(QtMaterialDialog)
  23. Q_DECLARE_PRIVATE(QtMaterialDialog)
  24. };
  25. #endif // QTMATERIALDIALOG_H