diff options
author | hjk <hjk@theqtcompany.com> | 2015-05-29 11:06:10 +0200 |
---|---|---|
committer | hjk <hjk@theqtcompany.com> | 2015-06-04 10:32:27 +0000 |
commit | f3ad26b23df1e877955121d6e3d849209c6c13a7 (patch) | |
tree | 6f1e6b05c6d96a225e66c74b742e18f194f71ff1 /src/plugins/debugger/commonoptionspage.cpp | |
parent | dfa0d1373448f7e5fb200b420752252c0d089716 (diff) |
Utils: Add a text variant to SavedAction for use in dialogs
Usually the same as the text() for use in menus, but with
different capitalization.
Also, restrict the QAbstractButton case to QCheckBox.
That's the only case where it is used.
Change-Id: Iaf87265a214891b83fa5604eb69290e2160c57f0
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Diffstat (limited to 'src/plugins/debugger/commonoptionspage.cpp')
-rw-r--r-- | src/plugins/debugger/commonoptionspage.cpp | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/plugins/debugger/commonoptionspage.cpp b/src/plugins/debugger/commonoptionspage.cpp index 31f7e5c161d..7b1c8275fc3 100644 --- a/src/plugins/debugger/commonoptionspage.cpp +++ b/src/plugins/debugger/commonoptionspage.cpp @@ -377,23 +377,9 @@ QWidget *LocalsAndExpressionsOptionsPage::widget() + QLatin1String("</p></body></html>")); auto checkBoxUseCodeModel = new QCheckBox(debuggingHelperGroupBox); - checkBoxUseCodeModel->setText(tr("Use code model")); - checkBoxUseCodeModel->setToolTip(action(UseCodeModel)->toolTip()); - checkBoxUseCodeModel->setToolTip(tr("Makes use of Qt Creator's code model " - "to find out if a variable has already been assigned a " - "value at the point the debugger interrupts.")); - auto checkBoxShowThreadNames = new QCheckBox(debuggingHelperGroupBox); - checkBoxShowThreadNames->setToolTip(tr("Displays names of QThread based threads.")); - checkBoxShowThreadNames->setText(tr("Display thread names")); - - auto checkBoxShowStdNamespace = new QCheckBox(m_widget); - checkBoxShowStdNamespace->setToolTip(tr("Shows \"std::\" prefix for types from the standard library.")); - checkBoxShowStdNamespace->setText(tr("Show \"std::\" namespace for types")); - + auto checkBoxShowStdNamespace = new QCheckBox(m_widget); auto checkBoxShowQtNamespace = new QCheckBox(m_widget); - checkBoxShowQtNamespace->setToolTip(tr("Shows Qt namespace prefix for Qt types. This is only relevant if Qt was configured with '-qtnamespace'.")); - checkBoxShowQtNamespace->setText(tr("Qt's namespace for types")); auto spinBoxMaximalStringLength = new QSpinBox(m_widget); spinBoxMaximalStringLength->setSpecialValueText(tr("<unlimited>")); |