-
Notifications
You must be signed in to change notification settings - Fork 0
/
EnterTournamentNameDialog.cpp
40 lines (30 loc) · 1.26 KB
/
EnterTournamentNameDialog.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include "EnterTournamentNameDialog.h"
#include "ui_EnterTournamentNameDialog.h"
#include "QPushButton"
EnterTournamentName::EnterTournamentName(QWidget *parent) :
QDialog(parent),
ui(new Ui::EnterTournamentName)
{
ui->setupUi(this);
this->setStyleSheet("color: black;"
"background-color: #F9DFCB;"
"selection-color: white;"
"selection-background-color: blue;");
ui->lineEdit->setStyleSheet("background-color: white;");
ui->buttonBox->button(QDialogButtonBox::Ok)->setStyleSheet("QPushButton::hover{background-color : lightgreen;}"
"QPushButton {background-color: #FFFFFF}");
ui->buttonBox->button(QDialogButtonBox::Cancel)->setStyleSheet("QPushButton::hover{background-color : lightgreen;}"
"QPushButton {background-color: #FFFFFF}");
}
EnterTournamentName::~EnterTournamentName()
{
delete ui;
}
std::string EnterTournamentName::getTournamentName(){
return (ui->lineEdit->text()).toStdString();
}
void EnterTournamentName::on_buttonBox_accepted()
{
//this->getTournamentName();
close();
}