mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-28 11:45:40 +08:00
Ref T659, cleanup some unused code
This commit is contained in:
committed by
Mat Sutcliffe
parent
5720ed43a1
commit
22bdb730f4
@@ -101,8 +101,6 @@ namespace BlackGui
|
|||||||
// Stored data
|
// Stored data
|
||||||
this->loadRememberedUserData();
|
this->loadRememberedUserData();
|
||||||
|
|
||||||
// Remark: The validators affect the signals such as returnPressed, editingFinished
|
|
||||||
// So I use no ranges in the CUpperCaseValidators, as this disables the signals for invalid values
|
|
||||||
if (sGui && sGui->getIContextSimulator())
|
if (sGui && sGui->getIContextSimulator())
|
||||||
{
|
{
|
||||||
connect(sGui->getIContextSimulator(), &IContextSimulator::vitalityLost, this, &CLoginAdvComponent::autoLogoffDetection, Qt::QueuedConnection);
|
connect(sGui->getIContextSimulator(), &IContextSimulator::vitalityLost, this, &CLoginAdvComponent::autoLogoffDetection, Qt::QueuedConnection);
|
||||||
@@ -283,13 +281,6 @@ namespace BlackGui
|
|||||||
return user;
|
return user;
|
||||||
}
|
}
|
||||||
|
|
||||||
// const bool changedOwnAircraftCallsignPilot = this->updateOwnAircraftCallsignAndPilotFromGuiValues();
|
|
||||||
// const bool changedOwnAircraftIcaoValues = this->updateOwnAircaftIcaoValuesFromGuiValues();
|
|
||||||
// if (changedOwnAircraftIcaoValues || changedOwnAircraftCallsignPilot)
|
|
||||||
// {
|
|
||||||
// m_changedLoginDataDigestSignal.inputSignal();
|
|
||||||
// }
|
|
||||||
|
|
||||||
void CLoginAdvComponent::setGuiLoginAsValues(const CSimulatedAircraft &ownAircraft)
|
void CLoginAdvComponent::setGuiLoginAsValues(const CSimulatedAircraft &ownAircraft)
|
||||||
{
|
{
|
||||||
const QString ac(
|
const QString ac(
|
||||||
|
|||||||
@@ -8,8 +8,8 @@
|
|||||||
|
|
||||||
//! \file
|
//! \file
|
||||||
|
|
||||||
#ifndef BLACKGUI_LOGINADVCOMPONENT_H
|
#ifndef BLACKGUI_COMPONENTS_LOGINADVCOMPONENT_H
|
||||||
#define BLACKGUI_LOGINADVCOMPONENT_H
|
#define BLACKGUI_COMPONENTS_LOGINADVCOMPONENT_H
|
||||||
|
|
||||||
#include "blackcore/vatsim/vatsimsettings.h"
|
#include "blackcore/vatsim/vatsimsettings.h"
|
||||||
#include "blackcore/data/networksetup.h"
|
#include "blackcore/data/networksetup.h"
|
||||||
@@ -70,9 +70,6 @@ namespace BlackGui
|
|||||||
//! Set auto logoff
|
//! Set auto logoff
|
||||||
void setAutoLogoff(bool autoLogoff);
|
void setAutoLogoff(bool autoLogoff);
|
||||||
|
|
||||||
//! Main info area changed
|
|
||||||
// void mainInfoAreaChanged(const QWidget *currentWidget);
|
|
||||||
|
|
||||||
//! Login requested
|
//! Login requested
|
||||||
void toggleNetworkConnection();
|
void toggleNetworkConnection();
|
||||||
|
|
||||||
@@ -98,9 +95,6 @@ namespace BlackGui
|
|||||||
//! User from VATSIM data
|
//! User from VATSIM data
|
||||||
BlackMisc::Network::CUser getUserFromPilotGuiValues() const;
|
BlackMisc::Network::CUser getUserFromPilotGuiValues() const;
|
||||||
|
|
||||||
//! Callsign from GUI
|
|
||||||
// BlackMisc::Aviation::CCallsign getCallsignFromGui() const;
|
|
||||||
|
|
||||||
//! Update own callsign (own aircraft from what is set in the GUI)
|
//! Update own callsign (own aircraft from what is set in the GUI)
|
||||||
//! \return changed?
|
//! \return changed?
|
||||||
bool updateOwnAircraftCallsignAndPilotFromGuiValues();
|
bool updateOwnAircraftCallsignAndPilotFromGuiValues();
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>261</width>
|
<width>282</width>
|
||||||
<height>132</height>
|
<height>132</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
@@ -195,7 +195,7 @@
|
|||||||
<item row="3" column="1">
|
<item row="3" column="1">
|
||||||
<widget class="QLabel" name="lbl_LiverySend">
|
<widget class="QLabel" name="lbl_LiverySend">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Livery send</string>
|
<string>Send livery</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@@ -240,7 +240,7 @@
|
|||||||
<item row="1" column="1">
|
<item row="1" column="1">
|
||||||
<widget class="QLabel" name="lbl_ModelSent">
|
<widget class="QLabel" name="lbl_ModelSent">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Model send</string>
|
<string>Send model</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|||||||
Reference in New Issue
Block a user