Replace Qt with TQt

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 5b7fb8e3c9)
r14.1.x
Michele Calgaro 1 year ago
parent 7415013cd7
commit 7520534184
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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);

@ -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();

@ -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();
}

Loading…
Cancel
Save