Gui: Add startup log when missing SVG support (#27694)

This commit is contained in:
Nathan Schulte
2026-02-18 18:00:14 -06:00
committed by GitHub
parent be6af47f29
commit 99016e37ed
2 changed files with 10 additions and 0 deletions
+9
View File
@@ -226,6 +226,7 @@ void StartupPostProcess::execute()
setWindowTitle();
setProcessMessages();
setAutoSaving();
checkQtSvgImageFormatSupport();
setToolBarIconSize();
setWheelEventFilter();
setLocale();
@@ -271,6 +272,14 @@ void StartupPostProcess::setAutoSaving()
AutoSaver::instance()->setCompressed(hDocGrp->GetBool("AutoSaveCompressed", true));
}
void StartupPostProcess::checkQtSvgImageFormatSupport()
{
auto const supportedFormats = QImageReader::supportedImageFormats();
if (!supportedFormats.contains("svg")) {
Base::Console().warning("Qt SVG image format not supported; missing Qt SVG plugin?\n");
}
}
void StartupPostProcess::setToolBarIconSize()
{
// set toolbar icon size
+1
View File
@@ -63,6 +63,7 @@ private:
void setWindowTitle();
void setProcessMessages();
void setAutoSaving();
void checkQtSvgImageFormatSupport();
void setToolBarIconSize();
void setWheelEventFilter();
void setLocale();