Title block can be displayed at right edge of diagram (work in progress)

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3827 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2015-03-16 13:29:27 +00:00
parent 8919e8e690
commit 04687effda
10 changed files with 291 additions and 291 deletions

View File

@@ -152,7 +152,7 @@ void Diagram::drawBackground(QPainter *p, const QRectF &r) {
p -> drawPoints(points);
}
if (use_border_) border_and_titleblock.draw(p, margin, margin);
if (use_border_) border_and_titleblock.draw(p);
p -> restore();
}
@@ -1074,16 +1074,8 @@ void Diagram::invertSelection() {
* @return The rectangle (coordinates relative to the scene)
* delimiting the edge of the diagram
*/
QRectF Diagram::border() const
{
return(
QRectF(
margin,
margin,
border_and_titleblock.borderWidth(),
border_and_titleblock.borderHeight()
)
);
QRectF Diagram::border() const {
return border_and_titleblock.borderRect();
}
/**