summaryrefslogtreecommitdiff
Side-by-side diff
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
@@ -92,25 +92,25 @@ public:
if ( !multi )
OFileNotification::singleShot( filename, this, SLOT( trigger() ), (OFileNotificationType) fntype );
else
OFileNotification::singleShot( filename, this, SLOT( trigger() ), (OFileNotificationType) fntype );
}
else
{
odebug << "cancelled." << oendl;
}
}
public slots:
- void modifierClicked( int modifier ) { (int)m ^= modifier; };
+ void modifierClicked( int modifier ) { m = static_cast<OFileNotificationType>( (int)m ^ int(modifier) ); };
void addSingle() { addTrigger(); };
void addMulti() { addTrigger( true ); };
void delTrigger()
{
QListViewItem* item = l->selectedItem();
if ( !item )
{
QMessageBox::warning( 0, "Del Trigger", "<p>No trigger selected!</p>", "&Sorry", 0 );
return;
}
else