Add some docu to ButtonRow and ButtonColumn
This commit is contained in:
parent
339904e610
commit
90b4d074ca
@ -42,36 +42,45 @@
|
|||||||
import Qt 4.7
|
import Qt 4.7
|
||||||
import "ButtonGroup.js" as Behavior
|
import "ButtonGroup.js" as Behavior
|
||||||
|
|
||||||
/*
|
/**Documentanted API
|
||||||
Class: ButtonColumn
|
Inherits:
|
||||||
A ButtonColumn allows you to group Buttons in a column. It provides a selection-behavior as well.
|
Column
|
||||||
|
|
||||||
Note: This component don't support the enabled property.
|
Imports:
|
||||||
If you need to disable it you should disable all the buttons inside it.
|
ButtonGroup.js
|
||||||
|
Qt 4.7
|
||||||
|
|
||||||
<code>
|
|
||||||
ButtonColumn {
|
Description:
|
||||||
Button { text: "Top" }
|
A ButtonColumn allows you to group Buttons in a column. It provides a selection-behavior as well.
|
||||||
Button { text: "Bottom" }
|
|
||||||
}
|
Note: This component don't support the enabled property.
|
||||||
</code>
|
If you need to disable it you should disable all the buttons inside it.
|
||||||
*/
|
TODO we need an example here...
|
||||||
|
|
||||||
|
This is an example,
|
||||||
|
<code>
|
||||||
|
ButtonColumn {
|
||||||
|
Button { text: "Top" }
|
||||||
|
Button { text: "Bottom" }
|
||||||
|
}
|
||||||
|
</code>
|
||||||
|
|
||||||
|
Properties:
|
||||||
|
bool exclusive:
|
||||||
|
Specifies the grouping behavior. If enabled, the checked property on buttons contained
|
||||||
|
in the group will be exclusive.
|
||||||
|
|
||||||
|
Note that a button in an exclusive group will allways be checkable
|
||||||
|
|
||||||
|
Item checkedButton:
|
||||||
|
Returns the last checked button.
|
||||||
|
**/
|
||||||
Column {
|
Column {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
/*
|
|
||||||
* Property: exclusive
|
|
||||||
* [bool=true] Specifies the grouping behavior. If enabled, the checked property on buttons contained
|
|
||||||
* in the group will be exclusive.
|
|
||||||
*
|
|
||||||
* Note that a button in an exclusive group will allways be checkable
|
|
||||||
*/
|
|
||||||
property bool exclusive: true
|
property bool exclusive: true
|
||||||
|
|
||||||
/*
|
|
||||||
* Property: checkedButton
|
|
||||||
* [string] Contains the last checked Button.
|
|
||||||
*/
|
|
||||||
property Item checkedButton;
|
property Item checkedButton;
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
|
@ -42,36 +42,46 @@
|
|||||||
import QtQuick 1.1
|
import QtQuick 1.1
|
||||||
import "ButtonGroup.js" as Behavior
|
import "ButtonGroup.js" as Behavior
|
||||||
|
|
||||||
/*
|
|
||||||
Class: ButtonRow
|
|
||||||
A ButtonRow allows you to group Buttons in a row. It provides a selection-behavior as well.
|
|
||||||
|
|
||||||
Note: This component don't support the enabled property.
|
/**Documentanted API
|
||||||
If you need to disable it you should disable all the buttons inside it.
|
Inherits:
|
||||||
|
Row
|
||||||
|
|
||||||
<code>
|
Imports:
|
||||||
ButtonRow {
|
ButtonGroup.js
|
||||||
Button { text: "Left" }
|
QtQuick 1.1
|
||||||
Button { text: "Right" }
|
|
||||||
}
|
|
||||||
</code>
|
Description:
|
||||||
*/
|
A ButtonRow allows you to group Buttons in a row. It provides a selection-behavior as well.
|
||||||
|
|
||||||
|
Note: This component don't support the enabled property.
|
||||||
|
If you need to disable it you should disable all the buttons inside it.
|
||||||
|
TODO we need an example here...
|
||||||
|
|
||||||
|
This is an example,
|
||||||
|
<code>
|
||||||
|
ButtonRow {
|
||||||
|
Button { text: "Left" }
|
||||||
|
Button { text: "Right" }
|
||||||
|
}
|
||||||
|
</code>
|
||||||
|
|
||||||
|
Properties:
|
||||||
|
bool exclusive:
|
||||||
|
Specifies the grouping behavior. If enabled, the checked property on buttons contained
|
||||||
|
in the group will be exclusive.
|
||||||
|
|
||||||
|
Note that a button in an exclusive group will allways be checkable
|
||||||
|
|
||||||
|
Item checkedButton:
|
||||||
|
Returns the last checked button.
|
||||||
|
**/
|
||||||
Row {
|
Row {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
/*
|
|
||||||
* Property: exclusive
|
|
||||||
* [bool=true] Specifies the grouping behavior. If enabled, the checked property on buttons contained
|
|
||||||
* in the group will be exclusive.
|
|
||||||
*
|
|
||||||
* Note that a button in an exclusive group will allways be checkable
|
|
||||||
*/
|
|
||||||
property bool exclusive: true
|
property bool exclusive: true
|
||||||
|
|
||||||
/*
|
|
||||||
* Property: checkedButton
|
|
||||||
* [string] Contains the last checked Button.
|
|
||||||
*/
|
|
||||||
property Item checkedButton;
|
property Item checkedButton;
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
|
Loading…
Reference in New Issue
Block a user