diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-04 23:07:53 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-05 23:06:51 +0900 |
commit | 945085d2d242018111b8bb1e1082ebe2021b720b (patch) | |
tree | 9162dfce141628f7e5d7ffc311dc0df860a6b29b /src/modules/objects/class_widget.cpp | |
parent | 776d38202f9be592e1b6b99dbc81a64ee584c5c0 (diff) | |
download | kvirc-945085d2d242018111b8bb1e1082ebe2021b720b.tar.gz kvirc-945085d2d242018111b8bb1e1082ebe2021b720b.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 9577f4de07539fb2464a1499d45b25993c5cea46)
Diffstat (limited to 'src/modules/objects/class_widget.cpp')
-rw-r--r-- | src/modules/objects/class_widget.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/modules/objects/class_widget.cpp b/src/modules/objects/class_widget.cpp index 74e5dc1..364e907 100644 --- a/src/modules/objects/class_widget.cpp +++ b/src/modules/objects/class_widget.cpp @@ -725,27 +725,27 @@ bool KviKvsObject_widget::eventFilter(TQObject *o,TQEvent *e) } break; case TQEvent::MouseButtonPress: - if(((TQMouseEvent *)e)->button() & Qt::LeftButton)aparam = 0; + if(((TQMouseEvent *)e)->button() & TQt::LeftButton)aparam = 0; else { - if(((TQMouseEvent *)e)->button() & Qt::RightButton)aparam = 1; + if(((TQMouseEvent *)e)->button() & TQt::RightButton)aparam = 1; else aparam = 2; } if(!callFunction(this,"mousePressEvent",retv,new KviKvsVariantList(new KviKvsVariant((kvs_int_t)aparam),new KviKvsVariant((kvs_int_t)((TQMouseEvent *)e)->pos().x()),new KviKvsVariant((kvs_int_t)((TQMouseEvent *)e)->pos().y()) ))) brokenhandler = true; // ignore results of a broken event handler break; case TQEvent::MouseButtonRelease: - if(((TQMouseEvent *)e)->button() & Qt::LeftButton)aparam = 0; + if(((TQMouseEvent *)e)->button() & TQt::LeftButton)aparam = 0; else { - if(((TQMouseEvent *)e)->button() & Qt::RightButton)aparam = 1; + if(((TQMouseEvent *)e)->button() & TQt::RightButton)aparam = 1; else aparam = 2; } if(!callFunction(this,"mouseReleaseEvent",retv,new KviKvsVariantList(new KviKvsVariant((kvs_int_t)aparam),new KviKvsVariant((kvs_int_t)((TQMouseEvent *)e)->pos().x()),new KviKvsVariant((kvs_int_t)((TQMouseEvent *)e)->pos().y()) ))) brokenhandler = true; // ignore results of a broken event handler break; case TQEvent::MouseButtonDblClick: - if(( (TQMouseEvent *)e)->button() & Qt::LeftButton)aparam = 0; + if(( (TQMouseEvent *)e)->button() & TQt::LeftButton)aparam = 0; else { - if(((TQMouseEvent *)e)->button() & Qt::RightButton)aparam = 1; + if(((TQMouseEvent *)e)->button() & TQt::RightButton)aparam = 1; else aparam = 2; } if(!callFunction(this,"mouseDoubleClickEvent",retv,new KviKvsVariantList(new KviKvsVariant((kvs_int_t)aparam),new KviKvsVariant((kvs_int_t)((TQMouseEvent *)e)->pos().x()),new KviKvsVariant((kvs_int_t)((TQMouseEvent *)e)->pos().y()) @@ -753,13 +753,13 @@ bool KviKvsObject_widget::eventFilter(TQObject *o,TQEvent *e) break; case TQEvent::MouseMove: - if( (((TQMouseEvent *)e)->state()) & Qt::LeftButton) aparam = 0; + if( (((TQMouseEvent *)e)->state()) & TQt::LeftButton) aparam = 0; else { - if(((TQMouseEvent *)e)->state() & Qt::RightButton)aparam = 1; + if(((TQMouseEvent *)e)->state() & TQt::RightButton)aparam = 1; else { - if(((TQMouseEvent *)e)->state() & Qt::MidButton)aparam = 2; + if(((TQMouseEvent *)e)->state() & TQt::MidButton)aparam = 2; else aparam = -1; } } |