Fixed minor UI issues in keypad area

This commit is contained in:
Klaus Basan
2017-10-05 01:26:55 +02:00
committed by Mathew Sutcliffe
parent 9ce37d94be
commit d6aa535236
2 changed files with 47 additions and 104 deletions

View File

@@ -89,7 +89,7 @@ namespace BlackGui
}
}
foreach (int floatingIndex, floatingIndexes)
for (int floatingIndex : floatingIndexes)
{
QPushButton *pb = this->mainInfoAreaToButton(static_cast<CMainInfoAreaComponent::InfoArea>(floatingIndex));
if (pb) { pb->setChecked(true); }

View File

@@ -67,6 +67,12 @@
<property name="enabled">
<bool>false</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string/>
</property>
@@ -80,14 +86,11 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
<property name="toolTip">
<string>Flight plan</string>
</property>
<property name="text">
<string>Flightplan</string>
<string>Flight pl.</string>
</property>
<property name="checkable">
<bool>true</bool>
@@ -102,12 +105,6 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>Log</string>
</property>
@@ -118,6 +115,12 @@
</item>
<item row="2" column="4">
<widget class="QPushButton" name="pb_Audio">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Audio</string>
</property>
@@ -128,6 +131,12 @@
<property name="enabled">
<bool>false</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string/>
</property>
@@ -141,12 +150,6 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>Models</string>
</property>
@@ -163,12 +166,6 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>Cockpit</string>
</property>
@@ -185,12 +182,6 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>Text/Chat</string>
</property>
@@ -207,12 +198,6 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>Connect</string>
</property>
@@ -226,12 +211,6 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>Aircraft</string>
</property>
@@ -248,12 +227,6 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>ATC</string>
</property>
@@ -279,12 +252,6 @@
<height>22</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>100%</string>
</property>
@@ -298,12 +265,6 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>Weather</string>
</property>
@@ -314,11 +275,11 @@
</item>
<item row="2" column="1">
<widget class="QPushButton" name="pb_MainSimulator">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Simulator</string>
@@ -330,11 +291,11 @@
</item>
<item row="4" column="0">
<widget class="QPushButton" name="pb_MainUsers">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Users</string>
@@ -346,18 +307,15 @@
</item>
<item row="1" column="4">
<widget class="QPushButton" name="pb_CockpitIdent">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Ident</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
</widget>
</item>
<item row="4" column="4">
@@ -374,12 +332,6 @@
<height>22</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>50%</string>
</property>
@@ -387,11 +339,11 @@
</item>
<item row="3" column="3">
<widget class="QPushButton" name="pb_SoundMaxVolume">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="statusTip">
<string>Maximum volume</string>
@@ -403,18 +355,15 @@
</item>
<item row="3" column="4">
<widget class="QPushButton" name="pb_SoundMute">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Mute</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
</widget>
</item>
<item row="4" column="2">
@@ -425,12 +374,6 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
</property>