moved cache into general page

This commit is contained in:
fourtf
2019-09-03 12:46:22 +02:00
parent 41a49b854e
commit 577e2e0a21
7 changed files with 32 additions and 98 deletions
+4 -1
View File
@@ -72,9 +72,12 @@ public:
QPushButton *addButton(const QString &text, OnClick onClick)
{
auto button = new QPushButton(text);
auto layout = new QHBoxLayout();
layout->addWidget(button);
layout->addStretch(1);
this->groups_.back().widgets.push_back({button, {text}});
QObject::connect(button, &QPushButton::clicked, onClick);
this->addWidget(button);
this->addLayout(layout);
return button;
}