Commit e1dc8906 authored by Laurent Montel's avatar Laurent Montel 😁

Minor

parent 652d6a75
...@@ -123,8 +123,6 @@ bool ReminderTreeItem::operator<( const QTreeWidgetItem &other ) const ...@@ -123,8 +123,6 @@ bool ReminderTreeItem::operator<( const QTreeWidgetItem &other ) const
} }
} }
typedef QList<ReminderTreeItem *> ReminderList;
AlarmDialog::AlarmDialog( const Akonadi::ETMCalendar::Ptr &calendar, QWidget *parent ) AlarmDialog::AlarmDialog( const Akonadi::ETMCalendar::Ptr &calendar, QWidget *parent )
: KDialog( parent, Qt::WindowStaysOnTopHint ), : KDialog( parent, Qt::WindowStaysOnTopHint ),
mCalendar( calendar ), mSuspendTimer( this ) mCalendar( calendar ), mSuspendTimer( this )
...@@ -732,7 +730,7 @@ void AlarmDialog::slotSave() ...@@ -732,7 +730,7 @@ void AlarmDialog::slotSave()
config->sync(); config->sync();
} }
ReminderList AlarmDialog::selectedItems() const AlarmDialog::ReminderList AlarmDialog::selectedItems() const
{ {
ReminderList list; ReminderList list;
......
...@@ -101,6 +101,8 @@ class AlarmDialog : public KDialog ...@@ -101,6 +101,8 @@ class AlarmDialog : public KDialog
void closeEvent( QCloseEvent * ); void closeEvent( QCloseEvent * );
private: private:
typedef QList<ReminderTreeItem *> ReminderList;
static KDateTime triggerDateForIncidence( const KCalCore::Incidence::Ptr &inc, static KDateTime triggerDateForIncidence( const KCalCore::Incidence::Ptr &inc,
const QDateTime &reminderAt, const QDateTime &reminderAt,
QString &displayStr ); QString &displayStr );
...@@ -117,9 +119,9 @@ class AlarmDialog : public KDialog ...@@ -117,9 +119,9 @@ class AlarmDialog : public KDialog
bool startKOrganizer(); bool startKOrganizer();
ReminderTreeItem *searchByItem( const Akonadi::Item &incidence ); ReminderTreeItem *searchByItem( const Akonadi::Item &incidence );
void setTimer(); void setTimer();
void dismiss( QList<ReminderTreeItem *> selections ); void dismiss(ReminderList selections );
int activeCount(); int activeCount();
QList<ReminderTreeItem *> selectedItems() const; ReminderList selectedItems() const;
void toggleDetails( QTreeWidgetItem *item ); void toggleDetails( QTreeWidgetItem *item );
void showDetails( QTreeWidgetItem *item ); void showDetails( QTreeWidgetItem *item );
......
...@@ -155,7 +155,7 @@ bool MailClient::mailOrganizer( const KCalCore::IncidenceBase::Ptr &incidence, ...@@ -155,7 +155,7 @@ bool MailClient::mailOrganizer( const KCalCore::IncidenceBase::Ptr &incidence,
subject = i18n( "Free Busy Message" ); subject = i18n( "Free Busy Message" );
} }
QString body = KCalUtils::IncidenceFormatter::mailBodyStr( incidence, KSystemTimeZones::local() ); const QString body = KCalUtils::IncidenceFormatter::mailBodyStr( incidence, KSystemTimeZones::local() );
return send( identity, from, to, QString(), subject, body, false, return send( identity, from, to, QString(), subject, body, false,
bccMe, attachment, mailTransport ); bccMe, attachment, mailTransport );
......
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