mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 15:45:46 +08:00
Ref T219, renaming buttons/function to "override"
This commit is contained in:
@@ -154,8 +154,8 @@ namespace BlackGui
|
||||
}
|
||||
ui->comp_OtherServers->setServers(otherServers);
|
||||
|
||||
connect(ui->pb_copyCredentialsVatsim, &QPushButton::clicked, this, &CLoginComponent::copyCredentialsToPilot);
|
||||
connect(ui->pb_CopyCredentialsOtherServers, &QPushButton::clicked, this, &CLoginComponent::copyCredentialsToPilot);
|
||||
connect(ui->pb_OverrideCredentialsVatsim, &QPushButton::clicked, this, &CLoginComponent::overrideCredentialsToPilot);
|
||||
connect(ui->pb_OverrideCredentialsOtherServers, &QPushButton::clicked, this, &CLoginComponent::overrideCredentialsToPilot);
|
||||
this->setUiLoginState(false);
|
||||
}
|
||||
|
||||
@@ -348,15 +348,15 @@ namespace BlackGui
|
||||
}
|
||||
}
|
||||
|
||||
void CLoginComponent::copyCredentialsToPilot()
|
||||
void CLoginComponent::overrideCredentialsToPilot()
|
||||
{
|
||||
const QObject *s = QObject::sender();
|
||||
CServer server;
|
||||
if (s == ui->pb_CopyCredentialsOtherServers)
|
||||
if (s == ui->pb_OverrideCredentialsOtherServers)
|
||||
{
|
||||
server = this->getCurrentOtherServer();
|
||||
}
|
||||
else if (s == ui->pb_copyCredentialsVatsim)
|
||||
else if (s == ui->pb_OverrideCredentialsVatsim)
|
||||
{
|
||||
// the VATSIM server selected has no valid user credentials
|
||||
server = m_lastVatsimServer.get();
|
||||
|
||||
@@ -193,7 +193,7 @@ namespace BlackGui
|
||||
void loadRememberedUserData();
|
||||
|
||||
//! Copy credentials to pilot
|
||||
void copyCredentialsToPilot();
|
||||
void overrideCredentialsToPilot();
|
||||
|
||||
//! Server changed
|
||||
void onSelectedServerChanged(const BlackMisc::Network::CServer &server);
|
||||
|
||||
@@ -114,7 +114,7 @@
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pb_copyCredentialsVatsim">
|
||||
<widget class="QPushButton" name="pb_OverrideCredentialsVatsim">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
@@ -185,7 +185,7 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pb_CopyCredentialsOtherServers">
|
||||
<widget class="QPushButton" name="pb_OverrideCredentialsOtherServers">
|
||||
<property name="toolTip">
|
||||
<string>copy credentials to pilot section</string>
|
||||
</property>
|
||||
|
||||
Reference in New Issue
Block a user