mirror of
https://github.com/epasveer/seer.git
synced 2026-08-29 16:40:42 +08:00
Allow the select QtStyle to be saved to the configuration.
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
- Allow multiple thread groups to be select.
|
||||
- Add continue/interrupt for selected thread group(s).
|
||||
- Add run/start for selected thread group(s). Disabled for now.
|
||||
* Changing the Qt Style can be saved using Settings->Save Configuration.
|
||||
|
||||
## [1.11] - 2022-09-26
|
||||
|
||||
|
||||
@@ -853,6 +853,11 @@ void SeerMainWindow::writeConfigSettings () {
|
||||
|
||||
QSettings settings;
|
||||
|
||||
settings.beginGroup("mainwindow"); {
|
||||
QStyle* currentStyle = QApplication::style();
|
||||
settings.setValue("qtstyle", currentStyle->objectName());
|
||||
} settings.endGroup();
|
||||
|
||||
settings.beginGroup("gdb"); {
|
||||
settings.setValue("program", gdbWidget->gdbProgram());
|
||||
settings.setValue("arguments", gdbWidget->gdbArguments());
|
||||
@@ -921,6 +926,12 @@ void SeerMainWindow::readConfigSettings () {
|
||||
|
||||
QSettings settings;
|
||||
|
||||
settings.beginGroup("mainwindow"); {
|
||||
if (settings.contains("qtstyle")) {
|
||||
QApplication::setStyle(settings.value("qtstyle").toString());
|
||||
}
|
||||
} settings.endGroup();
|
||||
|
||||
settings.beginGroup("gdb"); {
|
||||
gdbWidget->setGdbProgram(settings.value("program", "/usr/bin/gdb").toString());
|
||||
gdbWidget->setGdbArguments(settings.value("arguments", "--interpreter=mi").toString());
|
||||
|
||||
Reference in New Issue
Block a user