Commit 3a64eb9e authored by Vincent PINON's avatar Vincent PINON

krazy fix: QPointer for new QDialog

git grep -l 'QDialog \*' | xargs sed -i 's/QDialog \*\(\w*\) =/QPointer<QDialog> \1 =/'
parent 3b525670
......@@ -122,7 +122,7 @@ void EncodingProfilesDialog::slotDeleteProfile()
void EncodingProfilesDialog::slotAddProfile()
{
QDialog *d = new QDialog(this);
QPointer<QDialog> d = new QDialog(this);
QVBoxLayout *l = new QVBoxLayout;
l->addWidget(new QLabel(i18n("Profile name:")));
QLineEdit *pname = new QLineEdit;
......@@ -154,7 +154,7 @@ void EncodingProfilesDialog::slotAddProfile()
void EncodingProfilesDialog::slotEditProfile()
{
QDialog *d = new QDialog(this);
QPointer<QDialog> d = new QDialog(this);
QVBoxLayout *l = new QVBoxLayout;
l->addWidget(new QLabel(i18n("Profile name:")));
QLineEdit *pname = new QLineEdit;
......
......@@ -3454,7 +3454,7 @@ void MainWindow::slotShowClipProperties(DocClipBase *clip)
filter << "*.kdenlivetitle";
QStringList templateFiles = QDir(titlepath).entryList(filter, QDir::Files);
QDialog *dia = new QDialog(this);
QPointer<QDialog> dia = new QDialog(this);
Ui::TemplateClip_UI dia_ui;
dia_ui.setupUi(dia);
int ix = -1;
......
......@@ -2969,7 +2969,7 @@ void ProjectList::slotTranscodeClipJob(const QString &condition, QString params,
if (KMessageBox::warningContinueCancelList(this, i18n("The transcoding job will overwrite the following files:"), existingFiles) == KMessageBox::Cancel) return;
}
QDialog *d = new QDialog(this);
QPointer<QDialog> d = new QDialog(this);
Ui::CutJobDialog_UI ui;
ui.setupUi(d);
d->setWindowTitle(i18n("Transcoding"));
......
......@@ -454,7 +454,7 @@ void RenderWidget::slotSaveProfile()
{
//TODO: update to correctly use metagroups
Ui::SaveProfile_UI ui;
QDialog *d = new QDialog(this);
QPointer<QDialog> d = new QDialog(this);
ui.setupUi(d);
for (int i = 0; i < m_view.destination_list->count(); ++i)
......@@ -623,7 +623,7 @@ void RenderWidget::slotEditProfile()
QString currentProfile = item->text();
Ui::SaveProfile_UI ui;
QDialog *d = new QDialog(this);
QPointer<QDialog> d = new QDialog(this);
ui.setupUi(d);
for (int i = 0; i < m_view.destination_list->count(); ++i)
......
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