diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-05 15:23:42 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-05 21:40:56 +0900 |
commit | ae61cb4cbaba4cdc7cf639a616b87d1d312a9248 (patch) | |
tree | 744bc9ffaea4b14c57ae5bdfb8c78cc182110583 /krusader/Panel/krdetailedview.cpp | |
parent | 49c4751bb0b051a361baed5c9edfd20853d11650 (diff) | |
download | krusader-ae61cb4c.tar.gz krusader-ae61cb4c.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 8ff71fdacbedef540bdf67410ab6e8ddd5a52ff0)
Diffstat (limited to 'krusader/Panel/krdetailedview.cpp')
-rw-r--r-- | krusader/Panel/krdetailedview.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/krusader/Panel/krdetailedview.cpp b/krusader/Panel/krdetailedview.cpp index 9238df8..8e16766 100644 --- a/krusader/Panel/krdetailedview.cpp +++ b/krusader/Panel/krdetailedview.cpp @@ -533,7 +533,7 @@ void KrDetailedView::contentsMousePressEvent( TQMouseEvent * e ) { TQListViewItem * oldCurrent = currentItem(); TQListViewItem *newCurrent = itemAt( contentsToViewport( e->pos() ) ); - if (e->button() == Qt::RightButton) + if (e->button() == TQt::RightButton) { if (KrSelectionMode::getSelectionHandler()->rightButtonSelects() || (((e->state() & ShiftButton) || (e->state() & ControlButton))) && KrSelectionMode::getSelectionHandler()->shiftCtrlRightButtonSelects()) @@ -591,7 +591,7 @@ void KrDetailedView::contentsMousePressEvent( TQMouseEvent * e ) { e->accept(); } } - if (e->button() == Qt::LeftButton) + if (e->button() == TQt::LeftButton) { dragStartPos = e->pos(); if (KrSelectionMode::getSelectionHandler()->leftButtonSelects() || @@ -715,7 +715,7 @@ void KrDetailedView::contentsMousePressEvent( TQMouseEvent * e ) { } void KrDetailedView::contentsMouseReleaseEvent( TQMouseEvent * e ) { - if (e->button() == Qt::RightButton) + if (e->button() == TQt::RightButton) contextMenuTimer.stop(); TDEListView::contentsMouseReleaseEvent( e ); @@ -743,11 +743,11 @@ void KrDetailedView::contentsMouseMoveEvent ( TQMouseEvent * e ) { if ( ( singleClicked || renameTimer.isActive() ) && itemAt( contentsToViewport( e->pos() ) ) != clickedItem ) CANCEL_TWO_CLICK_RENAME; if ( dragStartPos != TQPoint( -1, -1 ) && - e->state() & Qt::LeftButton && ( dragStartPos - e->pos() ).manhattanLength() > TQApplication::startDragDistance() ) + e->state() & TQt::LeftButton && ( dragStartPos - e->pos() ).manhattanLength() > TQApplication::startDragDistance() ) startDrag(); if (KrSelectionMode::getSelectionHandler()->rightButtonPreservesSelection() && KrSelectionMode::getSelectionHandler()->rightButtonSelects() - && KrSelectionMode::getSelectionHandler()->showContextMenu() >= 0 && e->state() == Qt::RightButton) + && KrSelectionMode::getSelectionHandler()->showContextMenu() >= 0 && e->state() == TQt::RightButton) { TQListViewItem *newItem = itemAt( contentsToViewport( e->pos() ) ); e->accept(); @@ -1312,7 +1312,7 @@ void KrDetailedView::setNameToMakeCurrent( TQListViewItem * it ) { void KrDetailedView::slotMouseClicked( int button, TQListViewItem * item, const TQPoint&, int ) { pressedItem = 0; // if the signals are emitted, don't emit twice at contentsMouseReleaseEvent - if ( button == Qt::MidButton ) + if ( button == TQt::MidButton ) emit middleButtonClicked( dynamic_cast<KrViewItem *>( item ) ); } @@ -1373,7 +1373,7 @@ bool KrDetailedView::eventFilter( TQObject * watched, TQEvent * e ) } else if( watched == header() ) { - if( e->type() == TQEvent::MouseButtonPress && ((TQMouseEvent *)e )->button() == Qt::RightButton ) + if( e->type() == TQEvent::MouseButtonPress && ((TQMouseEvent *)e )->button() == TQt::RightButton ) { selectColumns(); return TRUE; |