Ui adjustment

This commit is contained in:
Klaus Basan
2018-09-30 22:35:32 +02:00
parent e87740cbd0
commit 047aeeff11
4 changed files with 11 additions and 6 deletions

View File

@@ -89,7 +89,7 @@
<enum>QTabWidget::North</enum>
</property>
<property name="currentIndex">
<number>2</number>
<number>0</number>
</property>
<widget class="QWidget" name="pg_NetworkVatsim">
<property name="toolTip">

View File

@@ -388,14 +388,14 @@ namespace BlackGui
void CMappingComponent::onResetAircraft()
{
if (!sGui->getIContextSimulator()->isSimulatorSimulating()) { return; }
if (!sGui || !sGui->getIContextSimulator() || !sGui->getIContextSimulator()->isSimulatorSimulating()) { return; }
const CCallsign callsign(this->validateRenderedCallsign());
if (callsign.isEmpty()) { return; }
const bool reset = sGui->getIContextSimulator()->resetToModelMatchingAircraft(callsign);
const CStatusMessage msg = reset ?
CStatusMessage(this).info("Model reset for '%1'") << callsign.toQString() :
CStatusMessage(this).info("Reset failed for '%1'") << callsign.toQString();
this->showOverlayMessage(msg, 5000);
this->showOverlayMessage(msg, 3000);
}
void CMappingComponent::onModelPreviewChanged(int state)

View File

@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>293</width>
<height>438</height>
<height>453</height>
</rect>
</property>
<property name="windowTitle">
@@ -98,7 +98,7 @@
<property name="minimumSize">
<size>
<width>0</width>
<height>125</height>
<height>130</height>
</size>
</property>
<property name="title">

View File

@@ -71,7 +71,7 @@
<item alignment="Qt::AlignLeft">
<widget class="QPushButton" name="pb_SetDefaults">
<property name="text">
<string>set defaults</string>
<string> set defaults </string>
</property>
</widget>
</item>
@@ -80,6 +80,11 @@
</item>
</layout>
</widget>
<tabstops>
<tabstop>cb_Override</tabstop>
<tabstop>pb_SetDefaults</tabstop>
<tabstop>le_VatsimUdpPort</tabstop>
</tabstops>
<resources/>
<connections/>
</ui>