* 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.
43 lines
609 B
C++
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
|