Files
Sourcetrail/src/lib_gui/qt/element/QtProgressBar.h
T
Eberhard Graether 2c90b75a9f ui: Indexing UI
* Added DialogView with QtDialogView implementation to handle information dialogs
* Implemented QtIndexingDialog class that covers all different dialogs for indexing
* Directly communicate with DialogView from Prpject and all Tasks involved in indexing
* Block QtMainWindow UI while indexing
2016-08-23 23:45:45 +02:00

43 lines
609 B
C++

#ifndef QT_PROGRESS_BAR_H
#define QT_PROGRESS_BAR_H
#include <QWidget>
#include "qt/utility/QtDeviceScaledPixmap.h"
#include "utility/TimePoint.h"
class QTimer;
class QtProgressBar
: public QWidget
{
Q_OBJECT
public:
QtProgressBar(QWidget* parent = nullptr);
void showProgress(size_t percent);
void showUnknownProgressAnimated();
protected:
void paintEvent(QPaintEvent* event);
private slots:
void start();
void stop();
void animate();
private:
size_t m_percent;
size_t m_count;
QTimer* m_timer;
TimePoint m_timePoint;
QtDeviceScaledPixmap m_pixmap;
};
#endif // QT_PROGRESS_BAR_H