Fix -Woverloaded-virtual warning in custom event translator

This commit fixes warning like one reported below occuring when imlementing
custom event translators:


```
In file included from /home/jcfr/Projects/Slicer/Libs/MRML/Widgets/qMRMLNodeComboBoxEventTranslator.h:28:0,
                 from /home/jcfr/Projects/Slicer/Base/QTGUI/qSlicerApplication.cxx:84:
/home/jcfr/Projects/Slicer-Release/CTK-build/QtTesting/pqWidgetEventTranslator.h:62:16: warning: ‘virtual bool pqWidgetEventTranslator::translateEvent(QObject*, QEvent*, int, bool&)’ was hidden [-Woverloaded-virtual]
   virtual bool translateEvent(QObject* object, QEvent* event, int eventType, bool& error);
                ^
In file included from /home/jcfr/Projects/Slicer/Base/QTGUI/qSlicerApplication.cxx:84:0:
/home/jcfr/Projects/Slicer/Libs/MRML/Widgets/qMRMLNodeComboBoxEventTranslator.h:43:16: warning:   by ‘virtual bool qMRMLNodeComboBoxEventTranslator::translateEvent(QObject*, QEvent*, bool&)’ [-Woverloaded-virtual]
   virtual bool translateEvent(QObject *Object, QEvent *Event, bool &Error);
                ^
```
parent 8f3038e8
......@@ -12,6 +12,7 @@ class TemplateEventTranslator :
public:
TemplateEventTranslator(QObject* parent = 0);
using Superclass::translateEvent;
virtual bool translateEvent(QObject *Object, QEvent *Event, bool &Error);
private slots:
......
......@@ -52,6 +52,7 @@ public:
pq3DViewEventTranslator(const QByteArray& classname, QObject* p=0);
~pq3DViewEventTranslator();
using Superclass::translateEvent;
virtual bool translateEvent(QObject* Object, QEvent* Event, bool& Error);
protected:
......
......@@ -54,7 +54,8 @@ class QTTESTING_EXPORT pqAbstractButtonEventTranslator :
public:
pqAbstractButtonEventTranslator(QObject* p=0);
using Superclass::translateEvent;
virtual bool translateEvent(QObject* Object, QEvent* Event, bool& Error);
protected:
......
......@@ -50,7 +50,8 @@ class QTTESTING_EXPORT pqAbstractItemViewEventTranslator :
public:
pqAbstractItemViewEventTranslator(QObject* p=0);
using Superclass::translateEvent;
virtual bool translateEvent(QObject* Object, QEvent* Event, bool& Error);
protected:
......
......@@ -49,7 +49,8 @@ class QTTESTING_EXPORT pqAbstractSliderEventTranslator :
public:
pqAbstractSliderEventTranslator(QObject* p=0);
using Superclass::translateEvent;
virtual bool translateEvent(QObject* Object, QEvent* Event, bool& Error);
private:
......
......@@ -52,7 +52,8 @@ class QTTESTING_EXPORT pqBasicWidgetEventTranslator :
public:
pqBasicWidgetEventTranslator(QObject* p=0);
~pqBasicWidgetEventTranslator();
using Superclass::translateEvent;
virtual bool translateEvent(QObject* object, QEvent* event, int eventType, bool& error);
protected:
......
......@@ -50,6 +50,7 @@ class QTTESTING_EXPORT pqComboBoxEventTranslator :
public:
pqComboBoxEventTranslator(QObject* p=0);
using Superclass::translateEvent;
virtual bool translateEvent(QObject* Object, QEvent* Event, bool& Error);
private:
......
......@@ -49,7 +49,8 @@ class QTTESTING_EXPORT pqDoubleSpinBoxEventTranslator :
public:
pqDoubleSpinBoxEventTranslator(QObject* p=0);
using Superclass::translateEvent;
virtual bool translateEvent(QObject* Object, QEvent* Event, bool& Error);
private:
......
......@@ -49,7 +49,8 @@ class QTTESTING_EXPORT pqLineEditEventTranslator :
public:
pqLineEditEventTranslator(QObject* p=0);
using Superclass::translateEvent;
virtual bool translateEvent(QObject* object, QEvent* event, int eventType, bool& error);
private:
......
......@@ -52,7 +52,8 @@ class QTTESTING_EXPORT pqMenuEventTranslator :
public:
pqMenuEventTranslator(QObject* p=0);
~pqMenuEventTranslator();
using Superclass::translateEvent;
virtual bool translateEvent(QObject* Object, QEvent* Event, bool& Error);
private:
......
......@@ -54,6 +54,7 @@ public:
pqNativeFileDialogEventTranslator(pqTestUtility* util, QObject* p=0);
~pqNativeFileDialogEventTranslator();
using Superclass::translateEvent;
virtual bool translateEvent(QObject* Object, QEvent* Event, bool& Error);
void record(const QString& command, const QString& args);
......
......@@ -49,7 +49,8 @@ class QTTESTING_EXPORT pqSpinBoxEventTranslator :
public:
pqSpinBoxEventTranslator(QObject* p=0);
using Superclass::translateEvent;
virtual bool translateEvent(QObject* Object, QEvent* Event, bool& Error);
private:
......
......@@ -51,7 +51,8 @@ class QTTESTING_EXPORT pqTabBarEventTranslator :
public:
pqTabBarEventTranslator(QObject* p=0);
using Superclass::translateEvent;
virtual bool translateEvent(QObject* Object, QEvent* Event, bool& Error);
protected slots:
......
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