summaryrefslogtreecommitdiffstats
path: root/src/plugins/generic/evdevtouch/qevdevtouch.cpp
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/qevdevtouch.cpp
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/qevdevtouch.cpp')
-rw-r--r--src/plugins/generic/evdevtouch/qevdevtouch.cpp4
1 files changed, 2 insertions, 2 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