forked from qt-creator/qt-creator
Core: Add method to get the tooltip for the showOptionsDialog
Change-Id: Icf473145f615f8ea80887f9620ca95af812d0c98 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
This commit is contained in:
@@ -344,6 +344,16 @@ QString ICore::msgShowOptionsDialog()
|
||||
return QCoreApplication::translate("Core", "Configure...", "msgShowOptionsDialog");
|
||||
}
|
||||
|
||||
QString ICore::msgShowOptionsDialogToolTip()
|
||||
{
|
||||
if (Utils::HostOsInfo::isMacHost())
|
||||
return QCoreApplication::translate("Core", "Open Preferences dialog.",
|
||||
"msgShowOptionsDialogToolTip (mac version)");
|
||||
else
|
||||
return QCoreApplication::translate("Core", "Open Options dialog.",
|
||||
"msgShowOptionsDialogToolTip (non-mac version)");
|
||||
}
|
||||
|
||||
bool ICore::showWarningWithOptions(const QString &title, const QString &text,
|
||||
const QString &details,
|
||||
Id settingsCategory,
|
||||
|
@@ -74,6 +74,7 @@ public:
|
||||
|
||||
static bool showOptionsDialog(Id group, Id page, QWidget *parent = 0);
|
||||
static QString msgShowOptionsDialog();
|
||||
static QString msgShowOptionsDialogToolTip();
|
||||
|
||||
static bool showWarningWithOptions(const QString &title, const QString &text,
|
||||
const QString &details = QString(),
|
||||
|
Reference in New Issue
Block a user