qt-material-widgets/components/dialog_internal.h

36 lines
606 B
C
Raw Normal View History

2016-06-19 14:13:37 +00:00
#ifndef DIALOG_INTERNAL_H
#define DIALOG_INTERNAL_H
#include <QWidget>
2016-06-21 09:18:51 +00:00
class QStateMachine;
2016-06-19 14:13:37 +00:00
class Dialog;
class DialogWindow : public QWidget
{
Q_OBJECT
2016-06-21 09:18:51 +00:00
Q_PROPERTY(int offset WRITE setOffset READ offset)
2016-06-19 14:13:37 +00:00
public:
2016-06-21 09:18:51 +00:00
explicit DialogWindow(Dialog *dialog, QWidget *parent = 0);
2016-06-19 14:13:37 +00:00
~DialogWindow();
2016-06-21 09:18:51 +00:00
void setOffset(int offset);
int offset() const;
signals:
void dialogActivated();
void dialogDeactivated();
2016-06-19 14:13:37 +00:00
protected:
void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE;
private:
Q_DISABLE_COPY(DialogWindow)
2016-06-21 09:18:51 +00:00
Dialog *const dialog;
2016-06-19 14:13:37 +00:00
};
#endif // DIALOG_INTERNAL_H