From eabdd3ffefed6334f551e08f0adc2eb9cc5ede84 Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Mon, 2 Nov 2015 16:42:04 +0100 Subject: Fix addTab()/insertTab() documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I106b1e042434b168333283aa792b67727b8f40b3 Reviewed-by: Topi Reiniƶ Reviewed-by: J-P Nurmi --- src/controls/TabView.qml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/controls/TabView.qml b/src/controls/TabView.qml index bd043be9..e284a46d 100644 --- a/src/controls/TabView.qml +++ b/src/controls/TabView.qml @@ -115,16 +115,23 @@ FocusScope { /*! \internal */ default property alias data: stack.data - /*! \qmlmethod Tab TabView::addTab(string title, Component component) - Adds a new tab page with title with and optional Component. + /*! + \qmlmethod Tab TabView::addTab(string title, Component component) + + Adds a new tab with the given \a title and an optional \a component. + Returns the newly added tab. */ function addTab(title, component) { return insertTab(__tabs.count, title, component) } - /*! \qmlmethod Tab TabView::insertTab(int index, string title, Component component) - Inserts a new tab with title at index, with an optional Component. + /*! + \qmlmethod Tab TabView::insertTab(int index, string title, Component component) + + Inserts a new tab at \a index, with the given \a title and + an optional \a component. + Returns the newly added tab. */ function insertTab(index, title, component) { -- cgit v1.2.1