src: split indexing dialog to multiple classes

This commit is contained in:
mlangkabel
2019-10-22 17:38:38 +02:00
parent c5d94fbd08
commit ed1d4b7d33
26 changed files with 1274 additions and 923 deletions
@@ -0,0 +1,33 @@
#ifndef QT_INDEXING_PROGRESS_DIALOG_H
#define QT_INDEXING_PROGRESS_DIALOG_H
#include "QtProgressBarDialog.h"
class QLabel;
class QtIndexingProgressDialog
: public QtProgressBarDialog
{
Q_OBJECT
public:
QtIndexingProgressDialog(bool hideable, QWidget* parent = 0);
QSize sizeHint() const override;
void updateIndexingProgress(size_t fileCount, size_t totalFileCount, const FilePath& sourcePath);
void updateErrorCount(size_t errorCount, size_t fatalCount);
protected:
void closeEvent(QCloseEvent* event) override;
void setGeometries() override;
private:
void onHidePressed();
void onStopPressed();
QLabel* m_filePathLabel;
QWidget* m_errorWidget;
QString m_sourcePath;
};
#endif // QT_INDEXING_PROGRESS_DIALOG_H