Mercurial > hg > svapp
changeset 251:c469f8d8208e
Add setDefaultSessionTemplate
author | Chris Cannam |
---|---|
date | Mon, 17 Oct 2011 14:33:57 +0100 |
parents | ecbf3b75c562 |
children | 915ac1d3c807 f8233358123e |
files | framework/MainWindowBase.cpp framework/MainWindowBase.h |
diffstat | 2 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/framework/MainWindowBase.cpp Fri Oct 07 17:06:08 2011 +0100 +++ b/framework/MainWindowBase.cpp Mon Oct 17 14:33:57 2011 +0100 @@ -340,6 +340,14 @@ } void +MainWindowBase::setDefaultSessionTemplate(QString n) +{ + QSettings settings; + settings.beginGroup("MainWindow"); + settings.setValue("sessiontemplate", n); +} + +void MainWindowBase::updateMenuStates() { Pane *currentPane = 0;
--- a/framework/MainWindowBase.h Fri Oct 07 17:06:08 2011 +0100 +++ b/framework/MainWindowBase.h Mon Oct 17 14:33:57 2011 +0100 @@ -399,6 +399,7 @@ virtual void registerLastOpenedFilePath(FileFinder::FileType type, QString path); virtual QString getDefaultSessionTemplate() const; + virtual void setDefaultSessionTemplate(QString); virtual void createPlayTarget(); virtual void openHelpUrl(QString url);