Fix -Woverloaded-virtual warning in custom event player

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

```
In file included from /home/jcfr/Projects/Slicer/Libs/MRML/Widgets/qMRMLCheckableNodeComboBoxEventPlayer.h:25:0,
                 from /home/jcfr/Projects/Slicer/Base/QTGUI/qSlicerApplication.cxx:82:
/home/jcfr/Projects/Slicer-Release/CTK-build/QtTesting/pqWidgetEventPlayer.h:60:16: warning: ‘virtual bool pqWidgetEventPlayer::playEvent(QObject*, const QString&, const QString&, bool&)’ was hidden [-Woverloaded-virtual]
   virtual bool playEvent(
                ^
In file included from /home/jcfr/Projects/Slicer-Release/CTK-build/QtTesting/pqTreeViewEventPlayer.h:35:0,
                 from /home/jcfr/Projects/Slicer/Libs/MRML/Widgets/qMRMLTreeViewEventPlayer.h:25,
                 from /home/jcfr/Projects/Slicer/Base/QTGUI/qSlicerApplication.cxx:85:
/home/jcfr/Projects/Slicer-Release/CTK-build/QtTesting/pqAbstractItemViewEventPlayerBase.h:51:8: warning:   by ‘virtual bool pqAbstractItemViewEventPlayerBase::playEvent(QObject*, const QString&, const QString&, int, bool&)’ [-Woverloaded-virtual]
   bool playEvent(QObject* object, const QString& command,
        ^
```
parent 5308d8e2
......@@ -11,10 +11,12 @@ class TemplateEventPlayer :
public pqWidgetEventPlayer
{
Q_OBJECT
typedef pqWidgetEventPlayer Superclass;
public:
TemplateEventPlayer(QObject* parent = 0);
using Superclass::playEvent;
bool playEvent(QObject *Object, const QString &Command, const QString &Arguments, bool &Error);
private:
......
......@@ -50,6 +50,7 @@ class QTTESTING_EXPORT pq3DViewEventPlayer :
public:
pq3DViewEventPlayer(const QByteArray& classname, QObject* p = 0);
using Superclass::playEvent;
bool playEvent(QObject* Object, const QString& Command, const QString& Arguments, bool& Error);
protected:
......
......@@ -47,10 +47,12 @@ class QTTESTING_EXPORT pqAbstractActivateEventPlayer :
public pqWidgetEventPlayer
{
Q_OBJECT
typedef pqWidgetEventPlayer Superclass;
public:
pqAbstractActivateEventPlayer(QObject* p = 0);
using Superclass::playEvent;
bool playEvent(QObject* Object, const QString& Command, const QString& Arguments, bool& Error);
private:
......
......@@ -44,10 +44,12 @@ class QTTESTING_EXPORT pqAbstractBooleanEventPlayer :
public pqWidgetEventPlayer
{
Q_OBJECT
typedef pqWidgetEventPlayer Superclass;
public:
pqAbstractBooleanEventPlayer(QObject* p=0);
using Superclass::playEvent;
bool playEvent(QObject* Object, const QString& Command, const QString& Arguments, bool& Error);
private:
......
......@@ -45,10 +45,12 @@ class QTTESTING_EXPORT pqAbstractDoubleEventPlayer :
public pqWidgetEventPlayer
{
Q_OBJECT
typedef pqWidgetEventPlayer Superclass;
public:
pqAbstractDoubleEventPlayer(QObject* p=0);
using Superclass::playEvent;
bool playEvent(QObject* Object, const QString& Command, const QString& Arguments, bool& Error);
private:
......
......@@ -45,10 +45,13 @@ class QTTESTING_EXPORT pqAbstractIntEventPlayer :
public pqWidgetEventPlayer
{
Q_OBJECT
typedef pqWidgetEventPlayer Superclass;
public:
pqAbstractIntEventPlayer(QObject* p=0);
using Superclass::playEvent;
bool playEvent(QObject* Object, const QString& Command, const QString& Arguments, bool& Error);
private:
......
......@@ -50,6 +50,7 @@ class QTTESTING_EXPORT pqAbstractItemViewEventPlayer :
public:
pqAbstractItemViewEventPlayer(QObject* p=0);
using Superclass::playEvent;
bool playEvent(QObject* Object, const QString& Command, const QString& Arguments, bool& Error);
private:
......
......@@ -48,6 +48,7 @@ public:
~pqAbstractItemViewEventPlayerBase()=0;
/// Play an event on a QAbstractViewItem
using Superclass::playEvent;
bool playEvent(QObject* object, const QString& command,
const QString& arguments, int eventType, bool& error);
......
......@@ -50,6 +50,7 @@ public:
~pqAbstractItemViewEventTranslatorBase();
/// Overridden to handle events on QAbstractItemView
using pqWidgetEventTranslator::translateEvent;
virtual bool translateEvent(QObject* object, QEvent* event, int eventType, bool& error);
/// Connect the QAbstractItemView signals to this classe slots
......
......@@ -53,10 +53,12 @@ class QTTESTING_EXPORT pqAbstractMiscellaneousEventPlayer :
public pqWidgetEventPlayer
{
Q_OBJECT
typedef pqWidgetEventPlayer Superclass;
public:
pqAbstractMiscellaneousEventPlayer(QObject* p=0);
using Superclass::playEvent;
bool playEvent(QObject* Object, const QString& Command, const QString& Arguments, bool& Error);
private:
......
......@@ -49,6 +49,7 @@ class pqBasicWidgetEventPlayer :
public:
pqBasicWidgetEventPlayer(QObject* p=0);
using Superclass::playEvent;
bool playEvent(QObject* object, const QString& command,
const QString& arguments, int eventType, bool& error);
......
......@@ -45,6 +45,7 @@ public:
~pqComboBoxEventPlayer();
/// Play an event on a QComboBox
using Superclass::playEvent;
bool playEvent(QObject* object, const QString& command,
const QString& arguments, int eventType, bool& error);
......
......@@ -44,11 +44,13 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
class QTTESTING_EXPORT pqCommentEventPlayer : public pqWidgetEventPlayer
{
Q_OBJECT
typedef pqWidgetEventPlayer Superclass;
public:
pqCommentEventPlayer(pqTestUtility* testUtility, QObject* p =0);
~pqCommentEventPlayer();
using Superclass::playEvent;
bool playEvent(QObject* Object, const QString &Command, const QString &Arguments, bool &Error);
signals:
......
......@@ -44,6 +44,7 @@ public:
pqListViewEventPlayer(QObject* parent=0);
~pqListViewEventPlayer();
using Superclass::playEvent;
bool playEvent(QObject* object, const QString& command,
const QString& arguments, int eventType, bool& error);
......
......@@ -48,11 +48,13 @@ class QTTESTING_EXPORT pqNativeFileDialogEventPlayer :
public pqWidgetEventPlayer
{
Q_OBJECT
typedef pqWidgetEventPlayer Superclass;
public:
pqNativeFileDialogEventPlayer(pqTestUtility* util, QObject* p=0);
~pqNativeFileDialogEventPlayer();
using Superclass::playEvent;
bool playEvent(QObject* Object, const QString& Command, const QString& Arguments, bool& Error);
protected slots:
......
......@@ -50,6 +50,7 @@ class QTTESTING_EXPORT pqTabBarEventPlayer :
public:
pqTabBarEventPlayer(QObject* p=0);
using Superclass::playEvent;
bool playEvent(QObject* Object, const QString& Command, const QString& Arguments, bool& Error);
private:
......
......@@ -44,6 +44,7 @@ public:
pqTableViewEventPlayer(QObject* parent=0);
~pqTableViewEventPlayer();
using Superclass::playEvent;
bool playEvent(QObject* object, const QString& command,
const QString& arguments, int eventType, bool& error);
......
......@@ -44,6 +44,7 @@ public:
pqTreeViewEventPlayer(QObject* parent=0);
~pqTreeViewEventPlayer();
using Superclass::playEvent;
bool playEvent(QObject* object, const QString& command,
const QString& arguments, int eventType, bool& error);
......
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