|
|
@ -268,7 +268,7 @@ void CHTMLReadDisplay::tdehtmlMousePressEvent( tdehtml::MousePressEvent* event )
|
|
|
|
m_dndData.mousePressed = false;
|
|
|
|
m_dndData.mousePressed = false;
|
|
|
|
m_dndData.isDragging = false;
|
|
|
|
m_dndData.isDragging = false;
|
|
|
|
|
|
|
|
|
|
|
|
if (event->qmouseEvent()->button() == Qt::RightButton) {
|
|
|
|
if (event->qmouseEvent()->button() == TQt::RightButton) {
|
|
|
|
DOM::Node tmpNode = event->innerNode();
|
|
|
|
DOM::Node tmpNode = event->innerNode();
|
|
|
|
DOM::Node attr;
|
|
|
|
DOM::Node attr;
|
|
|
|
m_nodeInfo[CDisplay::Lemma] = TQString();
|
|
|
|
m_nodeInfo[CDisplay::Lemma] = TQString();
|
|
|
@ -287,7 +287,7 @@ void CHTMLReadDisplay::tdehtmlMousePressEvent( tdehtml::MousePressEvent* event )
|
|
|
|
|
|
|
|
|
|
|
|
setActiveAnchor( event->url().string() );
|
|
|
|
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.node = event->innerNode();
|
|
|
|
m_dndData.anchor = event->url();
|
|
|
|
m_dndData.anchor = event->url();
|
|
|
|
m_dndData.mousePressed = true;
|
|
|
|
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 */
|
|
|
|
/** Reimplementation for our drag&drop system. Also needed for the mouse tracking */
|
|
|
|
void CHTMLReadDisplay::tdehtmlMouseMoveEvent( tdehtml::MouseMoveEvent* e ) {
|
|
|
|
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();
|
|
|
|
const int delay = TDEGlobalSettings::dndEventDelay();
|
|
|
|
TQPoint newPos = TQPoint(e->x(), e->y());
|
|
|
|
TQPoint newPos = TQPoint(e->x(), e->y());
|
|
|
|
|
|
|
|
|
|
|
@ -338,7 +338,7 @@ void CHTMLReadDisplay::tdehtmlMouseMoveEvent( tdehtml::MouseMoveEvent* e ) {
|
|
|
|
m_dndData.mousePressed = false;
|
|
|
|
m_dndData.mousePressed = false;
|
|
|
|
|
|
|
|
|
|
|
|
//first make a virtual mouse click to end the selection, it it's in progress
|
|
|
|
//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);
|
|
|
|
TDEApplication::sendEvent(view()->viewport(), &e);
|
|
|
|
d->drag();
|
|
|
|
d->drag();
|
|
|
|
}
|
|
|
|
}
|
|
|
|