mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-08-15 19:14:12 +02:00
syn
This commit is contained in:
@@ -73,6 +73,8 @@ class BorderTitleBlock : public QObject
|
|||||||
return(rows_count_ * rows_height_); }
|
return(rows_count_ * rows_height_); }
|
||||||
/// @return la rows header width, in pixels
|
/// @return la rows header width, in pixels
|
||||||
qreal rowsHeaderWidth() const { return(rows_header_width_); }
|
qreal rowsHeaderWidth() const { return(rows_header_width_); }
|
||||||
|
// @return the edge where title block is docked
|
||||||
|
Qt::Edge titleBlockEdge() const { return(m_edge); }
|
||||||
|
|
||||||
// border - title block = diagram
|
// border - title block = diagram
|
||||||
/**
|
/**
|
||||||
@@ -94,9 +96,6 @@ class BorderTitleBlock : public QObject
|
|||||||
|
|
||||||
QRectF titleBlockRect () const;
|
QRectF titleBlockRect () const;
|
||||||
|
|
||||||
// @return the edge where title block is docked
|
|
||||||
Qt::Edge titleBlockEdge() const { return(m_edge); }
|
|
||||||
|
|
||||||
DiagramContext titleblockInformation() const;
|
DiagramContext titleblockInformation() const;
|
||||||
private:
|
private:
|
||||||
QRectF titleBlockRectForQPainter () const;
|
QRectF titleBlockRectForQPainter () const;
|
||||||
|
|||||||
@@ -450,14 +450,13 @@ QRect ProjectPrintWindow::diagramRect(Diagram *diagram, const ExportProperties &
|
|||||||
{
|
{
|
||||||
auto diagram_rect = diagram->border_and_titleblock.borderAndTitleBlockRect();
|
auto diagram_rect = diagram->border_and_titleblock.borderAndTitleBlockRect();
|
||||||
if (!option.draw_titleblock) {
|
if (!option.draw_titleblock) {
|
||||||
auto tbt_rect = diagram->border_and_titleblock.titleBlockRect();
|
auto tbt_rect = diagram->border_and_titleblock.titleBlockRect();
|
||||||
if (diagram->border_and_titleblock.titleBlockEdge() == Qt::BottomEdge)
|
if (diagram->border_and_titleblock.titleBlockEdge() == Qt::BottomEdge)
|
||||||
diagram_rect.setHeight(diagram_rect.height() - tbt_rect.height());
|
diagram_rect.setHeight(diagram_rect.height() - tbt_rect.height());
|
||||||
else
|
else
|
||||||
diagram_rect.setWidth(diagram_rect.width() - tbt_rect.width());
|
diagram_rect.setWidth(diagram_rect.width() - tbt_rect.width());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//Adjust the border of diagram to 1px (width of the line)
|
//Adjust the border of diagram to 1px (width of the line)
|
||||||
diagram_rect.adjust(0,0,1,1);
|
diagram_rect.adjust(0,0,1,1);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user