Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 8ca47e4a authored by Martin Koller's avatar Martin Koller

make it compile with gcc-4.8.5

parent c81e9b00
......@@ -479,7 +479,7 @@ void KTNEFMain::slotEditToolbars()
saveMainWindowSettings(grp);
QPointer<KEditToolBar> dlg = new KEditToolBar(factory());
connect(dlg, &KEditToolBar::newToolBarConfig, this, &KTNEFMain::slotNewToolbarConfig);
connect(dlg.data(), &KEditToolBar::newToolBarConfig, this, &KTNEFMain::slotNewToolbarConfig);
dlg->exec();
delete dlg;
}
......
......@@ -3020,7 +3020,7 @@ void KMComposerWin::slotEditToolbars()
saveMainWindowSettings(grp);
QPointer<KEditToolBar> dlg = new KEditToolBar(guiFactory(), this);
connect(dlg, &KEditToolBar::newToolBarConfig, this, &KMComposerWin::slotUpdateToolbars);
connect(dlg.data(), &KEditToolBar::newToolBarConfig, this, &KMComposerWin::slotUpdateToolbars);
dlg->exec();
delete dlg;
......
......@@ -123,8 +123,8 @@ void CreateNewContactJob::slotResourceCreationDone(KJob *job)
void CreateNewContactJob::createContact()
{
QPointer<Akonadi::ContactEditorDialog> dlg = new Akonadi::ContactEditorDialog(Akonadi::ContactEditorDialog::CreateMode, mParentWidget);
connect(dlg, &Akonadi::ContactEditorDialog::contactStored, this, &CreateNewContactJob::contactStored);
connect(dlg, &Akonadi::ContactEditorDialog::error, this, &CreateNewContactJob::slotContactEditorError);
connect(dlg.data(), &Akonadi::ContactEditorDialog::contactStored, this, &CreateNewContactJob::contactStored);
connect(dlg.data(), &Akonadi::ContactEditorDialog::error, this, &CreateNewContactJob::slotContactEditorError);
dlg->exec();
delete dlg;
}
......
......@@ -149,7 +149,7 @@ void KMMainWin::slotEditToolbars()
KConfigGroup grp = KMKernel::self()->config()->group("Main Window");
saveMainWindowSettings(grp);
QPointer<KEditToolBar> dlg = new KEditToolBar(guiFactory(), this);
connect(dlg, &KEditToolBar::newToolBarConfig, this, &KMMainWin::slotUpdateGui);
connect(dlg.data(), &KEditToolBar::newToolBarConfig, this, &KMMainWin::slotUpdateGui);
dlg->exec();
delete dlg;
......
......@@ -659,7 +659,7 @@ void KMReaderMainWin::slotEditToolbars()
KConfigGroup grp(KMKernel::self()->config(), "ReaderWindow");
saveMainWindowSettings(grp);
QPointer<KEditToolBar> dlg = new KEditToolBar(guiFactory(), this);
connect(dlg, &KEditToolBar::newToolBarConfig, this, &KMReaderMainWin::slotUpdateToolbars);
connect(dlg.data(), &KEditToolBar::newToolBarConfig, this, &KMReaderMainWin::slotUpdateToolbars);
dlg->exec();
delete dlg;
}
......
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