From b0702a8fe0eaeaef0577e0f07456ced2d132c528 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 31 Mar 2018 09:56:36 +0200 Subject: Add visual feedback to FSWidget * show busy cursor when gathering data * emit statusbarMessage() when gathering data The latter shows a summary with the time it has taken to gather data, the SQL query count and the number of files analyzed. --- fswidget.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'fswidget.h') diff --git a/fswidget.h b/fswidget.h index 876d0d0..0b977ff 100644 --- a/fswidget.h +++ b/fswidget.h @@ -24,7 +24,10 @@ class FSWidget : public QWidget { void removeItem(QComboBox *cb); void gatherData(const QString &curDir); void advanceDir(int by); - int queryCount(QSqlQuery &q, const QString &arg) const; + int queryCount(QSqlQuery &q, const QString &arg); + + signals: + void message(QString msg); private: void setupWidget(); @@ -33,6 +36,7 @@ class FSWidget : public QWidget { QTreeView *mFileView; QStandardItemModel *mModel; QSortFilterProxyModel *mProxy; + int mQueryCount; }; #endif // FSWIDGET_H -- cgit v1.2.3-70-g09d2