diff options
author | Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com> | 2012-04-23 06:18:19 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-04-26 18:47:35 +0200 |
commit | 01669a3cd270f66de1bf985c4630a708e9872a83 (patch) | |
tree | 417d20892f7d2d805afb829f07c83905ff3cdafa /tests/auto/quick/qquickapplication | |
parent | c39f6b0214b84b578abcf6aa454539f05baa8174 (diff) |
api: remove references to inputPanel.
Qt.application.inputPanel is now Qt.inputMethod. Also,
QGuiApplication::inputPanel is being removed.
Change-Id: I0033183235fe0fda6adff13cf5eaf4b8206d91fb
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'tests/auto/quick/qquickapplication')
-rw-r--r-- | tests/auto/quick/qquickapplication/tst_qquickapplication.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/auto/quick/qquickapplication/tst_qquickapplication.cpp b/tests/auto/quick/qquickapplication/tst_qquickapplication.cpp index 4dd7688f6a..3d02dce58e 100644 --- a/tests/auto/quick/qquickapplication/tst_qquickapplication.cpp +++ b/tests/auto/quick/qquickapplication/tst_qquickapplication.cpp @@ -55,7 +55,6 @@ public: private slots: void active(); void layoutDirection(); - void inputPanel(); void inputMethod(); private: @@ -136,22 +135,6 @@ void tst_qquickapplication::layoutDirection() QCOMPARE(Qt::LayoutDirection(item->property("layoutDirection").toInt()), Qt::LeftToRight); } -void tst_qquickapplication::inputPanel() -{ - const QLatin1String expected("Qt.application.inputPanel is deprecated, use Qt.inputMethod instead "); - QTest::ignoreMessage(QtWarningMsg, expected.data()); - - QQmlComponent component(&engine); - component.setData("import QtQuick 2.0; Item { property variant inputPanel: Qt.application.inputPanel }", QUrl::fromLocalFile("")); - QQuickItem *item = qobject_cast<QQuickItem *>(component.create()); - QVERIFY(item); - QQuickView view; - item->setParentItem(view.rootObject()); - - // check that the inputPanel property maches with application's input panel - QCOMPARE(qvariant_cast<QObject*>(item->property("inputPanel")), qApp->inputMethod()); -} - void tst_qquickapplication::inputMethod() { // technically not in QQuickApplication, but testing anyway here |