comparison src/filestatuswidget.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 7829da6abe97
children d932ce55c364
comparison
equal deleted inserted replaced
554:930462068dcc 555:a1d210c767ab
76 76
77 public slots: 77 public slots:
78 void clearSelections(); 78 void clearSelections();
79 void updateWidgets(); 79 void updateWidgets();
80 80
81 void setSearchText(QString text);
82
81 private slots: 83 private slots:
82 void menuActionActivated(); 84 void menuActionActivated();
83 void itemSelectionChanged(); 85 void itemSelectionChanged();
84 void itemDoubleClicked(QListWidgetItem *); 86 void itemDoubleClicked(QListWidgetItem *);
85 87
102 bool m_gridlyLayout; 104 bool m_gridlyLayout;
103 int m_lastGridlyCount; 105 int m_lastGridlyCount;
104 QList<QWidget *> m_boxes; 106 QList<QWidget *> m_boxes;
105 QWidget *m_boxesParent; 107 QWidget *m_boxesParent;
106 108
109 QString m_searchText;
110
107 void layoutBoxesGridly(int count); 111 void layoutBoxesGridly(int count);
108 void layoutBoxesLinearly(); 112 void layoutBoxesLinearly();
109 void setNoModificationsLabelText(); 113 void setNoModificationsLabelText();
110 QString labelFor(FileStates::State, bool addHighlightExplanation = false); 114 QString labelFor(FileStates::State, bool addHighlightExplanation = false);
111 void setLabelFor(QWidget *w, FileStates::State, bool addHighlightExplanation); 115 void setLabelFor(QWidget *w, FileStates::State, bool addHighlightExplanation);