Make it possible to hide some of the grid lines.

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2014-02-15 22:54:41 -02:00 committed by Dirk Hohndel
parent 4699363a9e
commit 44a72b805c
3 changed files with 20 additions and 8 deletions

View file

@ -176,14 +176,12 @@ void ProfileWidget2::setupItemOnScene()
CREATE_PP_GAS( po2GasItem, PO2, PO2, PO2_ALERT, "po2threshold", "po2graph");
#undef CREATE_PP_GAS
#ifdef QT_NO_DEBUG // Some debug helpers.
temperatureAxis->setTextVisible(false);
temperatureAxis->setLinesVisible(false);
cylinderPressureAxis->setTextVisible(false);
#else
temperatureAxis->setTextVisible(true);
cylinderPressureAxis->setTextVisible(true);
#endif
cylinderPressureAxis->setLinesVisible(false);
timeAxis->setLinesVisible(true);
profileYAxis->setLinesVisible(true);
}
void ProfileWidget2::setupItemSizes()