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
|
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);
|
Q_UNUSED(key);
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ class QEvdevKeyboardManager : public QObject
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit QEvdevKeyboardManager(const QString &key, const QString &specification);
|
QEvdevKeyboardManager(const QString &key, const QString &specification, QObject *parent = 0);
|
||||||
~QEvdevKeyboardManager();
|
~QEvdevKeyboardManager();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
@ -54,8 +54,8 @@
|
|||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
QT_BEGIN_NAMESPACE
|
||||||
|
|
||||||
QEvdevMouseManager::QEvdevMouseManager(const QString &key, const QString &specification)
|
QEvdevMouseManager::QEvdevMouseManager(const QString &key, const QString &specification, QObject *parent)
|
||||||
: m_x(0), m_y(0), m_xoffset(0), m_yoffset(0)
|
: QObject(parent), m_x(0), m_y(0), m_xoffset(0), m_yoffset(0)
|
||||||
{
|
{
|
||||||
Q_UNUSED(key);
|
Q_UNUSED(key);
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ class QEvdevMouseManager : public QObject
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit QEvdevMouseManager(const QString &key, const QString &specification);
|
QEvdevMouseManager(const QString &key, const QString &specification, QObject *parent = 0);
|
||||||
~QEvdevMouseManager();
|
~QEvdevMouseManager();
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
@ -138,8 +138,8 @@ static inline bool testBit(long bit, const long *array)
|
|||||||
return (array[bit / LONG_BITS] >> bit % LONG_BITS) & 1;
|
return (array[bit / LONG_BITS] >> bit % LONG_BITS) & 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
QTouchScreenHandler::QTouchScreenHandler(const QString &spec)
|
QTouchScreenHandler::QTouchScreenHandler(const QString &spec, QObject *parent)
|
||||||
: m_notify(0), m_fd(-1), d(0)
|
: QObject(parent), m_notify(0), m_fd(-1), d(0)
|
||||||
#ifdef USE_MTDEV
|
#ifdef USE_MTDEV
|
||||||
, m_mtdev(0)
|
, m_mtdev(0)
|
||||||
#endif
|
#endif
|
||||||
|
@ -63,7 +63,7 @@ class QTouchScreenHandler : public QObject
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QTouchScreenHandler(const QString &spec = QString());
|
QTouchScreenHandler(const QString &spec = QString(), QObject *parent = 0);
|
||||||
~QTouchScreenHandler();
|
~QTouchScreenHandler();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
Loading…
Reference in New Issue
Block a user