allow to define custom background images

This commit is contained in:
wmayer
2019-03-06 11:09:14 +01:00
parent 55160676d3
commit c3fb5edc41
3 changed files with 14 additions and 5 deletions

View File

@@ -1237,8 +1237,7 @@ QPixmap MainWindow::splashImage() const
{
// search in the UserAppData dir as very first
QPixmap splash_image;
QDir dir(QString::fromUtf8(App::Application::Config()["UserAppData"].c_str()));
QFileInfo fi(dir.filePath(QString::fromLatin1("pixmaps/splash_image.png")));
QFileInfo fi(QString::fromLatin1("images:splash_image.png"));
if (fi.isFile() && fi.exists())
splash_image.load(fi.filePath(), "PNG");