summaryrefslogtreecommitdiffstats
path: root/fswidget.h
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2018-03-31 09:56:36 +0200
committerArno <arno@disconnect.de>2018-03-31 09:56:36 +0200
commitb0702a8fe0eaeaef0577e0f07456ced2d132c528 (patch)
tree81c0fb60e6123354d4e7710d53fbb0e1db958f9f /fswidget.h
parentb2b21c5790a3fcf5ecd4fddff40420f5bd2d2009 (diff)
downloadSheMov-b0702a8fe0eaeaef0577e0f07456ced2d132c528.tar.gz
SheMov-b0702a8fe0eaeaef0577e0f07456ced2d132c528.tar.bz2
SheMov-b0702a8fe0eaeaef0577e0f07456ced2d132c528.zip
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.
Diffstat (limited to 'fswidget.h')
-rw-r--r--fswidget.h6
1 files changed, 5 insertions, 1 deletions
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