Mercurial > hg > svgui
comparison widgets/InteractiveFileFinder.cpp @ 794:9c272d39c3e3 tonioni
Some tidying & fixing compiler warnings
author | Chris Cannam |
---|---|
date | Thu, 12 Jun 2014 18:52:52 +0100 |
parents | 6d95d87f1654 |
children | 831188672987 |
comparison
equal
deleted
inserted
replaced
793:bb1f2a20f7db | 794:9c272d39c3e3 |
---|---|
215 | 215 |
216 return path; | 216 return path; |
217 } | 217 } |
218 | 218 |
219 QString | 219 QString |
220 InteractiveFileFinder::getSaveFileName(FileType type, QString fallbackLocation) | 220 InteractiveFileFinder::getSaveFileName(FileType type, |
221 QString fallbackLocation) | |
221 { | 222 { |
222 QString settingsKeyStub; | 223 QString settingsKeyStub; |
223 QString lastPath = fallbackLocation; | 224 QString lastPath = fallbackLocation; |
224 | 225 |
225 QString title = tr("Select file"); | 226 QString title = tr("Select file"); |
310 QStringList filters = filter.split('\n'); | 311 QStringList filters = filter.split('\n'); |
311 | 312 |
312 dialog.setNameFilters(filters); | 313 dialog.setNameFilters(filters); |
313 dialog.setWindowTitle(title); | 314 dialog.setWindowTitle(title); |
314 dialog.setDirectory(lastPath); | 315 dialog.setDirectory(lastPath); |
315 | |
316 dialog.setAcceptMode(QFileDialog::AcceptSave); | 316 dialog.setAcceptMode(QFileDialog::AcceptSave); |
317 dialog.setFileMode(QFileDialog::AnyFile); | 317 dialog.setFileMode(QFileDialog::AnyFile); |
318 dialog.setConfirmOverwrite(false); // we'll do that | 318 dialog.setConfirmOverwrite(false); // we'll do that |
319 | 319 |
320 QString defaultSuffix; | 320 QString defaultSuffix; |