Add QObject parent parameter to constructors
Also drop the explicit keyword in constructors with multiple args since it has no effect on multi-arg constructors. Change-Id: I48af6ede6cc968c52720c6107cadf3aa4dbfc7f7 Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
This commit is contained in:
parent
f70924e9cc
commit
56cfd5d83f
@ -52,7 +52,8 @@
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
QEvdevKeyboardManager::QEvdevKeyboardManager(const QString &key, const QString &specification)
|
||||
QEvdevKeyboardManager::QEvdevKeyboardManager(const QString &key, const QString &specification, QObject *parent)
|
||||
: QObject(parent)
|
||||
{
|
||||
Q_UNUSED(key);
|
||||
|
||||
|
@ -58,7 +58,7 @@ class QEvdevKeyboardManager : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit QEvdevKeyboardManager(const QString &key, const QString &specification);
|
||||
QEvdevKeyboardManager(const QString &key, const QString &specification, QObject *parent = 0);
|
||||
~QEvdevKeyboardManager();
|
||||
|
||||
private slots:
|
||||
|
@ -54,8 +54,8 @@
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
QEvdevMouseManager::QEvdevMouseManager(const QString &key, const QString &specification)
|
||||
: m_x(0), m_y(0), m_xoffset(0), m_yoffset(0)
|
||||
QEvdevMouseManager::QEvdevMouseManager(const QString &key, const QString &specification, QObject *parent)
|
||||
: QObject(parent), m_x(0), m_y(0), m_xoffset(0), m_yoffset(0)
|
||||
{
|
||||
Q_UNUSED(key);
|
||||
|
||||
|
@ -58,7 +58,7 @@ class QEvdevMouseManager : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit QEvdevMouseManager(const QString &key, const QString &specification);
|
||||
QEvdevMouseManager(const QString &key, const QString &specification, QObject *parent = 0);
|
||||
~QEvdevMouseManager();
|
||||
|
||||
public slots:
|
||||
|
@ -138,8 +138,8 @@ static inline bool testBit(long bit, const long *array)
|
||||
return (array[bit / LONG_BITS] >> bit % LONG_BITS) & 1;
|
||||
}
|
||||
|
||||
QTouchScreenHandler::QTouchScreenHandler(const QString &spec)
|
||||
: m_notify(0), m_fd(-1), d(0)
|
||||
QTouchScreenHandler::QTouchScreenHandler(const QString &spec, QObject *parent)
|
||||
: QObject(parent), m_notify(0), m_fd(-1), d(0)
|
||||
#ifdef USE_MTDEV
|
||||
, m_mtdev(0)
|
||||
#endif
|
||||
|
@ -63,7 +63,7 @@ class QTouchScreenHandler : public QObject
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
QTouchScreenHandler(const QString &spec = QString());
|
||||
QTouchScreenHandler(const QString &spec = QString(), QObject *parent = 0);
|
||||
~QTouchScreenHandler();
|
||||
|
||||
private slots:
|
||||
|
Loading…
Reference in New Issue
Block a user