mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
@@ -10,7 +10,7 @@
|
||||
#include "blackconfig/buildconfig.h"
|
||||
#include "blackcore/contextapplication.h"
|
||||
#include "blackcore/data/globalsetup.h"
|
||||
#include "blackgui/components/serverform.h"
|
||||
#include "blackgui/editors/serverform.h"
|
||||
#include "blackgui/components/settingsnetworkserverscomponent.h"
|
||||
#include "blackgui/guiapplication.h"
|
||||
#include "blackgui/views/serverview.h"
|
||||
@@ -71,12 +71,12 @@ namespace BlackGui
|
||||
void CSettingsNetworkServersComponent::ps_serverSelected(const QModelIndex &index)
|
||||
{
|
||||
const CServer clickedServer = this->ui->tvp_Servers->at(index);
|
||||
this->ui->frp_ServerForm->setServer(clickedServer);
|
||||
this->ui->form_Server->setServer(clickedServer);
|
||||
}
|
||||
|
||||
void CSettingsNetworkServersComponent::ps_alterTrafficServer()
|
||||
{
|
||||
CServer server(this->ui->frp_ServerForm->getServer());
|
||||
CServer server(this->ui->form_Server->getServer());
|
||||
CStatusMessageList msgs = server.validate();
|
||||
if (!msgs.isEmpty()) { msgs.addCategories(this); }
|
||||
|
||||
|
||||
@@ -6,10 +6,16 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>282</width>
|
||||
<height>334</height>
|
||||
<width>322</width>
|
||||
<height>310</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>150</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Frame</string>
|
||||
</property>
|
||||
@@ -52,11 +58,11 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="BlackGui::Components::CServerForm" name="frp_ServerForm">
|
||||
<widget class="BlackGui::Editors::CServerForm" name="form_Server">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>120</height>
|
||||
<height>150</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="frameShape">
|
||||
@@ -138,12 +144,12 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="vs_SettingsTnServersWorkaround">
|
||||
<spacer name="vs_Buttons">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeType">
|
||||
<enum>QSizePolicy::MinimumExpanding</enum>
|
||||
<enum>QSizePolicy::Fixed</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
@@ -156,17 +162,17 @@
|
||||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>BlackGui::Components::CServerForm</class>
|
||||
<extends>QFrame</extends>
|
||||
<header>blackgui/components/serverform.h</header>
|
||||
<container>1</container>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>BlackGui::Views::CServerView</class>
|
||||
<extends>QTableView</extends>
|
||||
<header>blackgui/views/serverview.h</header>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>BlackGui::Editors::CServerForm</class>
|
||||
<extends>QFrame</extends>
|
||||
<header>blackgui/editors/serverform.h</header>
|
||||
<container>1</container>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources/>
|
||||
<connections/>
|
||||
|
||||
Reference in New Issue
Block a user