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
bipscript
ide
Commits
67962d60
Commit
67962d60
authored
Oct 08, 2020
by
jhammen
Browse files
text search results refresh button
parent
00bd2143
Changes
3
Hide whitespace changes
Inline
Side-by-side
searchwidget.cpp
View file @
67962d60
...
...
@@ -78,3 +78,8 @@ void SearchWidget::doSearch() {
}
void
SearchWidget
::
on_searchLineEdit_textEdited
(
const
QString
&
)
{
newSearch
=
true
;
}
void
SearchWidget
::
on_refreshButton_clicked
()
{
newSearch
=
true
;
doSearch
();
}
searchwidget.h
View file @
67962d60
...
...
@@ -43,10 +43,10 @@ class SearchWidget : public QWidget {
void
on_searchButton_clicked
();
void
on_searchLineEdit_returnPressed
();
void
on_searchLineEdit_textEdited
(
const
QString
&
arg1
);
void
on_refreshButton_clicked
();
private:
Ui
::
SearchWidget
*
ui
;
// QList<Editor
bool
newSearch
;
void
doSearch
();
};
...
...
searchwidget.ui
View file @
67962d60
...
...
@@ -42,11 +42,28 @@
</widget>
</item>
<item>
<widget
class=
"QLabel"
name=
"countLabel"
>
<property
name=
"text"
>
<string/>
</property>
</widget>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout_2"
>
<item>
<widget
class=
"QLabel"
name=
"countLabel"
>
<property
name=
"text"
>
<string/>
</property>
</widget>
</item>
<item>
<widget
class=
"QToolButton"
name=
"refreshButton"
>
<property
name=
"toolTip"
>
<string>
Refresh Search Results
</string>
</property>
<property
name=
"text"
>
<string>
...
</string>
</property>
<property
name=
"icon"
>
<iconset
theme=
"reload"
/>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget
class=
"QTreeWidget"
name=
"treeWidget"
>
...
...
Write
Preview
Markdown
is supported
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