From kde-commits Wed May 08 10:42:06 2013 From: Montel Laurent Date: Wed, 08 May 2013 10:42:06 +0000 To: kde-commits Subject: [kdepim] sendlateragent: Add new action Message-Id: <20130508104206.1FBF3A605B () git ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=136800973407094 Git commit 51f85cb1bd8276f9ddd9f1a38cac96451703a590 by Montel Laurent. Committed on 08/05/2013 at 12:41. Pushed by mlaurent into branch 'master'. Add new action M +34 -0 sendlateragent/sendlaterdialog.cpp M +6 -0 sendlateragent/sendlaterdialog.h http://commits.kde.org/kdepim/51f85cb1bd8276f9ddd9f1a38cac96451703a590 diff --git a/sendlateragent/sendlaterdialog.cpp b/sendlateragent/sendlaterd= ialog.cpp index c2db588..234feb0 100644 --- a/sendlateragent/sendlaterdialog.cpp +++ b/sendlateragent/sendlaterdialog.cpp @@ -20,6 +20,8 @@ = #include #include +#include +#include = #include #include @@ -75,6 +77,23 @@ SendLaterDialog::SendLaterDialog(SendLaterInfo *info, QW= idget *parent) = hbox->addWidget(mRecursiveComboBox); = + hbox =3D new QHBoxLayout; + + mSendIn30Minutes =3D new KPushButton(i18n("30 minutes later")); + connect(mSendIn30Minutes, SIGNAL(clicked()), SLOT(slotSendIn30Minutes(= ))); + hbox->addWidget(mSendIn30Minutes); + + mSendIn1Hour =3D new KPushButton(i18n("1 hour later")); + connect(mSendIn1Hour, SIGNAL(clicked()), SLOT(slotSendIn1Hour())); + hbox->addWidget(mSendIn1Hour); + + mSendIn2Hours =3D new KPushButton(i18n("2 hour later")); + connect(mSendIn2Hours, SIGNAL(clicked()), SLOT(slotSendIn2Hours())); + hbox->addWidget(mSendIn2Hours); + lay->addLayout(hbox); + + lay->addWidget(new KSeparator); + w->setLayout(lay); setMainWidget(w); readConfig(); @@ -88,6 +107,21 @@ SendLaterDialog::~SendLaterDialog() writeConfig(); } = +void SendLaterDialog::slotSendIn2Hours() +{ + +} + +void SendLaterDialog::slotSendIn1Hour() +{ + +} + +void SendLaterDialog::slotSendIn30Minutes() +{ + +} + void SendLaterDialog::slotRecursiveClicked(bool clicked) { mRecursiveValue->setEnabled(clicked); diff --git a/sendlateragent/sendlaterdialog.h b/sendlateragent/sendlaterdia= log.h index cf82982..7d5effe 100644 --- a/sendlateragent/sendlaterdialog.h +++ b/sendlateragent/sendlaterdialog.h @@ -40,6 +40,9 @@ private Q_SLOTS: void slotSendLater(); void slotSendNow(); void slotRecursiveClicked(bool); + void slotSendIn30Minutes(); + void slotSendIn1Hour(); + void slotSendIn2Hours(); = private: void load(SendLaterInfo *info); @@ -52,6 +55,9 @@ private: KComboBox *mRecursiveComboBox; QCheckBox *mRecursive; QSpinBox *mRecursiveValue; + KPushButton *mSendIn30Minutes; + KPushButton *mSendIn1Hour; + KPushButton *mSendIn2Hours; }; = #endif // SENDLATERDIALOG_H