diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-07-11 18:55:33 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-11 17:00:40 -0700 |
commit | 2171b981ac5a827e732cadefabf8a09762a8c45c (patch) | |
tree | eb6785f5f1b92d9cf2a596d315b8bb052965e115 /qt-ui/profile/divecartesianaxis.cpp | |
parent | 3fa908b2423a1ae4a9598bc07204c47d048a3c00 (diff) | |
download | subsurface-2171b981ac5a827e732cadefabf8a09762a8c45c.tar.gz |
Correctly disable all animations
This seems to be needed for the correct print of the profile,
What was happening on the print code was that the profile even in print
mode was doing animations, and we were getting a frame of it and trying to
print it.
Also, a bit of code cleanup.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/divecartesianaxis.cpp')
-rw-r--r-- | qt-ui/profile/divecartesianaxis.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/qt-ui/profile/divecartesianaxis.cpp b/qt-ui/profile/divecartesianaxis.cpp index 0d1d5357d..4053ee1cd 100644 --- a/qt-ui/profile/divecartesianaxis.cpp +++ b/qt-ui/profile/divecartesianaxis.cpp @@ -201,7 +201,6 @@ void DiveCartesianAxis::updateTicks(color_indice_t color) } DiveTextItem *label = new DiveTextItem(this); label->setText(textForValue(currValueText)); - label->setBrush(QBrush(textColor)); label->setBrush(colorForValue(currValueText)); label->setScale(fontLabelScale()); label->setZValue(1); |