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:
@@ -28,6 +28,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include "fileutils.h"
|
||||
#include "reloadpromptutils.h"
|
||||
|
||||
#include <QCoreApplication>
|
||||
@@ -53,7 +54,7 @@ QTCREATOR_UTILS_EXPORT ReloadPromptAnswer reloadPrompt(const QString &fileName,
|
||||
msg = QCoreApplication::translate("Utils::reloadPrompt",
|
||||
"The file <i>%1</i> has changed outside Qt Creator. Do you want to reload it?");
|
||||
}
|
||||
msg = msg.arg(QFileInfo(fileName).fileName());
|
||||
msg = msg.arg(FileName::fromString(fileName).fileName());
|
||||
return reloadPrompt(title, msg, QDir::toNativeSeparators(fileName), parent);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user