Gui: Add startup log when missing SVG support (#27694)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -63,6 +63,7 @@ private:
|
||||
void setWindowTitle();
|
||||
void setProcessMessages();
|
||||
void setAutoSaving();
|
||||
void checkQtSvgImageFormatSupport();
|
||||
void setToolBarIconSize();
|
||||
void setWheelEventFilter();
|
||||
void setLocale();
|
||||
|
||||
Reference in New Issue
Block a user