Cavoke  1.1.0
A Platform for creating and hosting multiplayer turn-based board games
Loading...
Searching...
No Matches
creategameview.cpp
1#include "creategameview.h"
2#include "authdialog.h"
3#include "ui_creategameview.h"
4
5CreateGameView::CreateGameView(QWidget *parent)
6 : QMainWindow(parent), ui(new Ui::CreateGameView) {
7 ui->setupUi(this);
8}
9
10CreateGameView::~CreateGameView() {
11 delete ui;
12}
13
14void CreateGameView::on_backButton_clicked() {
15 this->close();
16 emit shownStartView();
17}
18
19void CreateGameView::on_createGameButton_clicked() {
20 if (!AuthDialog::verifyAuth(this)) {
21 return;
22 }
23 if (ui->roomNameEdit->text().isEmpty()) {
24 return;
25 }
26 emit startedCreateGameRoutine(ui->roomNameEdit->text());
27}
static bool verifyAuth(QWidget *parent=nullptr)
Definition: authdialog.cpp:28