mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
Ref T485 Adjust CLogMessage and CStatusMessage call sites to use the new API.
This commit is contained in:
@@ -85,18 +85,18 @@ namespace BlackMisc
|
||||
}
|
||||
if (!QFile(filePath).exists())
|
||||
{
|
||||
msg = CStatusMessage().error("file %1 does not exist") << filePath;
|
||||
msg = CStatusMessage().error(u"file %1 does not exist") << filePath;
|
||||
return CPixmap();
|
||||
}
|
||||
QPixmap pm;
|
||||
if (pm.load(filePath))
|
||||
{
|
||||
msg = CStatusMessage().info("file %1 loaded") << filePath;
|
||||
msg = CStatusMessage().info(u"file %1 loaded") << filePath;
|
||||
return CPixmap(pm);
|
||||
}
|
||||
else
|
||||
{
|
||||
msg = CStatusMessage().error("file %1 not loaded") << filePath;
|
||||
msg = CStatusMessage().error(u"file %1 not loaded") << filePath;
|
||||
return CPixmap();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user