mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-01-13 01:58:27 +08:00
完成设置保存功能
This commit is contained in:
parent
620cea5136
commit
603d7a3827
@ -88,6 +88,12 @@ void QemuSetting::on_save_clicked()
|
|||||||
object.insert("VNC", ui->vncNumber->value());
|
object.insert("VNC", ui->vncNumber->value());
|
||||||
object.insert("CPU", ui->cpuNumber->value());
|
object.insert("CPU", ui->cpuNumber->value());
|
||||||
qDebug() << QJsonDocument(object).toJson();
|
qDebug() << QJsonDocument(object).toJson();
|
||||||
|
// 读取配置文件
|
||||||
|
QFile file(QDir::homePath() + "/.config/deepin-wine-runner/QemuSetting.json");
|
||||||
|
file.open(QIODevice::WriteOnly);
|
||||||
|
file.write(QJsonDocument(object).toJson());
|
||||||
|
file.close();
|
||||||
|
QMessageBox::information(this, "提示", "保存完成!");
|
||||||
}
|
}
|
||||||
|
|
||||||
void QemuSetting::on_cancel_clicked()
|
void QemuSetting::on_cancel_clicked()
|
||||||
|
Loading…
Reference in New Issue
Block a user