2017-10-01 19:49:36 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QFrame>
|
|
|
|
|
2017-10-28 15:46:39 +03:00
|
|
|
class FlatButton;
|
2017-10-01 19:49:36 +03:00
|
|
|
|
2017-11-30 21:02:46 +03:00
|
|
|
namespace dialogs {
|
|
|
|
|
|
|
|
class LeaveRoom : public QFrame
|
2017-10-01 19:49:36 +03:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2017-11-30 21:02:46 +03:00
|
|
|
explicit LeaveRoom(QWidget *parent = nullptr);
|
2017-10-01 19:49:36 +03:00
|
|
|
|
2017-11-22 20:52:38 +03:00
|
|
|
protected:
|
2017-11-22 22:13:22 +03:00
|
|
|
void paintEvent(QPaintEvent *event) override;
|
2017-11-22 20:52:38 +03:00
|
|
|
|
2017-10-01 19:49:36 +03:00
|
|
|
signals:
|
|
|
|
void closing(bool isLeaving);
|
|
|
|
|
|
|
|
private:
|
|
|
|
FlatButton *confirmBtn_;
|
|
|
|
FlatButton *cancelBtn_;
|
|
|
|
};
|
2017-11-30 21:02:46 +03:00
|
|
|
} // dialogs
|