diff options
| author | Aleix Pol <aleixpol@kde.org> | 2015-10-28 00:34:09 (GMT) |
|---|---|---|
| committer | Aleix Pol <aleixpol@kde.org> | 2015-10-28 00:34:09 (GMT) |
| commit | 7381e5c20fc4623b64540777b06c5c8887ca8cbc (patch) | |
| tree | e11aa99c96785f710656a2f9a2828a827b3b53a8 | |
| parent | 3b0e2bbc07375f038c498e2158eca28aa6d21995 (diff) | |
Make breadcrumbs method private
This way the file can be moved upstream without having weird public API
| -rw-r--r-- | discover/qml/Breadcrumbs.qml | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/discover/qml/Breadcrumbs.qml b/discover/qml/Breadcrumbs.qml index f941807..4572a06 100644 --- a/discover/qml/Breadcrumbs.qml +++ b/discover/qml/Breadcrumbs.qml @@ -28,13 +28,6 @@ Item { property StackView pageStack: null Layout.minimumHeight: theLayout.Layout.minimumHeight Layout.preferredHeight: theLayout.Layout.preferredHeight - - function doClick(index) { - var pos = bread.pageStack.depth - for(; pos>index; --pos) { - bread.pageStack.pop(pos>index) - } - } RowLayout { id: theLayout @@ -65,6 +58,13 @@ Item { text: currentPage.title enabled: bread.pageStack.depth!=(modelData+1) checkable: checked + + function doClick(index) { + var pos = bread.pageStack.depth + for(; pos>index; --pos) { + bread.pageStack.pop(pos>index) + } + } } } } |
