Commit 79b39f6e authored by Clinton Stimpson's avatar Clinton Stimpson
Browse files

BUG: Ignore scrollbars for now when recording tests. Support for them will

      probably be done differently.
parent 6edbb816
...@@ -32,6 +32,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ...@@ -32,6 +32,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "pqAbstractSliderEventTranslator.h" #include "pqAbstractSliderEventTranslator.h"
#include <QScrollBar>
#include <QAbstractSlider> #include <QAbstractSlider>
#include <QEvent> #include <QEvent>
...@@ -44,7 +45,7 @@ pqAbstractSliderEventTranslator::pqAbstractSliderEventTranslator(QObject* p) ...@@ -44,7 +45,7 @@ pqAbstractSliderEventTranslator::pqAbstractSliderEventTranslator(QObject* p)
bool pqAbstractSliderEventTranslator::translateEvent(QObject* Object, QEvent* Event, bool& /*Error*/) bool pqAbstractSliderEventTranslator::translateEvent(QObject* Object, QEvent* Event, bool& /*Error*/)
{ {
QAbstractSlider* const object = qobject_cast<QAbstractSlider*>(Object); QAbstractSlider* const object = qobject_cast<QAbstractSlider*>(Object);
if(!object) if(!object || qobject_cast<QScrollBar*>(object))
return false; return false;
switch(Event->type()) switch(Event->type())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment