[qet] [4252] Folio list use QETApp::diagramTextsFont |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 4252
Author: scorpio810
Date: 2015-11-08 04:27:14 +0100 (Sun, 08 Nov 2015)
Log Message:
-----------
Folio list use QETApp::diagramTextsFont
Modified Paths:
--------------
trunk/sources/diagramfoliolist.cpp
Modified: trunk/sources/diagramfoliolist.cpp
===================================================================
--- trunk/sources/diagramfoliolist.cpp 2015-11-07 12:28:43 UTC (rev 4251)
+++ trunk/sources/diagramfoliolist.cpp 2015-11-08 03:27:14 UTC (rev 4252)
@@ -128,10 +128,11 @@
qreal x = row_rect.topLeft().x();
qreal y = row_rect.topLeft().y();
- QFontMetrics origFontMetrics(qp -> font());
- qreal origFontSize = qp -> font().pointSizeF();
- QFont workingFont(qp -> font());
+ QFontMetrics origFontMetrics(QETApp::diagramTextsFont());
+ qreal origFontSize = QETApp::diagramTextsFont().pointSizeF();
+ QFont workingFont(QETApp::diagramTextsFont());
+
// reduce the font size if the text entry is long
if (origFontMetrics.width(folio) > 0.95*colWidths[0]*row_rect.width())
workingFont.setPointSizeF(origFontSize * 0.95*colWidths[0]*row_rect.width() / origFontMetrics.width(folio));