mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
ProfileWidget2 class improvements
* Reorder ProfileWidget2 class constructor initialize list. * Initialize(lazy) ProfileWidget2::plotInfo structure. Signed-off-by: Boris Barbulovski <bbarbulovski@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
8bb5cd6012
commit
1d871eb749
2 changed files with 6 additions and 4 deletions
|
@ -63,10 +63,10 @@ ProfileWidget2::ProfileWidget2(QWidget *parent) :
|
||||||
temperatureAxis(new TemperatureAxis()),
|
temperatureAxis(new TemperatureAxis()),
|
||||||
timeAxis(new TimeAxis()),
|
timeAxis(new TimeAxis()),
|
||||||
diveProfileItem(new DiveProfileItem()),
|
diveProfileItem(new DiveProfileItem()),
|
||||||
cylinderPressureAxis(new DiveCartesianAxis()),
|
|
||||||
temperatureItem(new DiveTemperatureItem()),
|
|
||||||
gasPressureItem(new DiveGasPressureItem()),
|
|
||||||
cartesianPlane(new DiveCartesianPlane()),
|
cartesianPlane(new DiveCartesianPlane()),
|
||||||
|
temperatureItem(new DiveTemperatureItem()),
|
||||||
|
cylinderPressureAxis(new DiveCartesianAxis()),
|
||||||
|
gasPressureItem(new DiveGasPressureItem()),
|
||||||
meanDepth(new MeanDepthLine()),
|
meanDepth(new MeanDepthLine()),
|
||||||
diveComputerText(new DiveTextItem()),
|
diveComputerText(new DiveTextItem()),
|
||||||
diveCeiling(new DiveCalculatedCeiling()),
|
diveCeiling(new DiveCalculatedCeiling()),
|
||||||
|
@ -75,6 +75,8 @@ ProfileWidget2::ProfileWidget2(QWidget *parent) :
|
||||||
pheGasItem( new PartialPressureGasItem()),
|
pheGasItem( new PartialPressureGasItem()),
|
||||||
po2GasItem( new PartialPressureGasItem())
|
po2GasItem( new PartialPressureGasItem())
|
||||||
{
|
{
|
||||||
|
memset(&plotInfo, 0, sizeof(plotInfo));
|
||||||
|
|
||||||
setupSceneAndFlags();
|
setupSceneAndFlags();
|
||||||
setupItemSizes();
|
setupItemSizes();
|
||||||
setupItemOnScene();
|
setupItemOnScene();
|
||||||
|
|
|
@ -81,7 +81,7 @@ private:
|
||||||
// So it's esyer to replicate for more dives later.
|
// So it's esyer to replicate for more dives later.
|
||||||
// In the meantime, keep it here.
|
// In the meantime, keep it here.
|
||||||
struct plot_info *plotInfo;
|
struct plot_info *plotInfo;
|
||||||
DepthAxis *profileYAxis ;
|
DepthAxis *profileYAxis;
|
||||||
PartialGasPressureAxis *gasYAxis;
|
PartialGasPressureAxis *gasYAxis;
|
||||||
TemperatureAxis *temperatureAxis;
|
TemperatureAxis *temperatureAxis;
|
||||||
TimeAxis *timeAxis;
|
TimeAxis *timeAxis;
|
||||||
|
|
Loading…
Reference in a new issue