Mercurial > hg > svapp
comparison framework/MainWindowBase.cpp @ 251:c469f8d8208e
Add setDefaultSessionTemplate
author | Chris Cannam |
---|---|
date | Mon, 17 Oct 2011 14:33:57 +0100 |
parents | ecbf3b75c562 |
children | 3240925e00ef |
comparison
equal
deleted
inserted
replaced
248:ecbf3b75c562 | 251:c469f8d8208e |
---|---|
336 settings.beginGroup("MainWindow"); | 336 settings.beginGroup("MainWindow"); |
337 QString templateName = settings.value("sessiontemplate", "").toString(); | 337 QString templateName = settings.value("sessiontemplate", "").toString(); |
338 if (templateName == "") templateName = "default"; | 338 if (templateName == "") templateName = "default"; |
339 return templateName; | 339 return templateName; |
340 } | 340 } |
341 | |
342 void | |
343 MainWindowBase::setDefaultSessionTemplate(QString n) | |
344 { | |
345 QSettings settings; | |
346 settings.beginGroup("MainWindow"); | |
347 settings.setValue("sessiontemplate", n); | |
348 } | |
341 | 349 |
342 void | 350 void |
343 MainWindowBase::updateMenuStates() | 351 MainWindowBase::updateMenuStates() |
344 { | 352 { |
345 Pane *currentPane = 0; | 353 Pane *currentPane = 0; |