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:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user