matrixion/src/dialogs/JoinRoom.h
2018-09-19 22:42:26 +03:00

32 lines
482 B
C++

#pragma once
#include <QFrame>
class QPushButton;
class TextField;
namespace dialogs {
class JoinRoom : public QFrame
{
Q_OBJECT
public:
JoinRoom(QWidget *parent = nullptr);
signals:
void joinRoom(const QString &room);
protected:
void showEvent(QShowEvent *event) override;
private slots:
void handleInput();
private:
QPushButton *confirmBtn_;
QPushButton *cancelBtn_;
TextField *roomInput_;
};
} // dialogs