Files
Sourcetrail/src/lib_gui/qt/element/QtProgressBar.h
T
Eberhard Graether ff65a3f285 logic: Added update checker connecting to online API
* connects to https://www.sourcetrail.com/api/v1/versions/latest
* sends information about OS, platform, license type, current version and a unique user token
* Automatic update check is enabled via Startscreen and performed once every 24 hours on window focus
* Update check can be forced by clicking on "check for new version" on start screen
* renamed TimePoint to TimeStamp

fortune cookie message = In Träumen und im Leben ist nichts unmöglich.
2017-08-08 14:18:14 +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/TimeStamp.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;
TimeStamp m_TimeStamp;
QtDeviceScaledPixmap m_pixmap;
};
#endif // QT_PROGRESS_BAR_H