summaryrefslogtreecommitdiff
path: root/ldmicro/ldmicro.cpp
diff options
context:
space:
mode:
authorakshay-c2019-05-06 10:36:48 +0530
committerakshay-c2019-05-06 10:36:48 +0530
commit183053f2d67a92694cd25a4294af98055e4369e7 (patch)
tree6cf548c8f38bd17b59c1e7ee10a613978172d3d9 /ldmicro/ldmicro.cpp
parent52b93dc4228459bd7e1204f80d983a3b29b32f1d (diff)
downloadLDmicroQt-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.cpp6
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;