From 65a06ba9047c5b3bbe201d2e453f30868bd3fad3 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 6 Nov 2023 11:29:21 +0900 Subject: Replace Qt with TQt Signed-off-by: Michele Calgaro --- kdat/KDatMainWindow.cpp | 4 ++-- kdat/ktreeview.cpp | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'kdat') diff --git a/kdat/KDatMainWindow.cpp b/kdat/KDatMainWindow.cpp index 86a4fef..e89a83f 100644 --- a/kdat/KDatMainWindow.cpp +++ b/kdat/KDatMainWindow.cpp @@ -173,9 +173,9 @@ KDatMainWindow::KDatMainWindow() _statusBar->insertItem( i18n( "Ready." ), 0 ); #ifdef KDAT_HORIZONTAL_LAYOUT /* 2002-01-20 LEW */ - _panner = new TQSplitter( Qt::Horizontal, this, "panner"); + _panner = new TQSplitter( TQt::Horizontal, this, "panner"); #else - _panner = new TQSplitter( Qt::Vertical, this, "panner"); + _panner = new TQSplitter( TQt::Vertical, this, "panner"); #endif /* KDAT_HORIZONTAL_LAYOUT */ // Create info viewers. 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(); } -- cgit v1.2.1