diff options
author | Richard Maudsley <richard.maudsley@isode.com> | 2014-07-01 12:54:14 (GMT) |
---|---|---|
committer | Richard Maudsley <richard.maudsley@isode.com> | 2014-07-01 12:57:14 (GMT) |
commit | 9179b54ac93ddc88765c3cd984916d7ffd130d20 (patch) | |
tree | ddcbacdd0228d52ba3f0ad4d6e8e5f09e8d12c87 /Swift/QtUI/Roster/QtFilterWidget.h | |
parent | f90a0307a16a93376270a84be61451faa9bd9701 (diff) | |
download | swift-9179b54ac93ddc88765c3cd984916d7ffd130d20.zip swift-9179b54ac93ddc88765c3cd984916d7ffd130d20.tar.bz2 |
Reset roster filter when hitting enter to start chat.
Test-Information:
Enter search term and use keyboard arrows to move to select a contact and pressing enter will start a chat and clear the filter. Confirm that pressing escape still clears the filter without starting a chat and that the changes do not interfere with starting a chat normally by double clicking on a contact.
Change-Id: I90f5d431da56896eeb10f16c0ba23bdc143c4857
Diffstat (limited to 'Swift/QtUI/Roster/QtFilterWidget.h')
-rw-r--r-- | Swift/QtUI/Roster/QtFilterWidget.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Swift/QtUI/Roster/QtFilterWidget.h b/Swift/QtUI/Roster/QtFilterWidget.h index e33616b..94ebc2a 100644 --- a/Swift/QtUI/Roster/QtFilterWidget.h +++ b/Swift/QtUI/Roster/QtFilterWidget.h @@ -19,10 +19,12 @@ namespace Swift { +class UIEventStream; + class QtFilterWidget : public QWidget { Q_OBJECT public: - QtFilterWidget(QWidget* parent, QtTreeWidget* treeView, QBoxLayout* layout = 0); + QtFilterWidget(QWidget* parent, QtTreeWidget* treeView, UIEventStream* eventStream, QBoxLayout* layout = 0); virtual ~QtFilterWidget(); protected: @@ -32,11 +34,13 @@ class QtFilterWidget : public QWidget { void popAllFilters(); void pushAllFilters(); + void updateRosterFilters(); void updateSearchFilter(); private: QLineEdit* filterLineEdit_; QtTreeWidget* treeView_; + UIEventStream* eventStream_; std::vector<RosterFilter*> filters_; QAbstractItemModel* sourceModel_; FuzzyRosterFilter* fuzzyRosterFilter_; |