mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
styling
This commit is contained in:
@@ -19,7 +19,6 @@ DialogSettings::DialogSettings(ConnectorToServer* connectorToServer, bool instru
|
||||
ui->btnUpdateStyle->setObjectName("btnUpdateStyle");
|
||||
ui->btnSetVersion->setObjectName("btnSetVersion");
|
||||
ui->btnSave->setObjectName("btnSave");
|
||||
ui->checkAutoStart->setObjectName("checkAutoStart");
|
||||
|
||||
#ifndef PROJECT_TYPE_DEBUG
|
||||
ui->btnUpdateStyle->setVisible(false);
|
||||
@@ -57,7 +56,6 @@ DialogSettings::DialogSettings(ConnectorToServer* connectorToServer, bool instru
|
||||
|
||||
ui->editAddress->setText(settings->Address);
|
||||
ui->editPort->setText(settings->Port);
|
||||
ui->checkAutoStart->setChecked(settings->isAutoStart);
|
||||
}
|
||||
|
||||
ui->btnSetVersion->setEnabled(false);
|
||||
@@ -68,9 +66,6 @@ DialogSettings::DialogSettings(ConnectorToServer* connectorToServer, bool instru
|
||||
ui->btnSetVersion->setEnabled(true);
|
||||
}
|
||||
|
||||
ui->label_AutoStart->setVisible(false);
|
||||
ui->checkAutoStart->setVisible(false);
|
||||
|
||||
ui->btnSave->setEnabled(false);
|
||||
flSettingsServerChanged = false;
|
||||
}
|
||||
@@ -154,11 +149,6 @@ bool DialogSettings::loadSettings(ServerSettings *settings)
|
||||
if(name == "Language"){
|
||||
settings->Language = value;
|
||||
}
|
||||
|
||||
if(name == "AutoStart"){
|
||||
settings->isAutoStart = value.toInt();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -189,7 +179,6 @@ bool DialogSettings::saveSettings()
|
||||
xmlWriter.writeAttribute("Address", settings->Address);
|
||||
xmlWriter.writeAttribute("Port", settings->Port);
|
||||
xmlWriter.writeAttribute("Language", settings->Language);
|
||||
xmlWriter.writeAttribute("AutoStart", QString::number(settings->isAutoStart));
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
xmlWriter.writeEndElement();
|
||||
@@ -214,7 +203,6 @@ void DialogSettings::on_btnSave_clicked()
|
||||
|
||||
settings->Address = ui->editAddress->text();
|
||||
settings->Port = ui->editPort->text();
|
||||
settings->isAutoStart = ui->checkAutoStart->isChecked();
|
||||
|
||||
saveSettings();
|
||||
|
||||
|
||||
@@ -7,11 +7,11 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>500</width>
|
||||
<height>350</height>
|
||||
<height>300</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
@@ -19,7 +19,7 @@
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>500</width>
|
||||
<height>350</height>
|
||||
<height>300</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
@@ -184,43 +184,6 @@
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_AutoStart">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_AutoStart">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Auto start</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_AutoStart">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkAutoStart">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
@@ -246,8 +209,8 @@
|
||||
<string>Save</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../InstructorsAndTrainees.qrc">
|
||||
<normaloff>:/resources/icons/circleGreen.png</normaloff>:/resources/icons/circleGreen.png</iconset>
|
||||
<iconset resource="../../LibServer/Server.qrc">
|
||||
<normaloff>:/resources/icons/save.png</normaloff>:/resources/icons/save.png</iconset>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
@@ -375,6 +338,7 @@
|
||||
</widget>
|
||||
<resources>
|
||||
<include location="../InstructorsAndTrainees.qrc"/>
|
||||
<include location="../../LibServer/Server.qrc"/>
|
||||
</resources>
|
||||
<connections/>
|
||||
</ui>
|
||||
|
||||
Reference in New Issue
Block a user