Remove kurlrequester->filedialog()

parent 8d270ef2
......@@ -420,7 +420,7 @@ ParameterContainer::ParameterContainer(const QDomElement &effect, const ItemInfo
cval->setupUi(toFillin);
cval->label->setText(paramName);
cval->setToolTip(comment);
cval->urlwidget->fileDialog()->setMimeTypeFilters(ProjectList::getExtensions());
cval->urlwidget->setFilter(ProjectList::getExtensions().join(' '));
m_valueItems[paramName] = cval;
cval->urlwidget->setUrl(QUrl(value));
connect(cval->urlwidget, SIGNAL(returnPressed()) , this, SLOT(slotCollectAllParameters()));
......
......@@ -59,10 +59,10 @@ void ClipPropertiesManager::showClipPropertiesDialog(DocClipBase* clip)
}
if (ix != -1) dia_ui.template_list->comboBox()->setCurrentIndex(ix);
else dia_ui.template_list->comboBox()->insertItem(0, templatePath);
dia_ui.template_list->fileDialog()->setNameFilter("*.kdenlivetitle");
dia_ui.template_list->setFilter("*.kdenlivetitle");
//warning: setting base directory doesn't work??
dia_ui.template_list->fileDialog()->setDirectory(titlepath);
dia_ui.template_list->setStartDir(QUrl::fromLocalFile(titlepath));
dia_ui.description->setText(clip->getProperty("description"));
if (dia->exec() == QDialog::Accepted) {
QString textTemplate = dia_ui.template_list->comboBox()->itemData(dia_ui.template_list->comboBox()->currentIndex()).toString();
......
......@@ -63,7 +63,7 @@ ClipTranscode::ClipTranscode(const QList <QUrl> &urls, const QString &params, co
label_dest->setText(i18n("Destination folder"));
dest_url->setMode(KFile::Directory);
dest_url->setUrl(QUrl(m_urls.at(0).adjusted(QUrl::RemoveFilename)));
dest_url->fileDialog()->setFileMode(QFileDialog::Directory); //setOperationMode(KFileDialog::Saving);
dest_url->setMode(KFile::Directory | KFile::ExistingOnly);
for (int i = 0; i < m_urls.count(); ++i)
urls_list->addItem(m_urls.at(i).path());
}
......
......@@ -1981,7 +1981,7 @@ void ProjectList::slotAddTitleTemplateClip()
dia_ui.buttonBox->button(QDialogButtonBox::Ok)->setFocus();
QStringList mimeTypeFilters;
mimeTypeFilters <<"application/x-kdenlivetitle";
dia_ui.template_list->fileDialog()->setMimeTypeFilters(mimeTypeFilters);
dia_ui.template_list->setFilter(mimeTypeFilters.join(' '));
//warning: setting base directory doesn't work??
dia_ui.template_list->setPath(path);
dia_ui.text_box->setHidden(true);
......@@ -2882,7 +2882,7 @@ void ProjectList::slotCutClipJob(const QString &id, QPoint zone)
ui.setupUi(d);
ui.extra_params->setVisible(false);
ui.add_clip->setChecked(KdenliveSettings::add_new_clip());
ui.file_url->fileDialog()->setFileMode(QFileDialog::AnyFile); //OperationMode(KFileDialog::Saving);
ui.file_url->setMode(KFile::File);
ui.extra_params->setMaximumHeight(QFontMetrics(font()).lineSpacing() * 5);
ui.file_url->setUrl(QUrl(dest));
ui.button_more->setIcon(QIcon::fromTheme("configure"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment