summaryrefslogtreecommitdiffstats
path: root/tests/auto/qwidget
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@nokia.com>2009-10-19 14:19:56 +0200
committerJoerg Bornemann <joerg.bornemann@nokia.com>2009-10-19 17:23:43 +0200
commit93a6da9a9b14bc2ff637c6756bbb467f58f6200b (patch)
treef9a11af19f598069ae570ac58bb0dc19fff48b09 /tests/auto/qwidget
parent3908a76b470632f943e836342591319b454d785b (diff)
fix bug in tst_qwidget.cpp
WinIdChangeEventWidget::event didn't return a value in all codepaths. Reviewed-by: thartman
Diffstat (limited to 'tests/auto/qwidget')
-rw-r--r--tests/auto/qwidget/tst_qwidget.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/auto/qwidget/tst_qwidget.cpp b/tests/auto/qwidget/tst_qwidget.cpp
index 758821bdbb..1b898f405b 100644
--- a/tests/auto/qwidget/tst_qwidget.cpp
+++ b/tests/auto/qwidget/tst_qwidget.cpp
@@ -4362,11 +4362,13 @@ public:
}
protected:
- bool event(QEvent *e){
- if(e->type() == QEvent::WinIdChange)
+ bool event(QEvent *e)
+ {
+ if (e->type() == QEvent::WinIdChange) {
++m_winIdChangeEventCount;
- else
- return QWidget::event(e);
+ return true;
+ }
+ return QWidget::event(e);
}
public:
int m_winIdChangeEventCount;