From 475a48b78d963d92701f84972cffb6f634010966 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Mon, 22 Sep 2008 06:50:35 +0000 Subject: [PATCH] GuiView::saveLayout(): Use QSettings::beginGroup. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26490 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiView.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index e944475f5f..04a9d5ddbd 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -347,15 +347,16 @@ GuiView::~GuiView() void GuiView::saveLayout() const { QSettings settings; - QString const key = "views/" + QString::number(id_); + settings.beginGroup("views"); + settings.beginGroup(QString::number(id_)); #ifdef Q_WS_X11 - settings.setValue(key + "/pos", pos()); - settings.setValue(key + "/size", size()); + settings.setValue("pos", pos()); + settings.setValue("size", size()); #else - settings.setValue(key + "/geometry", saveGeometry()); + settings.setValue("geometry", saveGeometry()); #endif - settings.setValue(key + "/layout", saveState(0)); - settings.setValue(key + "/icon_size", iconSize()); + settings.setValue("layout", saveState(0)); + settings.setValue("icon_size", iconSize()); }