summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2004-04-24 11:04:03 (UTC)
committer mickeyl <mickeyl>2004-04-24 11:04:03 (UTC)
commit9ac401fbe5c80f710757926920d734e93a7e159b (patch) (unidiff)
tree1011b8aed028e9f6f0a9118e0fcd8ae49d211a38
parent34595890e8373c91a3f5b120dfd63ea3023e46c5 (diff)
downloadopie-9ac401fbe5c80f710757926920d734e93a7e159b.zip
opie-9ac401fbe5c80f710757926920d734e93a7e159b.tar.gz
opie-9ac401fbe5c80f710757926920d734e93a7e159b.tar.bz2
gcc3.4 fixlet
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/examples/opiecore/onotifydemo/onotifydemo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie2/examples/opiecore/onotifydemo/onotifydemo.cpp b/libopie2/examples/opiecore/onotifydemo/onotifydemo.cpp
index 74a8158..b9ff9db 100644
--- a/libopie2/examples/opiecore/onotifydemo/onotifydemo.cpp
+++ b/libopie2/examples/opiecore/onotifydemo/onotifydemo.cpp
@@ -88,33 +88,33 @@ public:
88 if ( multi ) fntype |=(int) Multi; 88 if ( multi ) fntype |=(int) Multi;
89 89
90 QString modifier = QString().sprintf( " = 0x%08x", fntype ); 90 QString modifier = QString().sprintf( " = 0x%08x", fntype );
91 new OListViewItem( l, filename, multi ? "MULTI" : "SINGLE", modifier ); 91 new OListViewItem( l, filename, multi ? "MULTI" : "SINGLE", modifier );
92 if ( !multi ) 92 if ( !multi )
93 OFileNotification::singleShot( filename, this, SLOT( trigger() ), (OFileNotificationType) fntype ); 93 OFileNotification::singleShot( filename, this, SLOT( trigger() ), (OFileNotificationType) fntype );
94 else 94 else
95 OFileNotification::singleShot( filename, this, SLOT( trigger() ), (OFileNotificationType) fntype ); 95 OFileNotification::singleShot( filename, this, SLOT( trigger() ), (OFileNotificationType) fntype );
96 } 96 }
97 else 97 else
98 { 98 {
99 odebug << "cancelled." << oendl; 99 odebug << "cancelled." << oendl;
100 } 100 }
101 } 101 }
102 102
103public slots: 103public slots:
104 void modifierClicked( int modifier ) { (int)m ^= modifier; }; 104 void modifierClicked( int modifier ) { m = static_cast<OFileNotificationType>( (int)m ^ int(modifier) ); };
105 void addSingle() { addTrigger(); }; 105 void addSingle() { addTrigger(); };
106 void addMulti() { addTrigger( true ); }; 106 void addMulti() { addTrigger( true ); };
107 107
108 void delTrigger() 108 void delTrigger()
109 { 109 {
110 QListViewItem* item = l->selectedItem(); 110 QListViewItem* item = l->selectedItem();
111 if ( !item ) 111 if ( !item )
112 { 112 {
113 QMessageBox::warning( 0, "Del Trigger", "<p>No trigger selected!</p>", "&Sorry", 0 ); 113 QMessageBox::warning( 0, "Del Trigger", "<p>No trigger selected!</p>", "&Sorry", 0 );
114 return; 114 return;
115 } 115 }
116 else 116 else
117 { 117 {
118 QString filename( item->text( 0 ) ); 118 QString filename( item->text( 0 ) );
119 odebug << "Filename = " << filename << oendl; 119 odebug << "Filename = " << filename << oendl;
120 } 120 }