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