matrixion/src/dialogs/JoinRoom.h

33 lines
482 B
C
Raw Normal View History

#pragma once
#include <QFrame>
2018-09-19 22:42:26 +03:00
class QPushButton;
2017-12-10 16:22:01 +03:00
class TextField;
namespace dialogs {
class JoinRoom : public QFrame
{
Q_OBJECT
public:
JoinRoom(QWidget *parent = nullptr);
signals:
2018-09-19 22:42:26 +03:00
void joinRoom(const QString &room);
2017-12-10 16:22:01 +03:00
protected:
void showEvent(QShowEvent *event) override;
private slots:
void handleInput();
private:
2018-09-19 22:42:26 +03:00
QPushButton *confirmBtn_;
QPushButton *cancelBtn_;
2017-12-10 16:22:01 +03:00
TextField *roomInput_;
};
} // dialogs