diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-09 10:36:57 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-09 17:21:24 +0900 |
commit | 7367a616169a4ec8b35b5a993852c336aaeec25b (patch) | |
tree | 2fd2b837621af51718278a66c8d5151fec1d77e8 /knewsticker/newsscroller.cpp | |
parent | a14ec34f576f49ee1abf4844883fb9e3af69eeb3 (diff) | |
download | tdenetwork-7367a616169a4ec8b35b5a993852c336aaeec25b.tar.gz tdenetwork-7367a616169a4ec8b35b5a993852c336aaeec25b.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit b53c83209a6b927b27600899a780db1efc985ecb)
Diffstat (limited to 'knewsticker/newsscroller.cpp')
-rw-r--r-- | knewsticker/newsscroller.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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(); |