mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Hide the extra axis labels on release mode, show on debug mode.
The extra axis labels on the Temperature and Cylinder Pressure graphs are not wanted in release mode as they create a lot of visual clutter, but they are useful to have in debug mode since we can then better understand what went wrong. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
8041a2ed85
commit
0333de426f
3 changed files with 28 additions and 1 deletions
|
@ -176,6 +176,14 @@ 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);
|
||||
cylinderPressureAxis->setTextVisible(false);
|
||||
#else
|
||||
temperatureAxis->setTextVisible(true);
|
||||
cylinderPressureAxis->setTextVisible(true);
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
void ProfileWidget2::setupItemSizes()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue