Replace Qt with TQt

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 9f36a8ff1a)
r14.1.x
Michele Calgaro 7 months ago
parent a2dacecf90
commit 9e55e6ee9c
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -144,7 +144,7 @@ void k9MenuEditor::updateCursor(TQMouseEvent *e) {
void k9MenuEditor::contentsMouseMoveEvent(TQMouseEvent* e) { void k9MenuEditor::contentsMouseMoveEvent(TQMouseEvent* e) {
updateCursor(e); updateCursor(e);
if ( moving && (e->state() & Qt::LeftButton ==Qt::LeftButton) ) { if ( moving && (e->state() & TQt::LeftButton ==TQt::LeftButton) ) {
if (moving->rtti() !=TQCanvasItem::Rtti_Text || moving==m_menu->getText()) { if (moving->rtti() !=TQCanvasItem::Rtti_Text || moving==m_menu->getText()) {
TQPoint p = inverseWorldMatrix().map(e->pos()); TQPoint p = inverseWorldMatrix().map(e->pos());
int offsetX=p.x() - moving_start.x(); int offsetX=p.x() - moving_start.x();
@ -173,7 +173,7 @@ void k9MenuEditor::contentsMouseMoveEvent(TQMouseEvent* e) {
emit m_menu->updateTextPos(TQPoint(moving->x(),moving->y())); emit m_menu->updateTextPos(TQPoint(moving->x(),moving->y()));
canvas()->update(); canvas()->update();
} }
} else if ((e->state() & Qt::LeftButton) ==Qt::LeftButton ) { } else if ((e->state() & TQt::LeftButton) ==TQt::LeftButton ) {
m_canvasSelection->hide(); m_canvasSelection->hide();
canvas()->update(); canvas()->update();
TQPoint p = inverseWorldMatrix().map(e->pos()); TQPoint p = inverseWorldMatrix().map(e->pos());

Loading…
Cancel
Save