19 #include <QToolButton>
28 auto action =
new QAction(
"Add material",
this);
29 action->setIcon(QIcon(
":/icons/plus-circle-outline.svg"));
30 action->setToolTip(
"Adds new material at the bottom of the list");
34 action =
new QAction(
"Clone",
this);
35 action->setIcon(QIcon(
":/icons/plus-circle-multiple-outline.svg"));
36 action->setToolTip(
"Clones selected material");
40 action =
new QAction(
"Remove",
this);
41 action->setIcon(QIcon(
":/icons/beaker-remove-outline.svg"));
42 action->setToolTip(
"Removes selected material");
48 action =
new QAction(
"Up",
this);
49 action->setIcon(QIcon(
":/icons/arrow-up-circle-outline.svg"));
50 action->setToolTip(
"Moves selected material up");
54 action =
new QAction(
"Down",
this);
55 action->setIcon(QIcon(
":/icons/arrow-down-circle-outline.svg"));
56 action->setToolTip(
"Moves selected material down");
62 action =
new QAction(
"Import",
this);
63 action->setIcon(QIcon(
":/icons/import.svg"));
64 action->setToolTip(
"Imports materials from file");
68 action =
new QAction(
"Export",
this);
69 action->setIcon(QIcon(
":/icons/export.svg"));
70 action->setToolTip(
"Exports materials to file");
Handles user actions applied to material table.
void onCloneMaterial()
Processes request to clone selected materials.
DAREFLCORE_EXPORT void SetToolBarStyleTextBesides(QToolBar *toolbar)
Set common style for a toolbar.
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.