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