forked from qt-creator/qt-creator
Utils: Add hint for default configuration to file reload prompt
Change-Id: I6fe8174498bd6ec929b5de50c91cb63b600eee50 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
committed by
André Hartmann
parent
a64b969f6f
commit
14b2187d56
@@ -50,7 +50,10 @@ QTCREATOR_UTILS_EXPORT ReloadPromptAnswer reloadPrompt(const FileName &fileName,
|
|||||||
msg = QCoreApplication::translate("Utils::reloadPrompt",
|
msg = QCoreApplication::translate("Utils::reloadPrompt",
|
||||||
"The file <i>%1</i> has been changed on disk. Do you want to reload it?");
|
"The file <i>%1</i> has been changed on disk. Do you want to reload it?");
|
||||||
}
|
}
|
||||||
msg = msg.arg(fileName.fileName());
|
msg = "<p>" + msg.arg(fileName.fileName()) + "</p><p>" +
|
||||||
|
QCoreApplication::translate("Utils::reloadPrompt",
|
||||||
|
"The default behavior can be set in Tools > Options > Environment > System.")
|
||||||
|
+ "</p>";
|
||||||
return reloadPrompt(title, msg, fileName.toUserOutput(), enableDiffOption, parent);
|
return reloadPrompt(title, msg, fileName.toUserOutput(), enableDiffOption, parent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user