Skip to content

Commit

Permalink
refs #6301. Make widgets trasparent to mouse position.
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenArnold committed Dec 11, 2012
1 parent 89c28f2 commit 64ebf61
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Code/Mantid/MantidQt/SliceViewer/src/PeakOverlayCross.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <qwt_scale_div.h>
#include <qpainter.h>
#include <QPen>
#include <QMouseEvent>

using namespace Mantid::Kernel;

Expand Down Expand Up @@ -31,6 +32,8 @@ namespace SliceViewer
setAttribute(Qt::WA_NoMousePropagation, false);
this->setVisible(true);
setUpdatesEnabled(true);

setAttribute(Qt::WA_TransparentForMouseEvents);
}

//----------------------------------------------------------------------------------------------
Expand Down
3 changes: 3 additions & 0 deletions Code/Mantid/MantidQt/SliceViewer/src/PeakOverlaySphere.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <qwt_scale_div.h>
#include <qpainter.h>
#include <QPen>
#include <QMouseEvent>

using namespace Mantid::Kernel;

Expand All @@ -30,6 +31,8 @@ namespace SliceViewer
setAttribute(Qt::WA_NoMousePropagation, false);
this->setVisible(true);
setUpdatesEnabled(true);

setAttribute(Qt::WA_TransparentForMouseEvents);
}

//----------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 64ebf61

Please sign in to comment.