mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 10:55:32 +08:00
Ref T659, renamed buttons and use "alwaysOverride" function
This commit is contained in:
committed by
Mat Sutcliffe
parent
04812581ea
commit
1d7e3dc9aa
@@ -80,8 +80,8 @@ namespace BlackGui
|
|||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
|
||||||
connect(ui->pb_Cancel, &QPushButton::clicked, this, &CLoginAdvComponent::loginCancelled, Qt::QueuedConnection);
|
connect(ui->pb_Cancel, &QPushButton::clicked, this, &CLoginAdvComponent::loginCancelled, Qt::QueuedConnection);
|
||||||
connect(ui->pb_Ok, &QPushButton::clicked, this, &CLoginAdvComponent::toggleNetworkConnection, Qt::QueuedConnection);
|
connect(ui->pb_Connect, &QPushButton::clicked, this, &CLoginAdvComponent::toggleNetworkConnection, Qt::QueuedConnection);
|
||||||
connect(ui->comp_NetworkDetails, &CNetworkDetailsComponent::overridePilot, this, &CLoginAdvComponent::overrideCredentialsToPilot, Qt::QueuedConnection);
|
connect(ui->comp_NetworkDetails, &CNetworkDetailsComponent::overridePilot, this, &CLoginAdvComponent::overrideCredentialsToPilot, Qt::QueuedConnection);
|
||||||
connect(ui->comp_NetworkDetails, &CNetworkDetailsComponent::requestNetworkSettings, this, &CLoginAdvComponent::requestNetworkSettings, Qt::QueuedConnection);
|
connect(ui->comp_NetworkDetails, &CNetworkDetailsComponent::requestNetworkSettings, this, &CLoginAdvComponent::requestNetworkSettings, Qt::QueuedConnection);
|
||||||
|
|
||||||
@@ -91,6 +91,9 @@ namespace BlackGui
|
|||||||
this->setForceSmall(true);
|
this->setForceSmall(true);
|
||||||
this->showKillButton(false);
|
this->showKillButton(false);
|
||||||
|
|
||||||
|
// override details/voice
|
||||||
|
ui->comp_NetworkDetails->setAlwaysAllowOverride(true);
|
||||||
|
|
||||||
// auto logoff
|
// auto logoff
|
||||||
// we decided to make it difficult for users to disable it
|
// we decided to make it difficult for users to disable it
|
||||||
if (!CBuildConfig::isLocalDeveloperDebugBuild())
|
if (!CBuildConfig::isLocalDeveloperDebugBuild())
|
||||||
@@ -237,6 +240,11 @@ namespace BlackGui
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CLoginAdvComponent::resetState()
|
||||||
|
{
|
||||||
|
ui->comp_NetworkDetails->resetState();
|
||||||
|
}
|
||||||
|
|
||||||
void CLoginAdvComponent::loadRememberedUserData()
|
void CLoginAdvComponent::loadRememberedUserData()
|
||||||
{
|
{
|
||||||
const CServer lastServer = m_networkSetup.getLastServer();
|
const CServer lastServer = m_networkSetup.getLastServer();
|
||||||
|
|||||||
@@ -73,6 +73,9 @@ namespace BlackGui
|
|||||||
//! Login requested
|
//! Login requested
|
||||||
void toggleNetworkConnection();
|
void toggleNetworkConnection();
|
||||||
|
|
||||||
|
//! Reset state
|
||||||
|
void resetState();
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
//! Login
|
//! Login
|
||||||
void loginOrLogoffSuccessful();
|
void loginOrLogoffSuccessful();
|
||||||
|
|||||||
@@ -217,9 +217,9 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="2">
|
<item row="1" column="2">
|
||||||
<widget class="QPushButton" name="pb_Ok">
|
<widget class="QPushButton" name="pb_Connect">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>ok</string>
|
<string>connect</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@@ -267,7 +267,7 @@
|
|||||||
<tabstops>
|
<tabstops>
|
||||||
<tabstop>form_Pilot</tabstop>
|
<tabstop>form_Pilot</tabstop>
|
||||||
<tabstop>cb_AutoLogoff</tabstop>
|
<tabstop>cb_AutoLogoff</tabstop>
|
||||||
<tabstop>pb_Ok</tabstop>
|
<tabstop>pb_Connect</tabstop>
|
||||||
<tabstop>pb_Cancel</tabstop>
|
<tabstop>pb_Cancel</tabstop>
|
||||||
</tabstops>
|
</tabstops>
|
||||||
<resources/>
|
<resources/>
|
||||||
|
|||||||
Reference in New Issue
Block a user