summaryrefslogtreecommitdiffstats
path: root/knewsticker
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-09 10:36:57 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-09 10:36:57 +0900
commitb53c83209a6b927b27600899a780db1efc985ecb (patch)
tree5669b200cf24a8e47338ab2054daf3a58264925f /knewsticker
parent82b0c5074d73953b9d00fa7b8c17115bb4bc900e (diff)
downloadtdenetwork-b53c83209a6b927b27600899a780db1efc985ecb.tar.gz
tdenetwork-b53c83209a6b927b27600899a780db1efc985ecb.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'knewsticker')
-rw-r--r--knewsticker/knewsticker.cpp12
-rw-r--r--knewsticker/newsscroller.cpp8
2 files changed, 10 insertions, 10 deletions
diff --git a/knewsticker/knewsticker.cpp b/knewsticker/knewsticker.cpp
index 49344eaa..9fb5a2e6 100644
--- a/knewsticker/knewsticker.cpp
+++ b/knewsticker/knewsticker.cpp
@@ -224,7 +224,7 @@ void KNewsTicker::slotNewsSourceFailed(const NewsSourceBase::Ptr &ns)
void KNewsTicker::mousePressEvent(TQMouseEvent *e)
{
- if (e->button() == Qt::RightButton)
+ if (e->button() == TQt::RightButton)
slotOpenContextMenu();
}
@@ -261,7 +261,7 @@ void KNewsTicker::positionChange(Position)
TQBoxLayout *layout;
- if (orientation() ==Qt::Horizontal)
+ if (orientation() ==TQt::Horizontal)
layout = new TQHBoxLayout(this);
else
layout = new TQVBoxLayout(this);
@@ -387,16 +387,16 @@ void KNewsTicker::setHighlightedColor(const TQColor &highlightedColor)
void KNewsTicker::setupArrowButton()
{
- Qt::ArrowType at;
+ TQt::ArrowType at;
- if (orientation() ==Qt::Horizontal) {
+ if (orientation() ==TQt::Horizontal) {
m_arrowButton->setFixedWidth(12);
m_arrowButton->setMaximumHeight(128);
- at = (position() == KPanelApplet::pTop ? Qt::DownArrow : Qt::UpArrow);
+ at = (position() == KPanelApplet::pTop ? TQt::DownArrow : TQt::UpArrow);
} else {
m_arrowButton->setMaximumWidth(128);
m_arrowButton->setFixedHeight(12);
- at = (position() == KPanelApplet::pLeft ? Qt::RightArrow : Qt::LeftArrow);
+ at = (position() == KPanelApplet::pLeft ? TQt::RightArrow : TQt::LeftArrow);
}
m_arrowButton->setArrowType(at);
}
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();