Git commit fcb9783e77168c10512e6f0626caadd64393ffb8 by Montel Laurent. Committed on 30/06/2014 at 21:50. Pushed by mlaurent into branch 'master'. improve++ M +8 -3 agents/followupreminderagent/followupremindermanager.cpp M +1 -0 agents/followupreminderagent/followupremindernoanswerdialog.= cpp M +1 -1 agents/followupreminderagent/followupremindernoanswerdialog.h http://commits.kde.org/kdepim/fcb9783e77168c10512e6f0626caadd64393ffb8 diff --git a/agents/followupreminderagent/followupremindermanager.cpp b/age= nts/followupreminderagent/followupremindermanager.cpp index 3a6061e..6312267 100644 --- a/agents/followupreminderagent/followupremindermanager.cpp +++ b/agents/followupreminderagent/followupremindermanager.cpp @@ -17,6 +17,8 @@ = #include "followupremindermanager.h" #include "followupreminderinfo.h" +#include "followupremindernoanswerdialog.h" +#include "followupreminderjob.h" = #include #include @@ -52,14 +54,17 @@ void FollowUpReminderManager::load() delete info; } } - //if (!mNoAnswerDialog.data()) { - - //} + if (!mNoAnswerDialog.data()) { + mNoAnswerDialog =3D new FollowUpReminderNoAnswerDialog; + mNoAnswerDialog->show(); + } } = void FollowUpReminderManager::checkFollowUp(const Akonadi::Item &item, con= st Akonadi::Collection &col) { //TODO + FollowUpReminderJob *job =3D new FollowUpReminderJob(this); + } = #include "followupremindermanager.moc" diff --git a/agents/followupreminderagent/followupremindernoanswerdialog.cp= p b/agents/followupreminderagent/followupremindernoanswerdialog.cpp index cc39d68..858634c 100644 --- a/agents/followupreminderagent/followupremindernoanswerdialog.cpp +++ b/agents/followupreminderagent/followupremindernoanswerdialog.cpp @@ -35,6 +35,7 @@ FollowUpReminderNoAnswerDialog::FollowUpReminderNoAnswerD= ialog(QWidget *parent) setCaption( i18n("Follow Up Mail") ); setWindowIcon( KIcon( QLatin1String("kmail") ) ); setButtons( Ok|Cancel ); + setAttribute(Qt::WA_DeleteOnClose); QWidget *w =3D new QWidget; QVBoxLayout *vbox =3D new QVBoxLayout; w->setLayout(vbox); diff --git a/agents/followupreminderagent/followupremindernoanswerdialog.h = b/agents/followupreminderagent/followupremindernoanswerdialog.h index c3ae2e3..f3967ff 100644 --- a/agents/followupreminderagent/followupremindernoanswerdialog.h +++ b/agents/followupreminderagent/followupremindernoanswerdialog.h @@ -26,7 +26,7 @@ class FollowUpReminderNoAnswerDialog : public KDialog { Q_OBJECT public: - explicit FollowUpReminderNoAnswerDialog(QWidget *parent); + explicit FollowUpReminderNoAnswerDialog(QWidget *parent =3D 0); ~FollowUpReminderNoAnswerDialog(); = void setInfo(const QList &info);