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