Replace Qt with TQt

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/22/head
Michele Calgaro 1 year ago
parent 8efa9efcb3
commit 9f36a8ff1a
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -144,7 +144,7 @@ void k9MenuEditor::updateCursor(TQMouseEvent *e) {
void k9MenuEditor::contentsMouseMoveEvent(TQMouseEvent* 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()) {
TQPoint p = inverseWorldMatrix().map(e->pos());
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()));
canvas()->update();
}
} else if ((e->state() & Qt::LeftButton) ==Qt::LeftButton ) {
} else if ((e->state() & TQt::LeftButton) ==TQt::LeftButton ) {
m_canvasSelection->hide();
canvas()->update();
TQPoint p = inverseWorldMatrix().map(e->pos());

Loading…
Cancel
Save