Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
23
qt/qt_common/spinner.hpp
Normal file
23
qt/qt_common/spinner.hpp
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#pragma once
|
||||
|
||||
#include <cstddef>
|
||||
#include <vector>
|
||||
|
||||
#include <QtGui/QPixmap>
|
||||
#include <QtWidgets/QLabel>
|
||||
|
||||
class Spinner : private QLabel
|
||||
{
|
||||
public:
|
||||
Spinner();
|
||||
|
||||
void Show();
|
||||
void Hide();
|
||||
|
||||
QLabel & AsWidget() { return static_cast<QLabel &>(*this); }
|
||||
|
||||
private:
|
||||
std::vector<QPixmap> m_pixmaps;
|
||||
QTimer * m_timer = nullptr;
|
||||
size_t m_progress = 0;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue