Remove all #if QT_VERSION who compare Qt version smaller than 5

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4100 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2015-08-11 08:46:49 +00:00
parent 3c9953bfe2
commit 5019919de0
4 changed files with 5 additions and 23 deletions

View File

@@ -674,14 +674,8 @@ bool CustomElement::parseText(QDomElement &e, QPainter &qp) {
*/
QPointF qpainter_offset(0.0, -qfm.ascent());
// ajuste le decalage selon la marge du document texte
#if QT_VERSION >= 0x040500
//adjusts the offset by the margin of the text document
text_document.setDocumentMargin(0.0);
#else
// il semblerait qu'avant Qt 4.5, le documentMargin vaille 2.0 (et pas 4.0)
qpainter_offset.rx() -= 2.0;
qpainter_offset.ry() -= 2.0;
#endif
qp.translate(qpainter_offset);