mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-02-11 18:59:59 +01:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user