diff options
Diffstat (limited to 'ldmicro/ldmicro.cpp')
-rw-r--r-- | ldmicro/ldmicro.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ldmicro/ldmicro.cpp b/ldmicro/ldmicro.cpp index ee11faa..fbf2b3d 100644 --- a/ldmicro/ldmicro.cpp +++ b/ldmicro/ldmicro.cpp @@ -34,10 +34,6 @@ #include <iomanip> #include <iostream> #include <QPushButton> -// #include <qapplication> - -using namespace std; - HINSTANCE Instance; QApplication* LDmicroApp; @@ -940,7 +936,7 @@ void PaintWidget :: mouseDoubleClickEvent(QMouseEvent* event) { QRect Rect; Rect = DrawWindow->rect(); - QPoint wy = DrawWindow->mapFrom(MainWindow, event->pos()); + QPoint wy = event->pos(); if((wy.x() <= 0) || (wy.y() <= 0)) return; |