diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-09 10:37:12 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-10 09:18:39 +0900 |
commit | 7a712e6185fe1086345a4ad970291444548f60a2 (patch) | |
tree | 6dd0b17b51cc004a16901d02e791fb031d927d51 /kgantt/kgantt/xQGanttBarViewPort_Events.cpp | |
parent | 8a66634debeb3242ec542056469b6e07d5427968 (diff) | |
download | tdepim-7a712e6185fe1086345a4ad970291444548f60a2.tar.gz tdepim-7a712e6185fe1086345a4ad970291444548f60a2.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 98876ba8c52c0fc2f38c258476bc9637f055d576)
Diffstat (limited to 'kgantt/kgantt/xQGanttBarViewPort_Events.cpp')
-rw-r--r-- | kgantt/kgantt/xQGanttBarViewPort_Events.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kgantt/kgantt/xQGanttBarViewPort_Events.cpp b/kgantt/kgantt/xQGanttBarViewPort_Events.cpp index 52f017e2..94b59726 100644 --- a/kgantt/kgantt/xQGanttBarViewPort_Events.cpp +++ b/kgantt/kgantt/xQGanttBarViewPort_Events.cpp @@ -43,7 +43,7 @@ xQGanttBarViewPort::mousePressEvent(TQMouseEvent* e) _itemTextEdit->hide(); // right mousebutton & control -> popup menu - if(e->button() == Qt::RightButton && e->state() == ControlButton ) { + if(e->button() == TQt::RightButton && e->state() == ControlButton ) { _menu->popup(e->globalPos()); return; } @@ -64,7 +64,7 @@ xQGanttBarViewPort::mousePressEvent(TQMouseEvent* e) /* * edit text */ - if(e->button() == Qt::MidButton && _mode == Select) { + if(e->button() == TQt::MidButton && _mode == Select) { xTQTaskPosition* tp = _gItemList.find(_currentItem); TQPainter p(this); @@ -91,7 +91,7 @@ xQGanttBarViewPort::mousePressEvent(TQMouseEvent* e) /* * open/close item, move start, end, item */ - if(e->button() == Qt::LeftButton && _mode == Select) { + if(e->button() == TQt::LeftButton && _mode == Select) { _timediff = 0; @@ -210,21 +210,21 @@ xQGanttBarViewPort::mouseReleaseEvent(TQMouseEvent* e) if(!_Mousemoved) { - if(e->button() == Qt::LeftButton) + if(e->button() == TQt::LeftButton) zoom(1.4, e->x(), e->y() ); - if(e->button() == Qt::RightButton) + if(e->button() == TQt::RightButton) zoom(0.7, e->x(), e->y() ); - if(e->button() == Qt::MidButton) + if(e->button() == TQt::MidButton) zoomAll(); } else { - if(_currentMButton == Qt::LeftButton) { + if(_currentMButton == TQt::LeftButton) { TQPainter p(this); TQPen pen(DashLine); @@ -284,7 +284,7 @@ xQGanttBarViewPort::mouseMoveEvent(TQMouseEvent* e) case Select: { - if(_currentMButton == Qt::LeftButton && _currentItem) { + if(_currentMButton == TQt::LeftButton && _currentItem) { TQPainter p(this); p.setRasterOp(XorROP); @@ -442,7 +442,7 @@ xQGanttBarViewPort::mouseMoveEvent(TQMouseEvent* e) case Zoom: { - if(_currentMButton == Qt::LeftButton) { + if(_currentMButton == TQt::LeftButton) { static TQString strpos; |