forked from qt-creator/qt-creator
Replace QFileInfo::fileName() with FileName::fileName()
Change-Id: I4852ff215abf25649fc5eac1e922ae901839ca3d Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -181,7 +181,7 @@ QString StartApplicationParameters::displayName() const
|
||||
{
|
||||
const int maxLength = 60;
|
||||
|
||||
QString name = QFileInfo(localExecutable).fileName() + QLatin1Char(' ') + processArgs;
|
||||
QString name = FileName::fromString(localExecutable).fileName() + QLatin1Char(' ') + processArgs;
|
||||
if (name.size() > 60) {
|
||||
int index = name.lastIndexOf(QLatin1Char(' '), maxLength);
|
||||
if (index == -1)
|
||||
|
||||
Reference in New Issue
Block a user