Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
49f7b1dc
Commit
49f7b1dc
authored
Jan 14, 2011
by
con
Browse files
Make tool tip of the expand/collapse button for searches more meaningful
Task-number: QTCREATORBUG-2423
parent
7915ce6b
Changes
1
Show whitespace changes
Inline
Side-by-side
src/plugins/find/searchresultwindow.cpp
View file @
49f7b1dc
...
...
@@ -353,6 +353,7 @@ SearchResultWindow::SearchResultWindow() : d(new SearchResultWindowPrivate)
Core
::
Command
*
cmd
=
Core
::
ICore
::
instance
()
->
actionManager
()
->
registerAction
(
d
->
m_expandCollapseAction
,
"Find.ExpandAll"
,
Core
::
Context
(
Core
::
Constants
::
C_GLOBAL
));
cmd
->
setAttribute
(
Core
::
Command
::
CA_UpdateText
);
d
->
m_expandCollapseButton
->
setDefaultAction
(
cmd
->
action
());
d
->
m_replaceLabel
=
new
QLabel
(
tr
(
"Replace with:"
),
d
->
m_widget
);
...
...
@@ -686,10 +687,13 @@ void SearchResultWindow::addResults(QList<SearchResultItem> &items, AddMode mode
void
SearchResultWindow
::
handleExpandCollapseToolButton
(
bool
checked
)
{
d
->
m_searchResultTreeView
->
setAutoExpandResults
(
checked
);
if
(
checked
)
if
(
checked
)
{
d
->
m_expandCollapseAction
->
setText
(
tr
(
"Collapse All"
));
d
->
m_searchResultTreeView
->
expandAll
();
else
}
else
{
d
->
m_expandCollapseAction
->
setText
(
tr
(
"Expand All"
));
d
->
m_searchResultTreeView
->
collapseAll
();
}
}
/*!
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment