mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-03 01:04:13 +02:00
Remove all code switches for Qt<6 with one exception: caching in titlebordertemplate. Function for caching not called since Qt4; might profit from complete removal.
Another exception: one non-converted code path in projectprintwindow.cpp to be followed-up. One issue found in the Qt6 code path of diagramview.cpp which has been fixed.
This commit is contained in:
@@ -200,9 +200,6 @@ namespace
|
||||
*/
|
||||
QString QETUtils::fontToString(const QFont &font)
|
||||
{
|
||||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||
return font.toString();
|
||||
#else
|
||||
const int legacy_weight = legacyFontWeight(font.weight());
|
||||
|
||||
const QChar comma(QLatin1Char(','));
|
||||
@@ -220,7 +217,6 @@ QString QETUtils::fontToString(const QFont &font)
|
||||
description += QChar(',') + font.styleName();
|
||||
}
|
||||
return description;
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user