forked from qt-creator/qt-creator
Drop Qt5: CorePlugin: Remove code below Qt 6.0.0
Change-Id: Ib00643f43ae1dfa42ae7ce6b4275fd50dd572765 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -1427,11 +1427,7 @@ public:
|
||||
// with the last pixel visible
|
||||
if (fmt.property(QTextFormat::HeadingLevel) == 2) {
|
||||
QTextCharFormat charFmt = currentBlock().charFormat();
|
||||
#if QT_VERSION <= QT_VERSION_CHECK(6, 0, 0)
|
||||
charFmt.setVerticalAlignment(QTextCharFormat::AlignSuperScript);
|
||||
#else
|
||||
charFmt.setBaselineOffset(15);
|
||||
#endif
|
||||
setFormat(0, text.length(), charFmt);
|
||||
|
||||
if (h2Brush.style() == Qt::NoBrush) {
|
||||
|
||||
Reference in New Issue
Block a user