changeset 252:915ac1d3c807 integration_library

Merge from the default branch
author mathieub <mathieu.barthet@eecs.qmul.ac.uk>
date Mon, 17 Oct 2011 15:25:15 +0100
parents 0136555495ae (current diff) c469f8d8208e (diff)
children
files
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/framework/MainWindowBase.cpp	Tue Oct 11 11:16:38 2011 +0100
+++ b/framework/MainWindowBase.cpp	Mon Oct 17 15:25:15 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	Tue Oct 11 11:16:38 2011 +0100
+++ b/framework/MainWindowBase.h	Mon Oct 17 15:25:15 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);