Set dialogs titles in layout instead of code
authorRafał Długołęcki <rafal@dlugolecki.net.pl>
Fri, 29 Jan 2016 16:55:25 +0000 (17:55 +0100)
committerRafał Długołęcki <rafal@dlugolecki.net.pl>
Fri, 29 Jan 2016 16:55:25 +0000 (17:55 +0100)
src/kernel/kernel.cpp
src/kernel/ui/dialogs/ConnectDialog.ui
src/kernel/ui/dialogs/KillDialog.ui

index b39fa3cdc4e627b64168efbdd18ab7260fec11ad..ee5e9c753a5630e23e25d28114d35bc478b82258 100644 (file)
@@ -421,7 +421,6 @@ void QKernel::on_actionConnect_triggered()
        MESSAGE m;
 
        dialog::ConnectDialog dialog(this);
-       dialog.setWindowTitle("IP Address:");
 
        if (dialog.exec()) {
                m.msg_type = MSG_NET;
@@ -506,7 +505,6 @@ void QKernel::on_actionMessage_triggered()
 void QKernel::on_actionKill_triggered()
 {
        dialog::KillInterpreterDialog dialog(this);
-       dialog.setWindowTitle("Kill interpreter");
 
        if (dialog.exec()) {
                MESSAGE m;
index 46bf16f2850e4066fee49352977ff58e354dfe61..a67a4194f8404c2c266dcc1e05c0874ab344a4c4 100644 (file)
@@ -11,7 +11,7 @@
    </rect>
   </property>
   <property name="windowTitle">
-   <string>Dialog</string>
+   <string>IP Address</string>
   </property>
   <layout class="QVBoxLayout" name="verticalLayout">
    <item>
index 32a73d5371282846efd5b0f7480c816d58ecdb4a..7c74c412fa1ab82d61d4888235c78d82449e8ed7 100644 (file)
@@ -11,7 +11,7 @@
    </rect>
   </property>
   <property name="windowTitle">
-   <string>Dialog</string>
+   <string>Kill interpreter</string>
   </property>
   <layout class="QVBoxLayout" name="verticalLayout">
    <item>