diff options
author | Jarkko Koivikko <jarkko.koivikko@code-q.fi> | 2015-10-26 08:57:45 +0200 |
---|---|---|
committer | Jarkko Koivikko <jarkko.koivikko@code-q.fi> | 2015-10-26 07:51:03 +0000 |
commit | 46684a93e9a9eae0bd4b28ca9307692171ff25af (patch) | |
tree | 6cc3a3df21126dbe77b85bf8af3ac2536a1dd78a /tests/auto/inputpanel/data/inputpanel | |
parent | c46ab8f76f6c32f0e415b01977bc51101da83a6d (diff) |
Fix overloaded-virtual warning
Renamed the DeclarativeSelectionListModel::itemData() function to
dataAt(). This function is only needed for automated tests.
Task-number: QTRD-3728
Change-Id: Ia39a882de1ad944dc8b72382afaf39859f4d1b96
Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
Diffstat (limited to 'tests/auto/inputpanel/data/inputpanel')
-rw-r--r-- | tests/auto/inputpanel/data/inputpanel/handwritinginputpanel.qml | 2 | ||||
-rw-r--r-- | tests/auto/inputpanel/data/inputpanel/inputpanel.qml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/inputpanel/data/inputpanel/handwritinginputpanel.qml b/tests/auto/inputpanel/data/inputpanel/handwritinginputpanel.qml index 53eae26e..98c7c188 100644 --- a/tests/auto/inputpanel/data/inputpanel/handwritinginputpanel.qml +++ b/tests/auto/inputpanel/data/inputpanel/handwritinginputpanel.qml @@ -78,7 +78,7 @@ HandwritingInputPanel { var origIndex = handwritingInputPanel.wordCandidatePopupList.currentIndex if (origIndex !== -1) { while (true) { - if (handwritingInputPanel.wordCandidatePopupList.model.itemData(handwritingInputPanel.wordCandidatePopupList.currentIndex) === suggestion) { + if (handwritingInputPanel.wordCandidatePopupList.model.dataAt(handwritingInputPanel.wordCandidatePopupList.currentIndex) === suggestion) { suggestionFound = true break } diff --git a/tests/auto/inputpanel/data/inputpanel/inputpanel.qml b/tests/auto/inputpanel/data/inputpanel/inputpanel.qml index 07133051..a8c0bc4b 100644 --- a/tests/auto/inputpanel/data/inputpanel/inputpanel.qml +++ b/tests/auto/inputpanel/data/inputpanel/inputpanel.qml @@ -436,7 +436,7 @@ InputPanel { var origIndex = inputPanel.wordCandidateView.currentIndex if (origIndex !== -1) { while (true) { - if (inputPanel.wordCandidateView.model.itemData(inputPanel.wordCandidateView.currentIndex) === suggestion) { + if (inputPanel.wordCandidateView.model.dataAt(inputPanel.wordCandidateView.currentIndex) === suggestion) { suggestionFound = true break } |