void MainWindow::on_actionLayoutAdd_triggered()
{
    bool ok;
    QString name = QInputDialog::getText(this, tr("Add Custom Layout"),
                                         tr("Name"), QLineEdit::Normal,
                                         "", &ok);
    if (ok && !name.isEmpty()) {
        if (Settings.setLayout(name, saveGeometry(), saveState())) {
            Settings.sync();
            if (Settings.layouts().size() == 1) {
                ui->menuLayout->addAction(ui->actionLayoutRemove);
                ui->menuLayout->addSeparator();
            }
            ui->menuLayout->addAction(addLayout(m_layoutGroup, name));
        }
    }
}
void MainWindow::on_actionLayoutAdd_triggered()
{
    bool ok;
    QString name = QInputDialog::getText(this, tr("Add Custom Layout"),
                                         tr("Name"), QLineEdit::Normal,
                                         "", &ok);
    if (ok && !name.isEmpty()) {
        if (Settings.setLayout(name, saveGeometry(), saveState())) {
            Settings.sync();
            if (Settings.layouts().size() == 1) {
                ui->menuLayout->addAction(ui->actionLayoutRemove);
                ui->menuLayout->addSeparator();
            }
            ui->menuLayout->addAction(addLayout(m_layoutGroup, name));
        }
    }
}