From 7367a616169a4ec8b35b5a993852c336aaeec25b Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 9 Nov 2023 10:36:57 +0900 Subject: Replace Qt with TQt Signed-off-by: Michele Calgaro (cherry picked from commit b53c83209a6b927b27600899a780db1efc985ecb) --- knewsticker/newsscroller.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'knewsticker/newsscroller.cpp') diff --git a/knewsticker/newsscroller.cpp b/knewsticker/newsscroller.cpp index 4c5f3861..c9df6429 100644 --- a/knewsticker/newsscroller.cpp +++ b/knewsticker/newsscroller.cpp @@ -270,7 +270,7 @@ void NewsScroller::enterEvent(TQEvent *) void NewsScroller::mousePressEvent(TQMouseEvent *e) { - if (e->button() == Qt::LeftButton || e->button() == Qt::MidButton) { + if (e->button() == TQt::LeftButton || e->button() == TQt::MidButton) { m_dragPos = e->pos(); if (m_activeHeadline) @@ -280,14 +280,14 @@ void NewsScroller::mousePressEvent(TQMouseEvent *e) void NewsScroller::mouseReleaseEvent(TQMouseEvent *e) { - if ((e->button() == Qt::LeftButton || e->button() == Qt::MidButton) + if ((e->button() == TQt::LeftButton || e->button() == TQt::MidButton) && m_activeHeadline && m_activeHeadline->article()->headline() == m_tempHeadline && !m_mouseDrag) { m_activeHeadline->article()->open(); m_tempHeadline = TQString(); } - if (e->button() == Qt::RightButton) + if (e->button() == TQt::RightButton) emit(contextMenu()); if (m_mouseDrag) { @@ -307,7 +307,7 @@ void NewsScroller::mouseMoveEvent(TQMouseEvent *e) dragDistance = TQABS(e->x() - m_dragPos.x()); else dragDistance = TQABS(e->y() - m_dragPos.y()); - m_mouseDrag = (e->state() & Qt::LeftButton != 0) && + m_mouseDrag = (e->state() & TQt::LeftButton != 0) && dragDistance >= TDEGlobal::config()->readNumEntry("StartDragDist", TDEApplication::startDragDistance()); if (m_mouseDrag) // Stop the scroller if we just started a drag. m_scrollTimer->stop(); -- cgit v1.2.1