diff src/changesetitem.h @ 555:a1d210c767ab find

Implement basic search function in both work and history tabs
author Chris Cannam
date Wed, 22 Feb 2012 14:54:30 +0000
parents a17c06f773cd
children 533519ebc0cb
line wrap: on
line diff
--- a/src/changesetitem.h	Mon Feb 20 18:15:53 2012 +0000
+++ b/src/changesetitem.h	Wed Feb 22 14:54:30 2012 +0000
@@ -65,6 +65,8 @@
     bool showBranch() const { return m_showBranch; }
     void setShowBranch(bool s) { m_showBranch = s; }
 
+    bool setSearchText(QString text); // return true if it matches
+
 signals:
     void detailShown();
     void detailHidden();
@@ -110,6 +112,8 @@
     bool m_current;
     bool m_closing;
     bool m_new;
+    QString m_searchText;
+    bool m_searchMatches;
 
     QMap<QAction *, QString> m_parentDiffActions;
     QMap<QAction *, QString> m_summaryActions;