2021-11-18 14:58:01 +00:00
|
|
|
#ifndef DUST3D_APPLICATION_SPINNABLE_TOOLBAR_ICON_H_
|
|
|
|
#define DUST3D_APPLICATION_SPINNABLE_TOOLBAR_ICON_H_
|
|
|
|
|
|
|
|
#include "toolbar_button.h"
|
2022-10-18 09:35:04 +00:00
|
|
|
#include "waitingspinnerwidget.h"
|
|
|
|
#include <QWidget>
|
2021-11-18 14:58:01 +00:00
|
|
|
|
2022-10-18 09:35:04 +00:00
|
|
|
class SpinnableToolbarIcon : public QWidget {
|
2021-11-18 14:58:01 +00:00
|
|
|
public:
|
2022-10-18 09:35:04 +00:00
|
|
|
SpinnableToolbarIcon(QWidget* parent = nullptr);
|
|
|
|
void showSpinner(bool showSpinner = true);
|
2021-11-18 14:58:01 +00:00
|
|
|
bool isSpinning();
|
2022-10-18 09:35:04 +00:00
|
|
|
|
2021-11-18 14:58:01 +00:00
|
|
|
private:
|
2022-10-18 09:35:04 +00:00
|
|
|
WaitingSpinnerWidget* m_spinner = nullptr;
|
2021-11-18 14:58:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|