mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Made the Axis be aware of Direction.
Now we can create an axis that's topToBottom, BottomToTop, LeftToRight and RightToLeft. This was needed for the Temperature Plot, because it should be inverted (starting on the bottom). Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
58aeb6ce40
commit
f9784d876e
3 changed files with 53 additions and 25 deletions
|
@ -46,9 +46,9 @@ ProfileWidget2::ProfileWidget2(QWidget *parent) :
|
|||
|
||||
// Creating the needed items.
|
||||
// ORDER: {BACKGROUND, PROFILE_Y_AXIS, GAS_Y_AXIS, TIME_AXIS, DEPTH_CONTROLLER, TIME_CONTROLLER, COLUMNS};
|
||||
profileYAxis->setOrientation(Qt::Vertical);
|
||||
gasYAxis->setOrientation(Qt::Vertical);
|
||||
timeAxis->setOrientation(Qt::Horizontal);
|
||||
profileYAxis->setOrientation(DiveCartesianAxis::TopToBottom);
|
||||
gasYAxis->setOrientation(DiveCartesianAxis::TopToBottom);
|
||||
timeAxis->setOrientation(DiveCartesianAxis::LeftToRight);
|
||||
|
||||
// Defaults of the Axis Coordinates:
|
||||
profileYAxis->setMinimum(0);
|
||||
|
@ -62,7 +62,7 @@ ProfileWidget2::ProfileWidget2(QWidget *parent) :
|
|||
profileYAxis->setTickSize(1);
|
||||
gasYAxis->setLine(0, 0, 0, 20);
|
||||
|
||||
temperatureAxis->setOrientation(Qt::Vertical);
|
||||
temperatureAxis->setOrientation(DiveCartesianAxis::BottomToTop);
|
||||
temperatureAxis->setLine(0, 60, 0, 90);
|
||||
temperatureAxis->setX(3);
|
||||
temperatureAxis->setTickSize(2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue