summaryrefslogtreecommitdiffstats
path: root/tests/libsample
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-09-16 19:12:33 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2010-09-17 10:29:00 -0300
commit42a3b42f8a00e94dd10e786210739fee7878cf51 (patch)
tree99979228e8fcdb3dfae6b4c70d36d5a35e300650 /tests/libsample
parent4914a426267dd6f6cf852445f071650b5c0f7971 (diff)
downloadshiboken-42a3b42f8a00e94dd10e786210739fee7878cf51.tar.gz
shiboken-42a3b42f8a00e94dd10e786210739fee7878cf51.tar.xz
shiboken-42a3b42f8a00e94dd10e786210739fee7878cf51.zip
Fix bug#339 - "RuntimeError when accessing mousepress event object"
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Lauro Moura <lauro.filho@openbossa.org>
Diffstat (limited to 'tests/libsample')
-rw-r--r--tests/libsample/objecttype.cpp6
-rw-r--r--tests/libsample/objecttype.h4
2 files changed, 9 insertions, 1 deletions
diff --git a/tests/libsample/objecttype.cpp b/tests/libsample/objecttype.cpp
index ea3c78e7..c1407d23 100644
--- a/tests/libsample/objecttype.cpp
+++ b/tests/libsample/objecttype.cpp
@@ -167,6 +167,12 @@ ObjectType::processEvent(ObjectTypeList objects, Event *event)
}
void
+ObjectType::callInvalidateEvent(Event* event)
+{
+ invalidateEvent(event);
+}
+
+void
ObjectType::setLayout(ObjectTypeLayout* l)
{
if (!l) {
diff --git a/tests/libsample/objecttype.h b/tests/libsample/objecttype.h
index c3bd8c62..b09b402e 100644
--- a/tests/libsample/objecttype.h
+++ b/tests/libsample/objecttype.h
@@ -78,6 +78,9 @@ public:
virtual bool event(Event* event);
static int processEvent(ObjectTypeList objects, Event *event);
+ void callInvalidateEvent(Event* event);
+ virtual void invalidateEvent(Event* event) {}
+
// This nonsense method emulate QWidget.setLayout method
// All layout objects will became children of this object.
void setLayout(ObjectTypeLayout* layout);
@@ -99,7 +102,6 @@ public:
void setObject(const Null&);
int callId() const;
-
private:
ObjectType(const ObjectType&);
ObjectType& operator=(const ObjectType&);