summaryrefslogtreecommitdiffstats
path: root/src/plugins/generic/evdevtouch
diff options
context:
space:
mode:
authorGirish Ramakrishnan <girish.1.ramakrishnan@nokia.com>2012-05-30 22:20:04 -0700
committerQt by Nokia <qt-info@nokia.com>2012-05-31 17:49:39 +0200
commit56cfd5d83f4108c8f470d8776d323321592e8255 (patch)
tree8ac7f158aadbd6ae5fdcf4f30d92c0b8ceec14c4 /src/plugins/generic/evdevtouch
parentf70924e9ccc016b979bc74bba156600639184be7 (diff)
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>
Diffstat (limited to 'src/plugins/generic/evdevtouch')
-rw-r--r--src/plugins/generic/evdevtouch/qevdevtouch.cpp4
-rw-r--r--src/plugins/generic/evdevtouch/qevdevtouch.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/generic/evdevtouch/qevdevtouch.cpp b/src/plugins/generic/evdevtouch/qevdevtouch.cpp
index c372b0d1ff..aa43b6ac85 100644
--- a/src/plugins/generic/evdevtouch/qevdevtouch.cpp
+++ b/src/plugins/generic/evdevtouch/qevdevtouch.cpp
@@ -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
diff --git a/src/plugins/generic/evdevtouch/qevdevtouch.h b/src/plugins/generic/evdevtouch/qevdevtouch.h
index 28a3b215fb..40ed9b2a91 100644
--- a/src/plugins/generic/evdevtouch/qevdevtouch.h
+++ b/src/plugins/generic/evdevtouch/qevdevtouch.h
@@ -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: