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 22:47:48 +0900 |
| commit | 9577f4de07539fb2464a1499d45b25993c5cea46 (patch) | |
| tree | 61e334870fb8bbdb96a67452e974b13e09cb0038 /src/modules/objects/class_widget.cpp | |
| parent | 87c77000cf1838c2695e7944d4f205ffb9fb44b4 (diff) | |
| download | kvirc-9577f4de07539fb2464a1499d45b25993c5cea46.tar.gz kvirc-9577f4de07539fb2464a1499d45b25993c5cea46.zip | |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
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; } } |
