dust3d/application/sources/spinnable_toolbar_icon.h

19 lines
434 B
C
Raw Normal View History

#ifndef DUST3D_APPLICATION_SPINNABLE_TOOLBAR_ICON_H_
#define DUST3D_APPLICATION_SPINNABLE_TOOLBAR_ICON_H_
#include "toolbar_button.h"
#include "waitingspinnerwidget.h"
#include <QWidget>
class SpinnableToolbarIcon : public QWidget {
public:
SpinnableToolbarIcon(QWidget* parent = nullptr);
void showSpinner(bool showSpinner = true);
bool isSpinning();
private:
WaitingSpinnerWidget* m_spinner = nullptr;
};
#endif