equal
deleted
inserted
replaced
24 #include <QFileInfo> |
24 #include <QFileInfo> |
25 #include <QStringList> |
25 #include <QStringList> |
26 #include <QAbstractListModel> |
26 #include <QAbstractListModel> |
27 |
27 |
28 class FmFindThread; |
28 class FmFindThread; |
29 class QFileIconProvider; |
29 class FmFileIconProvider; |
30 |
30 |
31 class FmFindResultModel : public QAbstractListModel |
31 class FmFindResultModel : public QAbstractListModel |
32 { |
32 { |
33 Q_OBJECT |
33 Q_OBJECT |
34 public: |
34 public: |
77 void finished(); |
77 void finished(); |
78 |
78 |
79 // pass modelCountChanged signal to parent widget |
79 // pass modelCountChanged signal to parent widget |
80 // so parent widget could change contentWiget between emptyTipsWidget and listWidget |
80 // so parent widget could change contentWiget between emptyTipsWidget and listWidget |
81 void modelCountChanged( int count ); |
81 void modelCountChanged( int count ); |
82 void refresh(); |
|
83 |
82 |
84 private slots: |
83 private slots: |
85 void on_findThread_found( int count ); |
84 void on_findThread_found( int count ); |
86 |
85 |
87 private: |
86 private: |
88 bool indexValid( const QModelIndex &index ) const; |
87 bool indexValid( const QModelIndex &index ) const; |
89 void init(); |
88 void init(); |
90 |
89 |
91 FmFindThread *mFindThread; |
90 FmFindThread *mFindThread; |
92 QStringList mFindResult; |
91 QStringList mFindResult; |
93 QFileIconProvider *mIconProvider; |
92 FmFileIconProvider *mIconProvider; |
94 }; |
93 }; |
95 |
94 |
96 #endif |
95 #endif |