author | alwin <alwin> | 2005-03-18 12:49:14 (UTC) |
---|---|---|
committer | alwin <alwin> | 2005-03-18 12:49:14 (UTC) |
commit | b7996a25adab32e6f2e4d278a9d9801ad66f90c7 (patch) (unidiff) | |
tree | f90bf3aa5cd274c467a8ff3e84566fdfa6a1a6c5 /core/pim/datebook/datebookweeklst.cpp | |
parent | d7fdcc3dac4a1d8cbd823d17ea52d17cb67b16f8 (diff) | |
download | opie-b7996a25adab32e6f2e4d278a9d9801ad66f90c7.zip opie-b7996a25adab32e6f2e4d278a9d9801ad66f90c7.tar.gz opie-b7996a25adab32e6f2e4d278a9d9801ad66f90c7.tar.bz2 |
made plugins configureable, eg, if them will load or not (or switch on/off
at runtime)
events generated from plugins will not editable and so on (check for a
wrong Uid) so them are just text inside datebook.
Diffstat (limited to 'core/pim/datebook/datebookweeklst.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/datebook/datebookweeklst.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/pim/datebook/datebookweeklst.cpp b/core/pim/datebook/datebookweeklst.cpp index b0e78f1..3c871ea 100644 --- a/core/pim/datebook/datebookweeklst.cpp +++ b/core/pim/datebook/datebookweeklst.cpp | |||
@@ -212,13 +212,18 @@ void DateBookWeekLstEvent::deleteMe() | |||
212 | void DateBookWeekLstEvent::beamMe() | 212 | void DateBookWeekLstEvent::beamMe() |
213 | { | 213 | { |
214 | emit beamEvent( event.event() ); | 214 | emit beamEvent( event.event() ); |
215 | } | 215 | } |
216 | void DateBookWeekLstEvent::mousePressEvent( QMouseEvent *e ) | 216 | void DateBookWeekLstEvent::mousePressEvent( QMouseEvent *e ) |
217 | { | 217 | { |
218 | if (!event.event().isValidUid()) { | ||
219 | // this is just such a holiday event. | ||
220 | return; | ||
221 | } | ||
218 | popmenue = new QPopupMenu; | 222 | popmenue = new QPopupMenu; |
223 | |||
219 | popmenue->insertItem( tr( "Edit" ), this, SLOT(editMe())); | 224 | popmenue->insertItem( tr( "Edit" ), this, SLOT(editMe())); |
220 | popmenue->insertItem( tr( "Duplicate" ), this, SLOT(duplicateMe())); | 225 | popmenue->insertItem( tr( "Duplicate" ), this, SLOT(duplicateMe())); |
221 | popmenue->insertItem( tr( "Delete" ), this, SLOT(deleteMe())); | 226 | popmenue->insertItem( tr( "Delete" ), this, SLOT(deleteMe())); |
222 | if(Ir::supported()) | 227 | if(Ir::supported()) |
223 | popmenue->insertItem( tr( "Beam" ), this, SLOT(beamMe())); | 228 | popmenue->insertItem( tr( "Beam" ), this, SLOT(beamMe())); |
224 | popmenue->popup( mapToGlobal( e->pos() )); | 229 | popmenue->popup( mapToGlobal( e->pos() )); |