Add window titles for title-less windows
authorWuzzy <almikes@aol.com>
Sat, 21 Nov 2015 21:11:13 +0100
changeset 11495 fb7817a5c2b1
parent 11493 637fb0558a73
child 11496 1010f5cc4881
child 11497 806da449d355
Add window titles for title-less windows
QTfrontend/ui/dialog/bandialog.cpp
QTfrontend/ui/dialog/input_ip.cpp
QTfrontend/ui/widget/feedbackdialog.cpp
QTfrontend/ui/widget/hatprompt.cpp
QTfrontend/ui/widget/roomnameprompt.cpp
QTfrontend/ui/widget/seedprompt.cpp
QTfrontend/ui/widget/themeprompt.cpp
--- a/QTfrontend/ui/dialog/bandialog.cpp	Sat Nov 21 20:22:45 2015 +0100
+++ b/QTfrontend/ui/dialog/bandialog.cpp	Sat Nov 21 21:11:13 2015 +0100
@@ -58,6 +58,7 @@
     connect(btnCancel, SIGNAL(clicked()), this, SLOT(reject()));
 
     this->setWindowModality(Qt::WindowModal);
+    this->setWindowTitle(tr("Ban player"));
 }
 
 bool BanDialog::byIP()
--- a/QTfrontend/ui/dialog/input_ip.cpp	Sat Nov 21 20:22:45 2015 +0100
+++ b/QTfrontend/ui/dialog/input_ip.cpp	Sat Nov 21 21:11:13 2015 +0100
@@ -63,6 +63,7 @@
     connect(pbDefault, SIGNAL(clicked()), this, SLOT(setDefaultPort()));
 
     this->setWindowModality(Qt::WindowModal);
+    this->setWindowTitle(tr("Connect to server"));
 }
 
 void HWHostPortDialog::setDefaultPort()
--- a/QTfrontend/ui/widget/feedbackdialog.cpp	Sat Nov 21 20:22:45 2015 +0100
+++ b/QTfrontend/ui/widget/feedbackdialog.cpp	Sat Nov 21 21:11:13 2015 +0100
@@ -60,6 +60,7 @@
     setModal(true);
     setWindowFlags(Qt::Sheet);
     setWindowModality(Qt::WindowModal);
+    setWindowTitle(tr("Feedback"));
     setMinimumSize(700, 460);
     resize(700, 460);
     setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
--- a/QTfrontend/ui/widget/hatprompt.cpp	Sat Nov 21 20:22:45 2015 +0100
+++ b/QTfrontend/ui/widget/hatprompt.cpp	Sat Nov 21 21:11:13 2015 +0100
@@ -60,6 +60,7 @@
     setModal(true);
     setWindowFlags(Qt::Sheet);
     setWindowModality(Qt::WindowModal);
+    setWindowTitle(tr("Choose a hat"));
     setMinimumSize(550, 430);
     resize(550, 430);
     setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
--- a/QTfrontend/ui/widget/roomnameprompt.cpp	Sat Nov 21 20:22:45 2015 +0100
+++ b/QTfrontend/ui/widget/roomnameprompt.cpp	Sat Nov 21 21:11:13 2015 +0100
@@ -32,6 +32,7 @@
     setModal(true);
     setWindowFlags(Qt::Sheet);
     setWindowModality(Qt::WindowModal);
+    setWindowTitle(tr("Create room"));
     setMinimumSize(360, 130);
     resize(360, 180);
     setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed);
--- a/QTfrontend/ui/widget/seedprompt.cpp	Sat Nov 21 20:22:45 2015 +0100
+++ b/QTfrontend/ui/widget/seedprompt.cpp	Sat Nov 21 21:11:13 2015 +0100
@@ -31,6 +31,7 @@
     setModal(true);
     setWindowFlags(Qt::Sheet);
     setWindowModality(Qt::WindowModal);
+    setWindowTitle(tr("Seed"));
     setMinimumSize(360, 160);
     resize(360, 160);
     setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
--- a/QTfrontend/ui/widget/themeprompt.cpp	Sat Nov 21 20:22:45 2015 +0100
+++ b/QTfrontend/ui/widget/themeprompt.cpp	Sat Nov 21 21:11:13 2015 +0100
@@ -61,6 +61,7 @@
     setModal(true);
     setWindowFlags(Qt::Sheet);
     setWindowModality(Qt::WindowModal);
+    setWindowTitle(tr("Choose a theme"));
     setMinimumSize(550, 430);
     resize(550, 430);
     setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);