Diffstat (limited to 'core/pim/datebook/datebook.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/datebook/datebook.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/pim/datebook/datebook.cpp b/core/pim/datebook/datebook.cpp index 4fbcb10..6dd8918 100644 --- a/core/pim/datebook/datebook.cpp +++ b/core/pim/datebook/datebook.cpp | |||
@@ -374,24 +374,31 @@ void DateBook::viewDay() { | |||
374 | void DateBook::viewWeek() { | 374 | void DateBook::viewWeek() { |
375 | view(WEEK,currentDate()); | 375 | view(WEEK,currentDate()); |
376 | } | 376 | } |
377 | 377 | ||
378 | void DateBook::viewWeekLst() { | 378 | void DateBook::viewWeekLst() { |
379 | view(WEEKLST,currentDate()); | 379 | view(WEEKLST,currentDate()); |
380 | } | 380 | } |
381 | 381 | ||
382 | void DateBook::viewMonth() { | 382 | void DateBook::viewMonth() { |
383 | view(MONTH,currentDate()); | 383 | view(MONTH,currentDate()); |
384 | } | 384 | } |
385 | 385 | ||
386 | void DateBook::insertEvent( const Event &e ) | ||
387 | { | ||
388 | qWarning("Adding Event!"); | ||
389 | db->addEvent(e); | ||
390 | emit newEvent(); | ||
391 | } | ||
392 | |||
386 | void DateBook::duplicateEvent( const Event &e ) | 393 | void DateBook::duplicateEvent( const Event &e ) |
387 | { | 394 | { |
388 | qWarning("Hmmm..."); | 395 | qWarning("Hmmm..."); |
389 | // Alot of code duplication, as this is almost like editEvent(); | 396 | // Alot of code duplication, as this is almost like editEvent(); |
390 | if (syncing) { | 397 | if (syncing) { |
391 | QMessageBox::warning( this, tr("Calendar"), tr( "Can not edit data, currently syncing") ); | 398 | QMessageBox::warning( this, tr("Calendar"), tr( "Can not edit data, currently syncing") ); |
392 | return; | 399 | return; |
393 | } | 400 | } |
394 | 401 | ||
395 | Event dupevent(e);// Make a duplicate. | 402 | Event dupevent(e);// Make a duplicate. |
396 | 403 | ||
397 | // workaround added for text input. | 404 | // workaround added for text input. |