-rw-r--r-- | korganizer/kolistview.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/korganizer/kolistview.cpp b/korganizer/kolistview.cpp index 1b4397f..db3f802 100644 --- a/korganizer/kolistview.cpp +++ b/korganizer/kolistview.cpp | |||
@@ -319,16 +319,18 @@ KOListView::KOListView(Calendar *calendar, QWidget *parent, | |||
319 | SLOT(setCat()),true); | 319 | SLOT(setCat()),true); |
320 | mPopupMenu->addAdditionalItem(QIconSet(QPixmap()), | 320 | mPopupMenu->addAdditionalItem(QIconSet(QPixmap()), |
321 | i18n("Set alarm..."),this, | 321 | i18n("Set alarm..."),this, |
322 | SLOT(setAlarm()),true); | 322 | SLOT(setAlarm()),true); |
323 | QObject::connect(mCalPopup,SIGNAL(aboutToShow()),this, | 323 | QObject::connect(mCalPopup,SIGNAL(aboutToShow()),this, |
324 | SLOT( populateCalPopup() )); | 324 | SLOT( populateCalPopup() )); |
325 | QObject::connect(mCalPopup,SIGNAL(activated( int )),this, | 325 | QObject::connect(mCalPopup,SIGNAL(activated( int )),this, |
326 | SLOT( setCalendar( int ) )); | 326 | SLOT( setCalendar( int ) )); |
327 | QObject::connect(mPopupMenu,SIGNAL(categoryChanged( Incidence * )),this, | ||
328 | SLOT( catChanged( Incidence * ) )); | ||
327 | QPopupMenu * exportPO = new QPopupMenu ( this ); | 329 | QPopupMenu * exportPO = new QPopupMenu ( this ); |
328 | mPopupMenu->insertItem( i18n("Export"), exportPO ); | 330 | mPopupMenu->insertItem( i18n("Export"), exportPO ); |
329 | exportPO->insertItem( i18n("As iCal (ics) file..."),this, | 331 | exportPO->insertItem( i18n("As iCal (ics) file..."),this, |
330 | SLOT(saveToFile())); | 332 | SLOT(saveToFile())); |
331 | exportPO->insertItem( i18n("As vCal (vcs) file..."),this, | 333 | exportPO->insertItem( i18n("As vCal (vcs) file..."),this, |
332 | SLOT(saveToFileVCS())); | 334 | SLOT(saveToFileVCS())); |
333 | exportPO->insertItem( i18n("Journal/Details..."),this, | 335 | exportPO->insertItem( i18n("Journal/Details..."),this, |
334 | SLOT(saveDescriptionToFile())); | 336 | SLOT(saveDescriptionToFile())); |
@@ -375,16 +377,24 @@ KOListView::~KOListView() | |||
375 | delete mPopupMenu; | 377 | delete mPopupMenu; |
376 | #if QT_VERSION >= 0x030000 | 378 | #if QT_VERSION >= 0x030000 |
377 | 379 | ||
378 | #else | 380 | #else |
379 | delete mKOListViewWhatsThis; | 381 | delete mKOListViewWhatsThis; |
380 | #endif | 382 | #endif |
381 | } | 383 | } |
382 | 384 | ||
385 | void KOListView::catChanged( Incidence* inc) | ||
386 | { | ||
387 | KOListViewItem* item = getItemForEvent(inc); | ||
388 | if (item) { | ||
389 | ListItemVisitor v(item, mStartDate ); | ||
390 | inc->accept(v); | ||
391 | } | ||
392 | } | ||
383 | QString KOListView::getWhatsThisText(QPoint p) | 393 | QString KOListView::getWhatsThisText(QPoint p) |
384 | { | 394 | { |
385 | KOListViewItem* item = ( KOListViewItem* ) mListView->itemAt( p ); | 395 | KOListViewItem* item = ( KOListViewItem* ) mListView->itemAt( p ); |
386 | if ( item ) | 396 | if ( item ) |
387 | return KIncidenceFormatter::instance()->getFormattedText( item->data(), | 397 | return KIncidenceFormatter::instance()->getFormattedText( item->data(), |
388 | KOPrefs::instance()->mWTshowDetails, | 398 | KOPrefs::instance()->mWTshowDetails, |
389 | KOPrefs::instance()->mWTshowCreated, | 399 | KOPrefs::instance()->mWTshowCreated, |
390 | KOPrefs::instance()->mWTshowChanged); | 400 | KOPrefs::instance()->mWTshowChanged); |