mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
profile: remove redundant parameter in setPrintMode()
Since using separate profile-instances for print/export, we never exit print mode. Therefore, the mode parameter can be removed. This is a preparatory commit for passing the printMode at construction time. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
db726862ae
commit
9f6e487790
8 changed files with 21 additions and 21 deletions
|
@ -1262,25 +1262,25 @@ void ProfileWidget2::changeGas(int tank, int seconds)
|
|||
}
|
||||
#endif
|
||||
|
||||
void ProfileWidget2::setPrintMode(bool mode, bool grayscale)
|
||||
void ProfileWidget2::setPrintMode(bool grayscale)
|
||||
{
|
||||
printMode = mode;
|
||||
printMode = true;
|
||||
resetZoom();
|
||||
|
||||
// set printMode for axes
|
||||
profileScene->profileYAxis->setPrintMode(mode);
|
||||
profileScene->gasYAxis->setPrintMode(mode);
|
||||
profileScene->temperatureAxis->setPrintMode(mode);
|
||||
profileScene->timeAxis->setPrintMode(mode);
|
||||
profileScene->cylinderPressureAxis->setPrintMode(mode);
|
||||
isGrayscale = mode ? grayscale : false;
|
||||
profileScene->profileYAxis->setPrintMode();
|
||||
profileScene->gasYAxis->setPrintMode();
|
||||
profileScene->temperatureAxis->setPrintMode();
|
||||
profileScene->timeAxis->setPrintMode();
|
||||
profileScene->cylinderPressureAxis->setPrintMode();
|
||||
isGrayscale = grayscale;
|
||||
#ifndef SUBSURFACE_MOBILE
|
||||
profileScene->heartBeatAxis->setPrintMode(mode);
|
||||
profileScene->percentageAxis->setPrintMode(mode);
|
||||
profileScene->heartBeatAxis->setPrintMode();
|
||||
profileScene->percentageAxis->setPrintMode();
|
||||
|
||||
mouseFollowerHorizontal->setVisible(!mode);
|
||||
mouseFollowerVertical->setVisible(!mode);
|
||||
toolTipItem->setVisible(!mode);
|
||||
mouseFollowerHorizontal->setVisible(false);
|
||||
mouseFollowerVertical->setVisible(false);
|
||||
toolTipItem->setVisible(false);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue