mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Better setup of the defaults for the grid.
This patch creates better defaults for the grid lines, size, position and z-level. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
883b25cea3
commit
4699363a9e
2 changed files with 3 additions and 1 deletions
|
@ -183,6 +183,7 @@ void DiveCartesianAxis::updateTicks()
|
||||||
label->setBrush(QBrush(textColor));
|
label->setBrush(QBrush(textColor));
|
||||||
label->setBrush(colorForValue(currValueText));
|
label->setBrush(colorForValue(currValueText));
|
||||||
label->setScale(fontLabelScale());
|
label->setScale(fontLabelScale());
|
||||||
|
label->setZValue(1);
|
||||||
labels.push_back(label);
|
labels.push_back(label);
|
||||||
if (orientation == RightToLeft || orientation == LeftToRight) {
|
if (orientation == RightToLeft || orientation == LeftToRight) {
|
||||||
label->setAlignment(Qt::AlignBottom | Qt::AlignHCenter);
|
label->setAlignment(Qt::AlignBottom | Qt::AlignHCenter);
|
||||||
|
@ -209,6 +210,7 @@ void DiveCartesianAxis::updateTicks()
|
||||||
pen.setCosmetic(true);
|
pen.setCosmetic(true);
|
||||||
pen.setWidthF(2);
|
pen.setWidthF(2);
|
||||||
line->setPen(pen);
|
line->setPen(pen);
|
||||||
|
line->setZValue(0);
|
||||||
lines.push_back(line);
|
lines.push_back(line);
|
||||||
if (orientation == RightToLeft || orientation == LeftToRight) {
|
if (orientation == RightToLeft || orientation == LeftToRight) {
|
||||||
line->setLine(0,-line_size,0, 0);
|
line->setLine(0,-line_size,0, 0);
|
||||||
|
|
|
@ -126,7 +126,7 @@ void ProfileWidget2::setupItemOnScene()
|
||||||
profileYAxis->setTickSize(1);
|
profileYAxis->setTickSize(1);
|
||||||
profileYAxis->setLineSize(96);
|
profileYAxis->setLineSize(96);
|
||||||
|
|
||||||
timeAxis->setLineSize(96);
|
timeAxis->setLineSize(94);
|
||||||
|
|
||||||
gasYAxis->setOrientation(DiveCartesianAxis::BottomToTop);
|
gasYAxis->setOrientation(DiveCartesianAxis::BottomToTop);
|
||||||
gasYAxis->setTickInterval(1);
|
gasYAxis->setTickInterval(1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue