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> <enum>QTabWidget::North</enum>
</property> </property>
<property name="currentIndex"> <property name="currentIndex">
<number>2</number> <number>0</number>
</property> </property>
<widget class="QWidget" name="pg_NetworkVatsim"> <widget class="QWidget" name="pg_NetworkVatsim">
<property name="toolTip"> <property name="toolTip">

View File

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

View File

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

View File

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