diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-02-15 21:46:14 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-02-15 17:16:02 -0800 |
commit | fc55b2abfea6079c730688566bd2452e903cec30 (patch) | |
tree | fa2405efdfb1b768c5ad23189c9124eecdec76e2 /qt-ui/profile/profilewidget2.cpp | |
parent | 87d528992052ccc6204a25642b503a15ab45f9f9 (diff) | |
download | subsurface-fc55b2abfea6079c730688566bd2452e903cec30.tar.gz |
Remove the class 'CartesianPlane'
This class was pratically a re-do of the axis, I'll do the axis to plot
the lines when it feels like it.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/profilewidget2.cpp')
-rw-r--r-- | qt-ui/profile/profilewidget2.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index 284a75c44..088cfba1f 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -63,7 +63,6 @@ ProfileWidget2::ProfileWidget2(QWidget *parent) : temperatureAxis(new TemperatureAxis()), timeAxis(new TimeAxis()), diveProfileItem(new DiveProfileItem()), - cartesianPlane(new DiveCartesianPlane()), temperatureItem(new DiveTemperatureItem()), cylinderPressureAxis(new DiveCartesianAxis()), gasPressureItem(new DiveGasPressureItem()), @@ -104,7 +103,6 @@ void ProfileWidget2::addItemsToScene() scene()->addItem(cylinderPressureAxis); scene()->addItem(temperatureItem); scene()->addItem(gasPressureItem); - scene()->addItem(cartesianPlane); scene()->addItem(meanDepth); scene()->addItem(diveComputerText); scene()->addItem(diveCeiling); @@ -148,10 +146,6 @@ void ProfileWidget2::setupItemOnScene() meanDepth->setZValue(1); meanDepth->setAxis(profileYAxis); - cartesianPlane->setBottomAxis(timeAxis); - cartesianPlane->setLeftAxis(profileYAxis); - cartesianPlane->setZValue(-1); - diveComputerText->setAlignment(Qt::AlignRight | Qt::AlignBottom); diveComputerText->setBrush(getColor(TIME_TEXT)); @@ -351,7 +345,6 @@ void ProfileWidget2::plotDives(QList<dive*> dives) meanDepth->animateMoveTo(3, profileYAxis->posAtValue(pInfo.meandepth)); dataModel->emitDataChanged(); - cartesianPlane->setup(); // The event items are a bit special since we don't know how many events are going to // exist on a dive, so I cant create cache items for that. that's why they are here // while all other items are up there on the constructor. @@ -484,7 +477,6 @@ void ProfileWidget2::setEmptyState() diveComputerText->setVisible(false); diveCeiling->setVisible(false); reportedCeiling->setVisible(false); - cartesianPlane->setVisible(false); Q_FOREACH(DiveCalculatedTissue *tissue, allTissues){ tissue->setVisible(false); } @@ -525,19 +517,13 @@ void ProfileWidget2::setProfileState() timeAxis->setLine(itemPos.time.expanded); cylinderPressureAxis->setPos(itemPos.cylinder.pos.on); - - temperatureAxis->setPos(itemPos.temperature.pos.on); - cartesianPlane->setVisible(true); meanDepth->setVisible(true); diveComputerText->setVisible(true); diveComputerText->setPos(itemPos.dcLabel.on); - cartesianPlane->setHorizontalLine( itemPos.time.expanded ); - cartesianPlane->setVerticalLine( itemPos.depth.expanded ); - diveCeiling->setVisible(s.value("calcceiling").toBool()); reportedCeiling->setVisible(s.value("dcceiling").toBool()); |