From 5b7fb8e3c9b86c1e6394f800c9126d8e8d0de34a Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 4 Nov 2023 23:08:23 +0900 Subject: [PATCH] Replace Qt with TQt Signed-off-by: Michele Calgaro --- bibletime/bibletime_init.cpp | 2 +- bibletime/frontend/cmdiarea.h | 2 +- bibletime/frontend/display/chtmlreaddisplay.cpp | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bibletime/bibletime_init.cpp b/bibletime/bibletime_init.cpp index f293ba0..cfe05e3 100644 --- a/bibletime/bibletime_init.cpp +++ b/bibletime/bibletime_init.cpp @@ -78,7 +78,7 @@ void BibleTime::initView() { m_mainSplitter->setChildrenCollapsible(false); setCentralWidget(m_mainSplitter); - m_leftPaneSplitter = new TQSplitter(Qt::Vertical, m_mainSplitter); + m_leftPaneSplitter = new TQSplitter(TQt::Vertical, m_mainSplitter); m_leftPaneSplitter->setChildrenCollapsible(false); TQVBox* vBox = new TQVBox(m_leftPaneSplitter); diff --git a/bibletime/frontend/cmdiarea.h b/bibletime/frontend/cmdiarea.h index a252bca..776557d 100644 --- a/bibletime/frontend/cmdiarea.h +++ b/bibletime/frontend/cmdiarea.h @@ -85,7 +85,7 @@ public slots: * Also necessary for autoTile feature */ void myTileVertical(); - /**Qt::Horizontal tile function + /** Horizontal tile function * This function was taken from TQt's MDI example. */ void myTileHorizontal(); diff --git a/bibletime/frontend/display/chtmlreaddisplay.cpp b/bibletime/frontend/display/chtmlreaddisplay.cpp index f068c32..1841eaa 100644 --- a/bibletime/frontend/display/chtmlreaddisplay.cpp +++ b/bibletime/frontend/display/chtmlreaddisplay.cpp @@ -268,7 +268,7 @@ void CHTMLReadDisplay::tdehtmlMousePressEvent( tdehtml::MousePressEvent* event ) m_dndData.mousePressed = false; m_dndData.isDragging = false; - if (event->qmouseEvent()->button() == Qt::RightButton) { + if (event->qmouseEvent()->button() == TQt::RightButton) { DOM::Node tmpNode = event->innerNode(); DOM::Node attr; m_nodeInfo[CDisplay::Lemma] = TQString(); @@ -287,7 +287,7 @@ void CHTMLReadDisplay::tdehtmlMousePressEvent( tdehtml::MousePressEvent* event ) setActiveAnchor( event->url().string() ); } - else if (event->qmouseEvent()->button() == Qt::LeftButton) { + else if (event->qmouseEvent()->button() == TQt::LeftButton) { m_dndData.node = event->innerNode(); m_dndData.anchor = event->url(); m_dndData.mousePressed = true; @@ -305,7 +305,7 @@ void CHTMLReadDisplay::tdehtmlMousePressEvent( tdehtml::MousePressEvent* event ) /** Reimplementation for our drag&drop system. Also needed for the mouse tracking */ void CHTMLReadDisplay::tdehtmlMouseMoveEvent( tdehtml::MouseMoveEvent* e ) { - if( e->qmouseEvent()->state() & Qt::LeftButton == Qt::LeftButton) { //left mouse button pressed + if( e->qmouseEvent()->state() & TQt::LeftButton == TQt::LeftButton) { //left mouse button pressed const int delay = TDEGlobalSettings::dndEventDelay(); TQPoint newPos = TQPoint(e->x(), e->y()); @@ -338,7 +338,7 @@ void CHTMLReadDisplay::tdehtmlMouseMoveEvent( tdehtml::MouseMoveEvent* e ) { m_dndData.mousePressed = false; //first make a virtual mouse click to end the selection, it it's in progress - TQMouseEvent e(TQEvent::MouseButtonRelease, TQPoint(0,0), Qt::LeftButton, Qt::LeftButton); + TQMouseEvent e(TQEvent::MouseButtonRelease, TQPoint(0,0), TQt::LeftButton, TQt::LeftButton); TDEApplication::sendEvent(view()->viewport(), &e); d->drag(); }