summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@theqtcompany.com>2015-11-02 16:42:04 +0100
committerMitch Curtis <mitch.curtis@theqtcompany.com>2015-11-09 10:45:51 +0000
commiteabdd3ffefed6334f551e08f0adc2eb9cc5ede84 (patch)
tree518b95c2fbdc7ae49cb3602de4690eeb31fd583b
parentef89c94c4bf3718706437ce3330921cf212d84e4 (diff)
downloadqtquickcontrols-eabdd3ffefed6334f551e08f0adc2eb9cc5ede84.tar.gz
Fix addTab()/insertTab() documentation
Change-Id: I106b1e042434b168333283aa792b67727b8f40b3 Reviewed-by: Topi Reiniƶ <topi.reinio@digia.com> Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
-rw-r--r--src/controls/TabView.qml15
1 files 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) {