2016-06-17 11:43:04 +00:00
|
|
|
#ifndef DIALOG_H
|
|
|
|
#define DIALOG_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
2016-06-19 14:13:37 +00:00
|
|
|
class DialogPrivate;
|
|
|
|
|
2016-06-17 11:43:04 +00:00
|
|
|
class Dialog : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit Dialog(QWidget *parent = 0);
|
|
|
|
~Dialog();
|
|
|
|
|
2016-06-20 15:47:17 +00:00
|
|
|
QLayout *windowLayout() const;
|
|
|
|
void setWindowLayout(QLayout *layout);
|
|
|
|
|
|
|
|
protected slots:
|
|
|
|
void pressOne();
|
|
|
|
void pressTwo();
|
|
|
|
|
2016-06-19 14:13:37 +00:00
|
|
|
protected:
|
|
|
|
bool event(QEvent *event) Q_DECL_OVERRIDE;
|
|
|
|
bool eventFilter(QObject *obj, QEvent *event) Q_DECL_OVERRIDE;
|
|
|
|
void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE;
|
|
|
|
|
|
|
|
const QScopedPointer<DialogPrivate> d_ptr;
|
|
|
|
|
2016-06-17 11:43:04 +00:00
|
|
|
private:
|
|
|
|
Q_DISABLE_COPY(Dialog)
|
2016-06-19 14:13:37 +00:00
|
|
|
Q_DECLARE_PRIVATE(Dialog)
|
2016-06-17 11:43:04 +00:00
|
|
|
};
|
|
|
|
|
2016-06-20 15:47:17 +00:00
|
|
|
// //QWidget *dialogWidget() const;
|
|
|
|
//
|
|
|
|
//protected slots:
|
|
|
|
// void pressOne();
|
|
|
|
// void pressTwo();
|
|
|
|
//
|
|
|
|
//protected:
|
|
|
|
//// bool event(QEvent *event) Q_DECL_OVERRIDE;
|
|
|
|
//// bool eventFilter(QObject *obj, QEvent *event) Q_DECL_OVERRIDE;
|
|
|
|
// void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE;
|
|
|
|
//
|
|
|
|
// const QScopedPointer<DialogPrivate> d_ptr;
|
|
|
|
//
|
|
|
|
//private:
|
|
|
|
// Q_DISABLE_COPY(Dialog)
|
|
|
|
// Q_DECLARE_PRIVATE(Dialog)
|
|
|
|
//};
|
|
|
|
|
2016-06-17 11:43:04 +00:00
|
|
|
#endif // DIALOG_H
|