mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-04-11 01:09:58 +02:00
Folio list use QETApp::diagramTextsFont
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4252 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -128,9 +128,10 @@ void DiagramFolioList::fillRow(QPainter *qp, const QRectF &row_rect, QString aut
|
|||||||
qreal x = row_rect.topLeft().x();
|
qreal x = row_rect.topLeft().x();
|
||||||
qreal y = row_rect.topLeft().y();
|
qreal y = row_rect.topLeft().y();
|
||||||
|
|
||||||
QFontMetrics origFontMetrics(qp -> font());
|
|
||||||
qreal origFontSize = qp -> font().pointSizeF();
|
QFontMetrics origFontMetrics(QETApp::diagramTextsFont());
|
||||||
QFont workingFont(qp -> font());
|
qreal origFontSize = QETApp::diagramTextsFont().pointSizeF();
|
||||||
|
QFont workingFont(QETApp::diagramTextsFont());
|
||||||
|
|
||||||
// reduce the font size if the text entry is long
|
// reduce the font size if the text entry is long
|
||||||
if (origFontMetrics.width(folio) > 0.95*colWidths[0]*row_rect.width())
|
if (origFontMetrics.width(folio) > 0.95*colWidths[0]*row_rect.width())
|
||||||
|
|||||||
Reference in New Issue
Block a user