Commit 817f12fd authored by Jesus Fernandez's avatar Jesus Fernandez Committed by Eike Ziller

Changed Close button to text to &Close

The close button in reload prompt message box had no keyboard shortcut.
The text was changed to &Close to add the shortcut. This behavior is
useful after a long QtCreator session and several Qt intermediate files
open. When those files are regenerated it's useful to close them.

Change-Id: I25a9134eeed3ce6f10a5b698c7eda9f714f3bae5
Reviewed-by: default avatarDavid Schulz <david.schulz@theqtcompany.com>
parent 5750b735
......@@ -66,6 +66,9 @@ QTCREATOR_UTILS_EXPORT ReloadPromptAnswer reloadPrompt(const QString &title,
msg.setText(prompt);
msg.setDetailedText(details);
msg.button(QMessageBox::Close)->setText(QCoreApplication::translate("Utils::reloadPrompt",
"&Close"));
switch (msg.exec()) {
case QMessageBox::Yes:
return ReloadCurrent;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment