diff options
author | akshay-c | 2019-05-06 10:36:48 +0530 |
---|---|---|
committer | akshay-c | 2019-05-06 10:36:48 +0530 |
commit | 183053f2d67a92694cd25a4294af98055e4369e7 (patch) | |
tree | 6cf548c8f38bd17b59c1e7ee10a613978172d3d9 /ldmicro/ldmicro.cpp | |
parent | 52b93dc4228459bd7e1204f80d983a3b29b32f1d (diff) | |
download | LDmicroQt-183053f2d67a92694cd25a4294af98055e4369e7.tar.gz LDmicroQt-183053f2d67a92694cd25a4294af98055e4369e7.tar.bz2 LDmicroQt-183053f2d67a92694cd25a4294af98055e4369e7.zip |
Fixed doubleclickevent on DrawWindow and removed namespaces
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; |