summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@digia.com>2013-05-28 13:49:44 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-05-29 12:36:37 +0200
commitb0510b53256cbc3d2ea46dd936e85c0d1f463b37 (patch)
treea81f325c7f03f29cb36037293912d61ea1127951 /src
parent6e62a72c72abc5ad6e241541208a36378d448853 (diff)
Rename::tabAt(index) to getTab(index)
The fooAt() type methods are reserved for coordinate based queries. Change-Id: Iea91bdd29df4fa53cc1c7a07880f466ef2325725 Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/controls/TabView.qml2
-rw-r--r--src/private/TabBar.qml2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/controls/TabView.qml b/src/controls/TabView.qml
index d292ce05e..3273f8259 100644
--- a/src/controls/TabView.qml
+++ b/src/controls/TabView.qml
@@ -133,7 +133,7 @@ FocusScope {
}
/*! Returns the \l Tab item at \a index. */
- function tabAt(index) {
+ function getTab(index) {
return __tabs.get(index).tab
}
diff --git a/src/private/TabBar.qml b/src/private/TabBar.qml
index a856cedda..7f4db7791 100644
--- a/src/private/TabBar.qml
+++ b/src/private/TabBar.qml
@@ -181,7 +181,7 @@ FocusScope {
onPressed: {
tabView.currentIndex = index;
var next = tabbar.nextItemInFocusChain(true);
- if (__isAncestorOf(tabView.tabAt(currentIndex), next))
+ if (__isAncestorOf(tabView.getTab(currentIndex), next))
next.forceActiveFocus();
else
tabitem.forceActiveFocus();