Skip to content
Snippets Groups Projects
Commit 53495eec authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

add button

parent 03b74a38
No related branches found
No related tags found
1 merge request!2741GUI sample builder supports periodic stacks (#20)
...@@ -44,11 +44,17 @@ public: ...@@ -44,11 +44,17 @@ public:
{ {
auto* l = new QHBoxLayout(this); auto* l = new QHBoxLayout(this);
l->setContentsMargins(0, 0, 0, 0); l->setContentsMargins(0, 0, 0, 0);
auto* layer_btn = new QPushButton("Add layer", this);
l->addStretch(); l->addStretch();
auto* layer_btn = new QPushButton("Add layer", this);
l->addWidget(layer_btn); l->addWidget(layer_btn);
l->addStretch();
connect(layer_btn, &QPushButton::clicked, [=] { ec->addLayerItem(layer); }); connect(layer_btn, &QPushButton::clicked, [=] { ec->addLayerItem(layer); });
auto* stack_btn = new QPushButton("Add stack", this);
l->addWidget(stack_btn);
connect(stack_btn, &QPushButton::clicked, [=] { ec->addLayerItem(layer); });
l->addStretch();
} }
LayerItem* m_layer; LayerItem* m_layer;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment