summaryrefslogtreecommitdiffstats
path: root/tests/auto/qwidget/tst_qwidget.cpp
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2010-02-04 09:08:43 (GMT)
committerSamuel Rødal <sroedal@trolltech.com>2010-02-04 09:08:43 (GMT)
commit47b7af3bfd78c6d4efd3ce93be275a60430679d2 (patch)
treee7d7ff32ae72008b74df37e13caf568b33ac19b5 /tests/auto/qwidget/tst_qwidget.cpp
parent8e98033a67263f6a2d9155f228dc28e2faee4f5e (diff)
parent39523f9f78a7c93643924711b1ed8006ebfcf5ce (diff)
downloadQt-47b7af3bfd78c6d4efd3ce93be275a60430679d2.zip
Qt-47b7af3bfd78c6d4efd3ce93be275a60430679d2.tar.gz
Qt-47b7af3bfd78c6d4efd3ce93be275a60430679d2.tar.bz2
Merge remote branch 'staging/4.6' into 4.6
Manual resolve of conflict in changes-4.6.2 in staging-2. Conflicts: dist/changes-4.6.2
Diffstat (limited to 'tests/auto/qwidget/tst_qwidget.cpp')
-rw-r--r--tests/auto/qwidget/tst_qwidget.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/qwidget/tst_qwidget.cpp b/tests/auto/qwidget/tst_qwidget.cpp
index ea90ae3..1fb323e 100644
--- a/tests/auto/qwidget/tst_qwidget.cpp
+++ b/tests/auto/qwidget/tst_qwidget.cpp
@@ -396,6 +396,8 @@ private slots:
void focusProxyAndInputMethods();
void scrollWithoutBackingStore();
+ void taskQTBUG_7532_tabOrderWithFocusProxy();
+
private:
bool ensureScreenSize(int width, int height);
QWidget *testWidget;
@@ -9783,5 +9785,17 @@ void tst_QWidget::scrollWithoutBackingStore()
QCOMPARE(child.pos(),QPoint(25,25));
}
+void tst_QWidget::taskQTBUG_7532_tabOrderWithFocusProxy()
+{
+ QWidget w;
+ w.setFocusPolicy(Qt::TabFocus);
+ QWidget *fp = new QWidget(&w);
+ fp->setFocusPolicy(Qt::TabFocus);
+ w.setFocusProxy(fp);
+ QWidget::setTabOrder(&w, fp);
+
+ // No Q_ASSERT, then it's allright.
+}
+
QTEST_MAIN(tst_QWidget)
#include "tst_qwidget.moc"