diff options
author | con <qtc-committer@nokia.com> | 2010-07-14 15:18:56 +0200 |
---|---|---|
committer | con <qtc-committer@nokia.com> | 2010-07-14 15:27:04 +0200 |
commit | 9eba87bd92aa2de00e2c191119bc9a9e015e1de5 (patch) | |
tree | e3f5e5f7335585fe9ce33ed555d054675064bb63 /src/plugins/find/findtoolbar.cpp | |
parent | 5652337785a449397b3c0465279764adf92fb0a3 (diff) | |
download | qt-creator-9eba87bd92aa2de00e2c191119bc9a9e015e1de5.tar.gz |
Add "Advanced..." button to find tool bar that opens the search dialog.
We had multiple cases where people were assuming that you can't do
project wide search/replace, because they tried Ctrl+f and that is only
single file.
Reviewed-by: Thorbjørn Lindeijer
Diffstat (limited to 'src/plugins/find/findtoolbar.cpp')
-rw-r--r-- | src/plugins/find/findtoolbar.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/find/findtoolbar.cpp b/src/plugins/find/findtoolbar.cpp index 2c1f828645..6b0118759e 100644 --- a/src/plugins/find/findtoolbar.cpp +++ b/src/plugins/find/findtoolbar.cpp @@ -140,6 +140,8 @@ FindToolBar::FindToolBar(FindPlugin *plugin, CurrentDocumentFind *currentDocumen Core::ActionContainer *mfind = am->actionContainer(Constants::M_FIND); Core::Command *cmd; + m_ui.advancedButton->setDefaultAction(am->command(Constants::ADVANCED_FIND)->action()); + QIcon icon = QIcon::fromTheme(QLatin1String("edit-find-replace")); m_findInDocumentAction = new QAction(icon, tr("Find/Replace"), this); cmd = am->registerAction(m_findInDocumentAction, Constants::FIND_IN_DOCUMENT, globalcontext); @@ -345,6 +347,7 @@ void FindToolBar::updateToolBar() m_ui.replaceButton->setVisible(replaceEnabled); m_ui.replaceNextButton->setVisible(replaceEnabled); m_ui.replaceAllButton->setVisible(replaceEnabled); + m_ui.advancedButton->setVisible(replaceEnabled); layout()->invalidate(); if (!replaceEnabled && enabled && replaceFocus) |