Fix overriding cockpit values if a field is input focused.

Cockpit updates are a 2 way process, from context to GUI and vice versa.
This fix checks if a widget is focused, and if so, updating is ignored.
This commit is contained in:
Klaus Basan
2014-02-08 01:11:03 +01:00
parent 3eff2f5fb1
commit f56b3b878f
5 changed files with 74 additions and 33 deletions

View File

@@ -454,7 +454,7 @@ QStatusBar QLabel {
<enum>QFrame::NoFrame</enum>
</property>
<property name="currentIndex">
<number>7</number>
<number>0</number>
</property>
<widget class="QWidget" name="pg_StatusPage">
<property name="sizePolicy">
@@ -564,8 +564,8 @@ QStatusBar QLabel {
<rect>
<x>0</x>
<y>0</y>
<width>86</width>
<height>59</height>
<width>326</width>
<height>267</height>
</rect>
</property>
<attribute name="label">
@@ -607,8 +607,8 @@ QStatusBar QLabel {
<rect>
<x>0</x>
<y>0</y>
<width>90</width>
<height>55</height>
<width>326</width>
<height>267</height>
</rect>
</property>
<attribute name="label">
@@ -2842,6 +2842,7 @@ QStatusBar QLabel {
<tabstop>cb_StatusWithDBus</tabstop>
<tabstop>le_StatusNetworkContext</tabstop>
<tabstop>le_StatusVoiceContext</tabstop>
<tabstop>tv_StatusMessages</tabstop>
<tabstop>le_CommandLineInput</tabstop>
<tabstop>tw_AtcStations</tabstop>
<tabstop>tv_AtcStationsOnline</tabstop>
@@ -2852,6 +2853,7 @@ QStatusBar QLabel {
<tabstop>tv_AtcStationsBooked</tabstop>
<tabstop>pb_ReloadAtcStationsBooked</tabstop>
<tabstop>tv_AircraftsInRange</tabstop>
<tabstop>tv_AllUsers</tabstop>
<tabstop>pb_CockpitToggleCom1</tabstop>
<tabstop>ds_CockpitCom1Active</tabstop>
<tabstop>ds_CockpitCom1Standby</tabstop>
@@ -2913,6 +2915,14 @@ QStatusBar QLabel {
<tabstop>pb_MainKeypadOpacity050</tabstop>
<tabstop>pb_SoundMute</tabstop>
<tabstop>pb_SoundMaxVolume</tabstop>
<tabstop>te_StatusPageConsole</tabstop>
<tabstop>rb_SetttingsNormalLoginMode</tabstop>
<tabstop>rb_SettingsLoginStealthMode</tabstop>
<tabstop>rb_SettingsLoginObserver</tabstop>
<tabstop>pb_SettingsAudioSquelchTest</tabstop>
<tabstop>pb_SettingsAudioMicrophoneTest</tabstop>
<tabstop>pte_SettingsAudioTestActionAndResult</tabstop>
<tabstop>hs_SettingsGuiUserRefreshTime</tabstop>
</tabstops>
<resources>
<include location="../../src/blackgui/blackgui.qrc"/>