matrixion/src/dialogs/JoinRoom.h

34 lines
548 B
C
Raw Normal View History

#pragma once
#include <QFrame>
2017-10-28 15:46:39 +03:00
class FlatButton;
2017-12-10 16:22:01 +03:00
class TextField;
namespace dialogs {
class JoinRoom : public QFrame
{
Q_OBJECT
public:
JoinRoom(QWidget *parent = nullptr);
signals:
2017-12-10 16:22:01 +03:00
void closing(bool isJoining, const QString &room);
protected:
void paintEvent(QPaintEvent *event) override;
void showEvent(QShowEvent *event) override;
private slots:
void handleInput();
private:
FlatButton *confirmBtn_;
FlatButton *cancelBtn_;
2017-12-10 16:22:01 +03:00
TextField *roomInput_;
};
} // dialogs