Changeset View
Changeset View
Standalone View
Standalone View
src/platformtheme/kdeplatformfiledialoghelper.cpp
Show First 20 Lines • Show All 333 Lines • ▼ Show 20 Line(s) | 287 | } else { | |||
---|---|---|---|---|---|
334 | 334 | | |||
335 | // overwrite option | 335 | // overwrite option | ||
336 | if (options()->testOption(QFileDialogOptions::FileDialogOption::DontConfirmOverwrite)) { | 336 | if (options()->testOption(QFileDialogOptions::FileDialogOption::DontConfirmOverwrite)) { | ||
337 | dialog->m_fileWidget->setConfirmOverwrite(false); | 337 | dialog->m_fileWidget->setConfirmOverwrite(false); | ||
338 | } else if (options()->acceptMode() == QFileDialogOptions::AcceptSave) { | 338 | } else if (options()->acceptMode() == QFileDialogOptions::AcceptSave) { | ||
339 | dialog->m_fileWidget->setConfirmOverwrite(true); | 339 | dialog->m_fileWidget->setConfirmOverwrite(true); | ||
340 | } | 340 | } | ||
341 | 341 | | |||
342 | dialog->m_fileWidget->setSupportedSchemes(options()->supportedSchemes()); | 342 | QStringList schemes = options()->supportedSchemes(); | ||
343 | dialog->m_fileWidget->setSupportedSchemes(schemes); | ||||
343 | } | 344 | } | ||
344 | } | 345 | } | ||
345 | 346 | | |||
346 | void KDEPlatformFileDialogHelper::exec() | 347 | void KDEPlatformFileDialogHelper::exec() | ||
347 | { | 348 | { | ||
348 | restoreSize(); | 349 | restoreSize(); | ||
349 | // KDEPlatformFileDialog::show() will always be called during QFileDialog::exec() | 350 | // KDEPlatformFileDialog::show() will always be called during QFileDialog::exec() | ||
350 | // discard the delayed show() it and use exec() and it will call show() for us. | 351 | // discard the delayed show() it and use exec() and it will call show() for us. | ||
▲ Show 20 Lines • Show All 106 Lines • Show Last 20 Lines |