refs #886, fixed connect in simulator selector

* also toggling needs to fire (when a value is changed from code)
* changed order, used standard will be: P3D, FSX, FS9, XP
This commit is contained in:
Klaus Basan
2017-02-25 02:16:12 +01:00
parent 5a91f561be
commit fedf7604a0
2 changed files with 21 additions and 21 deletions

View File

@@ -29,15 +29,15 @@ namespace BlackGui
ui->setupUi(this);
this->setMode(CheckBoxes);
connect(ui->rb_FS9, &QRadioButton::clicked, this, &CSimulatorSelector::ps_RadioButtonChanged);
connect(ui->rb_FSX, &QRadioButton::clicked, this, &CSimulatorSelector::ps_RadioButtonChanged);
connect(ui->rb_P3D, &QRadioButton::clicked, this, &CSimulatorSelector::ps_RadioButtonChanged);
connect(ui->rb_XPlane, &QRadioButton::clicked, this, &CSimulatorSelector::ps_RadioButtonChanged);
connect(ui->rb_FS9, &QRadioButton::toggled, this, &CSimulatorSelector::ps_RadioButtonChanged);
connect(ui->rb_FSX, &QRadioButton::toggled, this, &CSimulatorSelector::ps_RadioButtonChanged);
connect(ui->rb_P3D, &QRadioButton::toggled, this, &CSimulatorSelector::ps_RadioButtonChanged);
connect(ui->rb_XPlane, &QRadioButton::toggled, this, &CSimulatorSelector::ps_RadioButtonChanged);
connect(ui->cb_FS9, &QRadioButton::clicked, this, &CSimulatorSelector::ps_CheckBoxChanged);
connect(ui->cb_FSX, &QRadioButton::clicked, this, &CSimulatorSelector::ps_CheckBoxChanged);
connect(ui->cb_P3D, &QRadioButton::clicked, this, &CSimulatorSelector::ps_CheckBoxChanged);
connect(ui->cb_XPlane, &QRadioButton::clicked, this, &CSimulatorSelector::ps_CheckBoxChanged);
connect(ui->cb_FS9, &QRadioButton::toggled, this, &CSimulatorSelector::ps_CheckBoxChanged);
connect(ui->cb_FSX, &QRadioButton::toggled, this, &CSimulatorSelector::ps_CheckBoxChanged);
connect(ui->cb_P3D, &QRadioButton::toggled, this, &CSimulatorSelector::ps_CheckBoxChanged);
connect(ui->cb_XPlane, &QRadioButton::toggled, this, &CSimulatorSelector::ps_CheckBoxChanged);
}
CSimulatorSelector::~CSimulatorSelector()

View File

@@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>170</width>
<height>36</height>
<width>184</width>
<height>42</height>
</rect>
</property>
<property name="windowTitle">
@@ -54,9 +54,9 @@
<number>0</number>
</property>
<item>
<widget class="QCheckBox" name="cb_FS9">
<widget class="QCheckBox" name="cb_P3D">
<property name="text">
<string>FS9</string>
<string>P3D</string>
</property>
</widget>
</item>
@@ -68,9 +68,9 @@
</widget>
</item>
<item>
<widget class="QCheckBox" name="cb_P3D">
<widget class="QCheckBox" name="cb_FS9">
<property name="text">
<string>P3D</string>
<string>FS9</string>
</property>
</widget>
</item>
@@ -106,12 +106,9 @@
<number>0</number>
</property>
<item>
<widget class="QRadioButton" name="rb_FS9">
<widget class="QRadioButton" name="rb_P3D">
<property name="text">
<string>FS9</string>
</property>
<property name="checked">
<bool>true</bool>
<string>P3D</string>
</property>
</widget>
</item>
@@ -126,9 +123,12 @@
</widget>
</item>
<item>
<widget class="QRadioButton" name="rb_P3D">
<widget class="QRadioButton" name="rb_FS9">
<property name="text">
<string>P3D</string>
<string>FS9</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>