diff options
Diffstat (limited to 'src/popupmenu.h')
-rw-r--r-- | src/popupmenu.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/popupmenu.h b/src/popupmenu.h index b5f6499..2416b7d 100644 --- a/src/popupmenu.h +++ b/src/popupmenu.h @@ -94,11 +94,11 @@ c l a s s P o p u p M e n u T e s t : p u b l i c Q W i d g e t menu.insertItem("- Shift + right click : execAtRectBottom centered"); menu.insertItem("- Shift + middle click : execAtRectRight centered"); - if (event->button() & Qt::LeftButton) + if (event->button() & TQt::LeftButton) PopupMenu::execAtRectCenter(menu, rect); - else if ((event->button() & Qt::RightButton) && (event->state() & TQt::ShiftButton)) + else if ((event->button() & TQt::RightButton) && (event->state() & TQt::ShiftButton)) PopupMenu::execAtRectBottom(menu, rect, true); - else if (event->button() & Qt::RightButton) + else if (event->button() & TQt::RightButton) PopupMenu::execAtRectBottom(menu, rect); else if ((event->button() & TQt::MidButton) && (event->state() & TQt::ShiftButton)) PopupMenu::execAtRectRight(menu, rect, true); |