diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-06 11:38:51 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-07 11:19:13 +0900 |
commit | bcee6c3261309f13cf2ca0ad1d9ddc8ee5624d7a (patch) | |
tree | 0c81e36cc908785f3f54b84c01949715558c53e6 /kmplot | |
parent | e25be387c170de2528fc2134604ffab9ac26a931 (diff) | |
download | tdeedu-bcee6c3261309f13cf2ca0ad1d9ddc8ee5624d7a.tar.gz tdeedu-bcee6c3261309f13cf2ca0ad1d9ddc8ee5624d7a.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit c8e3d1d47df0efdc66fe6b96f8b1c78a2cb18ee6)
Diffstat (limited to 'kmplot')
-rw-r--r-- | kmplot/kmplot/View.cpp | 26 | ||||
-rw-r--r-- | kmplot/kmplot/ksliderwindow.cpp | 2 |
2 files changed, 14 insertions, 14 deletions
diff --git a/kmplot/kmplot/View.cpp b/kmplot/kmplot/View.cpp index 6c60fd50..61045a62 100644 --- a/kmplot/kmplot/View.cpp +++ b/kmplot/kmplot/View.cpp @@ -231,7 +231,7 @@ void View::plotfkt(Ufkt *ufkt, TQPainter *pDC) double x, y, dmin, dmax; TQPoint p1, p2; TQPen pen; - pen.setCapStyle(Qt::RoundCap); + pen.setCapStyle(TQt::RoundCap); iy=0; y=0.0; @@ -605,7 +605,7 @@ void View::mouseMoveEvent(TQMouseEvent *e) { if ( isDrawing) return; - if (zoom_mode==4 && e->stateAfter() != Qt::NoButton) + if (zoom_mode==4 && e->stateAfter() != TQt::NoButton) { TQPainter p; p.begin(this); @@ -616,7 +616,7 @@ void View::mouseMoveEvent(TQMouseEvent *e) TQPen pen(TQt::white, 1, TQt::DotLine); painter.setRasterOp (TQt::XorROP); painter.setPen(pen); - painter.setBackgroundMode (Qt::OpaqueMode); + painter.setBackgroundMode (TQt::OpaqueMode); painter.setBackgroundColor (TQt::blue); painter.drawRect(rectangle_point.x(), rectangle_point.y(), e->pos().x()-rectangle_point.x(), e->pos().y()-rectangle_point.y()); @@ -639,7 +639,7 @@ void View::mouseMoveEvent(TQMouseEvent *e) csflg=0; } - if(area.contains(e->pos()) || (e->button()==Qt::LeftButton && e->state()==Qt::LeftButton && csxpos>xmin && csxpos<xmax)) + if(area.contains(e->pos()) || (e->button()==TQt::LeftButton && e->state()==TQt::LeftButton && csxpos>xmin && csxpos<xmax)) { TQPoint ptd, ptl; TQPainter DC; @@ -862,7 +862,7 @@ void View::mousePressEvent(TQMouseEvent *e) } double const g=tlgy*double(xmax-xmin)/(2*double(ymax-ymin)); - if( !m_readonly && e->button()==Qt::RightButton) //clicking with the right mouse button + if( !m_readonly && e->button()==TQt::RightButton) //clicking with the right mouse button { char function_type; for( TQValueVector<Ufkt>::iterator it = m_parser->ufkt.begin(); it != m_parser->ufkt.end(); ++it) @@ -969,7 +969,7 @@ void View::mousePressEvent(TQMouseEvent *e) } return; } - if(e->button()!=Qt::LeftButton) return ; + if(e->button()!=TQt::LeftButton) return ; if(csmode>=0) //disable trace mode if trace mode is enable { csmode=-1; @@ -1471,9 +1471,9 @@ void View::keyPressEvent( TQKeyEvent * e) TQMouseEvent *event; if (e->key() == TQt::Key_Left ) - event = new TQMouseEvent(TQEvent::MouseMove,TQPoint(fcx-1,fcy-1),Qt::LeftButton,Qt::LeftButton); + event = new TQMouseEvent(TQEvent::MouseMove,TQPoint(fcx-1,fcy-1),TQt::LeftButton,TQt::LeftButton); else if (e->key() == TQt::Key_Right ) - event = new TQMouseEvent(TQEvent::MouseMove,TQPoint(fcx+1,fcy+1),Qt::LeftButton,Qt::LeftButton); + event = new TQMouseEvent(TQEvent::MouseMove,TQPoint(fcx+1,fcy+1),TQt::LeftButton,TQt::LeftButton); else if (e->key() == TQt::Key_Up || e->key() == TQt::Key_Down) //switch graph in trace mode { TQValueVector<Ufkt>::iterator it = &m_parser->ufkt[m_parser->ixValue(csmode)]; @@ -1573,18 +1573,18 @@ void View::keyPressEvent( TQKeyEvent * e) break; } } - event = new TQMouseEvent(TQEvent::MouseMove,TQPoint(fcx,fcy),Qt::LeftButton,Qt::LeftButton); + event = new TQMouseEvent(TQEvent::MouseMove,TQPoint(fcx,fcy),TQt::LeftButton,TQt::LeftButton); } else if ( e->key() == TQt::Key_Space ) { - event = new TQMouseEvent(TQEvent::MouseButtonPress,TQCursor::pos(),Qt::RightButton,Qt::RightButton); + event = new TQMouseEvent(TQEvent::MouseButtonPress,TQCursor::pos(),TQt::RightButton,TQt::RightButton); mousePressEvent(event); delete event; return; } else { - event = new TQMouseEvent(TQEvent::MouseButtonPress,TQPoint(fcx,fcy),Qt::LeftButton,Qt::LeftButton); + event = new TQMouseEvent(TQEvent::MouseButtonPress,TQPoint(fcx,fcy),TQt::LeftButton,TQt::LeftButton); mousePressEvent(event); delete event; return; @@ -1876,7 +1876,7 @@ void View::mnuHide_clicked() if ( !ufkt->f_mode && !ufkt->f1_mode && !ufkt->f2_mode) //all graphs for the function are hidden { csmode=-1; - TQMouseEvent *event = new TQMouseEvent(TQMouseEvent::KeyPress,TQCursor::pos(),Qt::LeftButton,Qt::LeftButton); + TQMouseEvent *event = new TQMouseEvent(TQMouseEvent::KeyPress,TQCursor::pos(),TQt::LeftButton,TQt::LeftButton); mousePressEvent(event); //leave trace mode delete event; return; @@ -1904,7 +1904,7 @@ void View::mnuRemove_clicked() if (csmode!=-1) // if trace mode is enabled { csmode=-1; - TQMouseEvent *event = new TQMouseEvent(TQMouseEvent::KeyPress,TQCursor::pos(),Qt::LeftButton,Qt::LeftButton); + TQMouseEvent *event = new TQMouseEvent(TQMouseEvent::KeyPress,TQCursor::pos(),TQt::LeftButton,TQt::LeftButton); mousePressEvent(event); //leave trace mode delete event; } diff --git a/kmplot/kmplot/ksliderwindow.cpp b/kmplot/kmplot/ksliderwindow.cpp index b2921bbd..0fadae1c 100644 --- a/kmplot/kmplot/ksliderwindow.cpp +++ b/kmplot/kmplot/ksliderwindow.cpp @@ -82,7 +82,7 @@ bool KSliderWindow::eventFilter( TQObject *obj, TQEvent *ev ) if (ev->type() == TQEvent::MouseButtonPress) { TQMouseEvent *e = (TQMouseEvent *)ev; - if (e->button() != Qt::RightButton) + if (e->button() != TQt::RightButton) return SliderWindow::eventFilter( obj, ev ); m_popupmenu->exec(TQCursor::pos()); return true; |