mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 09:15:34 +08:00
Ref T509, Qwt adjustments in model statistics
This commit is contained in:
committed by
Mat Sutcliffe
parent
6ce9f5724a
commit
0a1a23512e
@@ -75,9 +75,11 @@ namespace BlackGui
|
||||
series << c;
|
||||
}
|
||||
|
||||
QwtText title("distributor");
|
||||
title.setRenderFlags(Qt::AlignLeft);
|
||||
ui->qwt_Chart->setSymbols("distributors", "white");
|
||||
ui->qwt_Chart->setTitle("distributors");
|
||||
ui->qwt_Chart->setSamples1Bar(series, distributorsForAxis);
|
||||
ui->qwt_Chart->setTitle(title);
|
||||
ui->qwt_Chart->setSamples1Bar(series, distributorsForAxis, this->getOrientation());
|
||||
}
|
||||
|
||||
void CAircraftModelStatisticsDialog::chartAircraftIcao()
|
||||
@@ -96,9 +98,16 @@ namespace BlackGui
|
||||
series << c;
|
||||
}
|
||||
|
||||
QwtText title("aircraft ICAO");
|
||||
title.setRenderFlags(Qt::AlignLeft);
|
||||
ui->qwt_Chart->setSymbols("aircraft", "white");
|
||||
ui->qwt_Chart->setTitle("aircraft ICAO");
|
||||
ui->qwt_Chart->setSamples1Bar(series, icaosForAxis);
|
||||
ui->qwt_Chart->setTitle(title);
|
||||
ui->qwt_Chart->setSamples1Bar(series, icaosForAxis, this->getOrientation());
|
||||
}
|
||||
|
||||
Qt::Orientation CAircraftModelStatisticsDialog::getOrientation() const
|
||||
{
|
||||
return ui->rb_Vertical->isChecked() ? Qt::Vertical : Qt::Horizontal;
|
||||
}
|
||||
|
||||
} // ns
|
||||
|
||||
@@ -54,6 +54,9 @@ namespace BlackGui
|
||||
//! Chart for aircraft ICAO
|
||||
void chartAircraftIcao();
|
||||
|
||||
//! Orientation
|
||||
Qt::Orientation getOrientation() const;
|
||||
|
||||
QScopedPointer<Ui::CAircraftModelStatisticsDialog> ui;
|
||||
BlackMisc::Simulation::CAircraftModelList m_models;
|
||||
};
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>333</width>
|
||||
<height>298</height>
|
||||
<width>404</width>
|
||||
<height>268</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
@@ -76,6 +76,9 @@
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<attribute name="buttonGroup">
|
||||
<string notr="true">bg_Chart</string>
|
||||
</attribute>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
@@ -83,6 +86,9 @@
|
||||
<property name="text">
|
||||
<string>aircraft</string>
|
||||
</property>
|
||||
<attribute name="buttonGroup">
|
||||
<string notr="true">bg_Chart</string>
|
||||
</attribute>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
@@ -98,6 +104,29 @@
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QRadioButton" name="rb_Horizontal">
|
||||
<property name="text">
|
||||
<string>horizontal</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<attribute name="buttonGroup">
|
||||
<string notr="true">bg_Layout</string>
|
||||
</attribute>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QRadioButton" name="rb_Vertical">
|
||||
<property name="text">
|
||||
<string>vertical</string>
|
||||
</property>
|
||||
<attribute name="buttonGroup">
|
||||
<string notr="true">bg_Layout</string>
|
||||
</attribute>
|
||||
</widget>
|
||||
</item>
|
||||
<item alignment="Qt::AlignRight">
|
||||
<widget class="QPushButton" name="pb_ShowChart">
|
||||
<property name="text">
|
||||
@@ -118,8 +147,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>299</width>
|
||||
<height>191</height>
|
||||
<width>370</width>
|
||||
<height>161</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
@@ -217,4 +246,8 @@
|
||||
</hints>
|
||||
</connection>
|
||||
</connections>
|
||||
<buttongroups>
|
||||
<buttongroup name="bg_Layout"/>
|
||||
<buttongroup name="bg_Chart"/>
|
||||
</buttongroups>
|
||||
</ui>
|
||||
|
||||
Reference in New Issue
Block a user