author | leseb <leseb> | 2002-07-09 16:50:46 (UTC) |
---|---|---|
committer | leseb <leseb> | 2002-07-09 16:50:46 (UTC) |
commit | 5f549398401acc5591ffcb67459dbf55ea323b91 (patch) (unidiff) | |
tree | d7c8846531a263acfb5bdafbae24fc7cfbbce170 | |
parent | 235f43313ac455b0240c5ab4d5a50f75f488edfd (diff) | |
download | opie-5f549398401acc5591ffcb67459dbf55ea323b91.zip opie-5f549398401acc5591ffcb67459dbf55ea323b91.tar.gz opie-5f549398401acc5591ffcb67459dbf55ea323b91.tar.bz2 |
Check for Ir support
-rw-r--r-- | core/pim/datebook/datebookday.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/pim/datebook/datebookday.cpp b/core/pim/datebook/datebookday.cpp index 5474cfc..325b902 100644 --- a/core/pim/datebook/datebookday.cpp +++ b/core/pim/datebook/datebookday.cpp | |||
@@ -25,12 +25,13 @@ | |||
25 | #include <qpe/datebookdb.h> | 25 | #include <qpe/datebookdb.h> |
26 | #include <qpe/resource.h> | 26 | #include <qpe/resource.h> |
27 | #include <qpe/event.h> | 27 | #include <qpe/event.h> |
28 | #include <qpe/qpeapplication.h> | 28 | #include <qpe/qpeapplication.h> |
29 | #include <qpe/timestring.h> | 29 | #include <qpe/timestring.h> |
30 | #include <qpe/qpedebug.h> | 30 | #include <qpe/qpedebug.h> |
31 | #include <qpe/ir.h> | ||
31 | 32 | ||
32 | #include <qheader.h> | 33 | #include <qheader.h> |
33 | #include <qdatetime.h> | 34 | #include <qdatetime.h> |
34 | #include <qpainter.h> | 35 | #include <qpainter.h> |
35 | #include <qsimplerichtext.h> | 36 | #include <qsimplerichtext.h> |
36 | #include <qpopupmenu.h> | 37 | #include <qpopupmenu.h> |
@@ -719,13 +720,13 @@ void DateBookDayWidget::mousePressEvent( QMouseEvent *e ) | |||
719 | update(); | 720 | update(); |
720 | dateBook->repaint(); | 721 | dateBook->repaint(); |
721 | 722 | ||
722 | QPopupMenu m; | 723 | QPopupMenu m; |
723 | m.insertItem( tr( "Edit" ), 1 ); | 724 | m.insertItem( tr( "Edit" ), 1 ); |
724 | m.insertItem( tr( "Delete" ), 2 ); | 725 | m.insertItem( tr( "Delete" ), 2 ); |
725 | m.insertItem( tr( "Beam" ), 3 ); | 726 | if(Ir::supported()) m.insertItem( tr( "Beam" ), 3 ); |
726 | int r = m.exec( e->globalPos() ); | 727 | int r = m.exec( e->globalPos() ); |
727 | if ( r == 1 ) { | 728 | if ( r == 1 ) { |
728 | emit editMe( ev.event() ); | 729 | emit editMe( ev.event() ); |
729 | } else if ( r == 2 ) { | 730 | } else if ( r == 2 ) { |
730 | emit deleteMe( ev.event() ); | 731 | emit deleteMe( ev.event() ); |
731 | } else if ( r == 3 ) { | 732 | } else if ( r == 3 ) { |