From 3f45568006b5d8f8dd2489d60a32b7455ced6494 Mon Sep 17 00:00:00 2001 From: con <qtc-committer@nokia.com> Date: Thu, 11 Jun 2009 15:08:32 +0200 Subject: [PATCH] Correct shortcuts in tips. Reviewed-by: Daniel Molkentin --- src/plugins/coreplugin/welcomemode.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/plugins/coreplugin/welcomemode.cpp b/src/plugins/coreplugin/welcomemode.cpp index 64cf6133002..b0698088cef 100644 --- a/src/plugins/coreplugin/welcomemode.cpp +++ b/src/plugins/coreplugin/welcomemode.cpp @@ -418,10 +418,16 @@ QStringList WelcomeMode::tipsOfTheDay() { static QStringList tips; if (tips.isEmpty()) { + QString sideBarShortcut = +#ifdef Q_WS_MAC + tr("Cmd+0"); +#else + tr("Alt+0"); +#endif tips.append(tr("You can switch between Qt Creator's modes using <tt>Ctrl+number</tt>:" "<ol><li> - Welcome</li><li> - Edit</li><li>- Debug</li><li>- Projects</li><li>- Help</li>" "<li></li><li>- Output</li></ol>")); - tips.append(tr("You can show and hide the side bar using <tt>Alt+0<tt>.")); + tips.append(tr("You can show and hide the side bar using <tt>%1<tt>.").arg(sideBarShortcut)); tips.append(tr("You can fine tune the <tt>Find</tt> function by selecting "Whole Words" " "or "Case Sensitive". Simply click on the icons on the right end of the line edit.")); tips.append(tr("If you add <a href=\"qthelp://com.nokia.qtcreator/doc/creator-external-library-handling.html\"" -- GitLab