allow to define custom background images
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user