diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-06 11:29:21 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-07 09:55:39 +0900 |
| commit | 65a06ba9047c5b3bbe201d2e453f30868bd3fad3 (patch) | |
| tree | 4ad717fdb26890dbcd584eec0e6d4e5019689d58 /kdat/ktreeview.cpp | |
| parent | 52bc9d0886f26f484d140b3244136f43c8ae07ea (diff) | |
| download | tdeadmin-65a06ba9047c5b3bbe201d2e453f30868bd3fad3.tar.gz tdeadmin-65a06ba9047c5b3bbe201d2e453f30868bd3fad3.zip | |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kdat/ktreeview.cpp')
| -rw-r--r-- | kdat/ktreeview.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kdat/ktreeview.cpp b/kdat/ktreeview.cpp index 24712d4..f3a98ce 100644 --- a/kdat/ktreeview.cpp +++ b/kdat/ktreeview.cpp @@ -350,7 +350,7 @@ void KTreeViewItem::paintHighlight(TQPainter* p, int indent, const TQColorGroup& textRect.setCoords(l - 1, t - 1, r + 1, b + 1); p->setPen(TQPen(TQt::yellow, 0, TQt::DotLine)); p->setBackgroundColor(fc); - p->setBackgroundMode(Qt::OpaqueMode); + p->setBackgroundMode(TQt::OpaqueMode); p->drawRect(textRect); textRect.setCoords(l - 2, t - 2, r + 2, b + 2); p->setPen(fc); @@ -1701,7 +1701,7 @@ void KTreeView::mousePressEvent(TQMouseEvent *e) { // first: check which button was pressed - if (e->button() == Qt::MidButton) + if (e->button() == TQt::MidButton) { // RB: the MMB is hardcoded to the "rubberband" scroll mode if (!rubberband_mode) { @@ -1709,7 +1709,7 @@ void KTreeView::mousePressEvent(TQMouseEvent *e) } return; } - else if ( ( rubberband_mode ) && ( e->button() != Qt::RightButton ) ) + else if ( ( rubberband_mode ) && ( e->button() != TQt::RightButton ) ) { // another button was pressed while rubberbanding, stop the move. // RB: if we allow other buttons while rubberbanding the tree can expand @@ -1751,7 +1751,7 @@ void KTreeView::mousePressEvent(TQMouseEvent *e) // hit item (to show info on the file/dir label clicked) else if (item->boundingRect(indentation(item)).contains(cellCoord)) { setCurrentItem(itemClicked); // highlight item - if ( e->button() == Qt::RightButton ) { + if ( e->button() == TQt::RightButton ) { emit popupMenu( itemClicked, mapToGlobal( TQPoint( e->pos().x(), e->pos().y() ) ) ); } } @@ -1761,7 +1761,7 @@ void KTreeView::mousePressEvent(TQMouseEvent *e) void KTreeView::mouseReleaseEvent(TQMouseEvent *e) { /* if it's the MMB end rubberbanding */ - if (rubberband_mode && e->button()==Qt::MidButton) + if (rubberband_mode && e->button()==TQt::MidButton) { end_rubberband(); } |
