Replace 'Event' #define strings

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/21/head
Michele Calgaro 5 months ago
parent 425cfa759a
commit d93322c49e
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -431,11 +431,11 @@ void KrBookmarkHandler::bookmarksChanged(const TQString&, const TQString&) {
bool KrBookmarkHandler::eventFilter( TQObject *obj, TQEvent *ev ) {
if (ev->type() == TQEvent::MouseButtonRelease) {
switch (TQT_TQMOUSEEVENT(ev)->button()) {
switch (static_cast<TQMouseEvent*>(ev)->button()) {
case TQt::RightButton:
_middleClick = false;
if( obj->inherits( "TQPopupMenu" ) ) {
int id = static_cast<TQPopupMenu*>(TQT_TQWIDGET(obj))->idAt( TQT_TQMOUSEEVENT(ev)->pos() );
int id = static_cast<TQPopupMenu*>(TQT_TQWIDGET(obj))->idAt( static_cast<TQMouseEvent*>(ev)->pos() );
if( obj == _mainBookmarkPopup && _specialBookmarkIDs.contains( id ) ) {
rightClickOnSpecialBookmark();

@ -502,7 +502,7 @@ void MediaButton::addMountPoint( KMountPoint * mp, bool isMounted ) {
bool MediaButton::eventFilter( TQObject *o, TQEvent *e ) {
if( o == popupMenu ) {
if( e->type() == TQEvent::MouseButtonPress || e->type() == TQEvent::MouseButtonRelease ) {
TQMouseEvent *m = TQT_TQMOUSEEVENT(e);
TQMouseEvent *m = static_cast<TQMouseEvent*>(e);
if( m->button() == TQt::RightButton ) {
if( e->type() == TQEvent::MouseButtonPress ) {
int id = popupMenu->idAt( m->pos() );

Loading…
Cancel
Save