2021-11-18 14:58:01 +00:00
|
|
|
#ifndef DUST3D_APPLICATION_TOOLBAR_BUTTON_H_
|
|
|
|
#define DUST3D_APPLICATION_TOOLBAR_BUTTON_H_
|
|
|
|
|
|
|
|
#include <QPushButton>
|
|
|
|
#include <QString>
|
|
|
|
|
|
|
|
class QSvgWidget;
|
|
|
|
|
2022-10-18 09:35:04 +00:00
|
|
|
class ToolbarButton : public QPushButton {
|
2021-11-18 14:58:01 +00:00
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2022-10-18 09:35:04 +00:00
|
|
|
ToolbarButton(const QString& filename = QString(), QWidget* parent = nullptr);
|
|
|
|
void setIcon(const QString& filename);
|
|
|
|
|
2021-11-18 14:58:01 +00:00
|
|
|
private:
|
2022-10-18 09:35:04 +00:00
|
|
|
QSvgWidget* m_iconWidget = nullptr;
|
2021-11-18 14:58:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|