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:
Jarek Kobus
2022-07-25 09:36:45 +02:00
parent 756f1ddafc
commit 3daec60eb3
2 changed files with 1 additions and 11 deletions

View File

@@ -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) {