From f5f21da69d2c5811df8b54a6c3acae2fb09b6016 Mon Sep 17 00:00:00 2001 From: Serhii Moroz Date: Sat, 4 Mar 2017 19:09:51 +0200 Subject: Find: Assign button shortcuts Change-Id: I955799cd9bad0531bcc863ed65658a7380672fe9 Reviewed-by: Orgad Shaneh Reviewed-by: Eike Ziller --- src/plugins/coreplugin/find/searchresultwidget.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/plugins/coreplugin/find') diff --git a/src/plugins/coreplugin/find/searchresultwidget.cpp b/src/plugins/coreplugin/find/searchresultwidget.cpp index 37832efe83..842abb9aa5 100644 --- a/src/plugins/coreplugin/find/searchresultwidget.cpp +++ b/src/plugins/coreplugin/find/searchresultwidget.cpp @@ -166,23 +166,24 @@ SearchResultWidget::SearchResultWidget(QWidget *parent) : connect(m_cancelButton, &QAbstractButton::clicked, this, &SearchResultWidget::cancel); m_searchAgainButton = new QToolButton(topFindWidget); m_searchAgainButton->setToolTip(tr("Repeat the search with same parameters.")); - m_searchAgainButton->setText(tr("Search again")); + m_searchAgainButton->setText(tr("&Search again")); m_searchAgainButton->setToolButtonStyle(Qt::ToolButtonTextOnly); m_searchAgainButton->setVisible(false); connect(m_searchAgainButton, &QAbstractButton::clicked, this, &SearchResultWidget::searchAgain); - m_replaceLabel = new QLabel(tr("Replace with:"), m_topReplaceWidget); + m_replaceLabel = new QLabel(tr("Repla&ce with:"), m_topReplaceWidget); m_replaceTextEdit = new WideEnoughLineEdit(m_topReplaceWidget); + m_replaceLabel->setBuddy(m_replaceTextEdit); m_replaceTextEdit->setMinimumWidth(120); m_replaceTextEdit->setEnabled(false); m_replaceTextEdit->setTabOrder(m_replaceTextEdit, m_searchResultTreeView); m_replaceButton = new QToolButton(m_topReplaceWidget); m_replaceButton->setToolTip(tr("Replace all occurrences.")); - m_replaceButton->setText(tr("Replace")); + m_replaceButton->setText(tr("&Replace")); m_replaceButton->setToolButtonStyle(Qt::ToolButtonTextOnly); m_replaceButton->setEnabled(false); m_preserveCaseCheck = new QCheckBox(m_topReplaceWidget); - m_preserveCaseCheck->setText(tr("Preserve case")); + m_preserveCaseCheck->setText(tr("Preser&ve case")); m_preserveCaseCheck->setEnabled(false); m_preserveCaseCheck->setChecked(Find::hasFindFlag(FindPreserveCase)); -- cgit v1.2.1