Commit 67962d60 authored by jhammen's avatar jhammen
Browse files

text search results refresh button

parent 00bd2143
...@@ -78,3 +78,8 @@ void SearchWidget::doSearch() { ...@@ -78,3 +78,8 @@ void SearchWidget::doSearch() {
} }
void SearchWidget::on_searchLineEdit_textEdited(const QString &) { newSearch = true; } void SearchWidget::on_searchLineEdit_textEdited(const QString &) { newSearch = true; }
void SearchWidget::on_refreshButton_clicked() {
newSearch = true;
doSearch();
}
...@@ -43,10 +43,10 @@ class SearchWidget : public QWidget { ...@@ -43,10 +43,10 @@ class SearchWidget : public QWidget {
void on_searchButton_clicked(); void on_searchButton_clicked();
void on_searchLineEdit_returnPressed(); void on_searchLineEdit_returnPressed();
void on_searchLineEdit_textEdited(const QString &arg1); void on_searchLineEdit_textEdited(const QString &arg1);
void on_refreshButton_clicked();
private: private:
Ui::SearchWidget *ui; Ui::SearchWidget *ui;
// QList<Editor
bool newSearch; bool newSearch;
void doSearch(); void doSearch();
}; };
......
...@@ -42,11 +42,28 @@ ...@@ -42,11 +42,28 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLabel" name="countLabel"> <layout class="QHBoxLayout" name="horizontalLayout_2">
<property name="text"> <item>
<string/> <widget class="QLabel" name="countLabel">
</property> <property name="text">
</widget> <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>
<item> <item>
<widget class="QTreeWidget" name="treeWidget"> <widget class="QTreeWidget" name="treeWidget">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment