#2822, #2731, #2730 Rewrote the legend layout completely.

Now using preferred size unless it is higher than 0.7 viewer height.
If higher,  then use viewer height.
Stacks legend in columns not higher then the viewer.
Update layout on resize without triggering recreation of legends.
Place axiscross in right bottom corner.
This commit is contained in:
Jacob Støren
2018-05-04 13:32:41 +02:00
parent 4713700c24
commit 1fe4f67a8e
2 changed files with 66 additions and 72 deletions

View File

@@ -127,6 +127,7 @@ protected:
virtual void leaveEvent(QEvent *) override;
private:
void updateLegendLayout();
void updateTextAndTickMarkColorForOverlayItems();
void updateLegendTextAndTickMarkColor(cvf::OverlayItem* legend);