src/document.cpp

changeset 163
36ea1a8aee33
parent 153
2f79053c2e9a
child 169
6da096930534
--- a/src/document.cpp	Sat Mar 05 13:19:59 2022 +0200
+++ b/src/document.cpp	Sat Mar 05 13:32:58 2022 +0200
@@ -167,6 +167,7 @@
 		action->setCheckable(true);
 		this->toolActions[toolInstance] = action;
 		action->setToolTip(toolInstance->toolTip());
+		action->setIcon(QPixmap{toolInstance->iconName()});
 		connect(action, &QAction::triggered, this, &Document::toolActionTriggered);
 		this->toolsBar->addAction(action);
 		QWidget* const widget = toolInstance->toolWidget();

mercurial