Spreadsheet: Added alias as tooltip. Made background of cell light yellow if an alias is defined for it. Can be overridden by setting a background color.

This commit is contained in:
Eivind Kvedalen
2015-09-30 01:13:07 +02:00
committed by wmayer
parent a8e9a0a77f
commit 7f417fe095
3 changed files with 22 additions and 4 deletions

View File

@@ -85,7 +85,7 @@ Cell::Cell(const CellAddress &_address, PropertySheet *_owner)
, alignment(ALIGNMENT_HIMPLIED | ALIGNMENT_LEFT | ALIGNMENT_VIMPLIED | ALIGNMENT_VCENTER)
, style()
, foregroundColor(0, 0, 0, 1)
, backgroundColor(1, 1, 1, 1)
, backgroundColor(1, 1, 1, 0)
, displayUnit()
, computedUnit()
, rowSpan(1)
@@ -339,7 +339,7 @@ void Cell::setBackground(const App::Color &color)
PropertySheet::Signaller signaller(*owner);
backgroundColor = color;
setUsed(BACKGROUND_COLOR_SET, backgroundColor != App::Color(1, 1, 1, 1));
setUsed(BACKGROUND_COLOR_SET, backgroundColor != App::Color(1, 1, 1, 0));
}
}