State inheritance from QtQuick / QtQuick.Controls modules

This commit is contained in:
David Edmundson 2014-08-13 12:09:55 +02:00
parent ea4c6f129e
commit d4c9c20144
26 changed files with 44 additions and 2 deletions

View File

@ -25,6 +25,8 @@ import org.kde.plasma.core 2.0 as PlasmaCore
* A simple busy indicator,
* It is used to indicate a task whose duration is unknown. If the task
* duration/number of steps is known, a ProgressBar should be used instead.
*
* @inherit QtQuick.Item
*/
Item {
id: busy

View File

@ -38,8 +38,7 @@ import "styles" as Styles
* or answer a question. Common examples of buttons are OK, Apply, Cancel,
* Close, Yes, No, and Help buttons.
*
* Properties and signals are the same as QtQuickControls Button
* @see http://qt-project.org/doc/qt-5/qml-qtquick-controls-button.html
* @inherit QtQuick.Controls.Button
*/
QtControls.Button {
id: root

View File

@ -58,6 +58,8 @@ import "ButtonGroup.js" as Behavior
* Button { text: "Bottom" }
* }
* @endcode
*
* @inherit QtQuick.Column
*/
Column {
id: root

View File

@ -57,6 +57,8 @@ import "ButtonGroup.js" as Behavior
* Button { text: "Right" }
* }
* @endcode
*
* @inherit QtQuick.Row
*/
Row {
id: root

View File

@ -24,6 +24,8 @@ import "styles" as Styles
* This is a combobox which uses the plasma theme.
*
* Properties are the same as the QtQuick Controls ComboBox component
*
* @inherit QtQuick.Controls.ComboBox
*/
ComboBox {
activeFocusOnPress: true

View File

@ -53,6 +53,8 @@ import "private" as Private
* overlapping the area reserved for the application content. Normally, a
* dialog provides information and gives warnings to the user, or asks the user
* to answer a question or select an option.
*
* @inherit QtQuick.Item
*/
Item {
id: root

View File

@ -29,6 +29,8 @@ import org.kde.plasma.core 2.0 as PlasmaCore
* duration of 250 (defined in units.longDuration).
*
* (TODO, make optional? e.g. animate: false)
*
* @inherit QtQuick.Item
*/
Item {
id: highlight

View File

@ -29,6 +29,8 @@ import org.kde.plasma.core 2.0 as PlasmaCore
*
* You can use all elements of the QML Text component, in particular the "text"
* property to define the label text.
*
* @inherit QtQuick.Text
*/
Text {
id: root

View File

@ -25,6 +25,8 @@ import "private/Config.js" as Config
* An item delegate for the primitive ListView component.
*
* It's intended to make all listviews look coherent.
*
* @inherit QtQuick.Item
*/
Item {
id: listItem

View File

@ -47,6 +47,8 @@ import "." 2.0 as PlasmaComponents
* loaded by a PageStack or TabGroup element. The typical use can be in small
* plasmoids or mobile devices where the whole screen is a series of
* interchangeable and flickable pages, of which the user navigates across.
*
* @inherit QtQuick.Item
*/
Item {
id: root

View File

@ -56,6 +56,8 @@ import "private/PageStack.js" as Engine
* deeper into the application page hierarchy. The user can then go back to the
* previous page (or several pages back) by popping a page (or several pages)
* off the top of the stack.
*
* @inherit QtQuick.Item
*/
Item {
id: root

View File

@ -30,6 +30,8 @@ import org.kde.kquickcontrolsaddons 2.0
* any confirmation, they might suspect that they did something wrong or that
* the device has broken. A progress bar is one of the available mechanisms for
* providing this reassurance to the user.
*
* @inherit QtQuick.Item
*/
Item {
id: progressBar

View File

@ -29,6 +29,7 @@ import "private" as Private
* selection.
*
* All elements of this component are defined in DualStateButton, its base component.
*
*/
//FIXME: this should be round, DualStateButton shouldn't draw the shadow
Private.DualStateButton {

View File

@ -32,6 +32,8 @@ import org.kde.plasma.components 2.0 as PlasmaComponents
*
* By default, this component looks and behaves like a scroll decorator
* on touchscreens.
*
* @inherit QtQuick.Item
*/
// TODO: add support mouse wheel events
Item {

View File

@ -53,6 +53,8 @@ import "." 2.0 as PlasmaComponents
* things like address books or things sorted by date. Don't use with models
* too big (thousands of items) because it implies loading all the items to
* memory, as well loses precision.
*
* @inherit QtQuick.Item
*/
Item {
id: root

View File

@ -53,6 +53,8 @@ import "." 2.0 as PlasmaComponents
* than Dialog. On the desktop its looks is almost identical to Dialog, on
* touch interfaces it is an almost fullscreen sliding Sheet. It is provided
* mostly for compatibility with mobile implementations.
*
* @inherit QtQuick.Item
*/
Item {
id: root

View File

@ -25,6 +25,8 @@ import "private" as Private
// TODO: create a value indicator for plasma?
/**
* An interactive slider component with Plasma look and feel.
*
* @inherit QtQuick.Item
*/
Item {
id: slider

View File

@ -33,6 +33,7 @@ import "private" as Private
* clicked signal.
*
* All elements of this component are defined in DualStateButton, its base component.
*
*/
Private.DualStateButton {
id: checkBox

View File

@ -48,6 +48,8 @@ import "private" as Private
/**
* TabBar is a plasma-themed component that you can use as a container for
* tab buttons.
*
* @inherit QtQuick.Item
*/
FocusScope {
id: root

View File

@ -47,6 +47,8 @@ import org.kde.plasma.core 2.0 as PlasmaCore
/**
* A simple tab button which is using the plasma theme.
*
* @inherit QtQuick.Item
*/
Item {
id: root

View File

@ -58,6 +58,8 @@ import "." 2.0 as PlasmaComponents
* PageStatus.Inactive. During page transitions, PageStatus.Activating (for the
* page that is becoming the current page) and PageStatus.Deactivating (for the
* page that was the current page) statuses are also set.
*
* @inherit QtQuick.Item
*/
Item {
id: root

View File

@ -23,6 +23,7 @@ import "private" as Private
/**
* A plasma theme based text area.
* @inherit QtQuick.Item
*/
Item {
id: textArea

View File

@ -26,6 +26,7 @@ import "styles" as Styles
/**
* A plasma theme based text field widget.
* @inherit QtQuick.Controls.TextField
*/
QtControls.TextField {
id: textField

View File

@ -22,6 +22,7 @@ import org.kde.plasma.core 2.0 as PlasmaCore
/**
* A plasma theme based toolbar.
* @inherit QtQuick.Item
*/
Item{
id: toolBar

View File

@ -23,6 +23,7 @@ import QtQuick 2.1
/**
* ToolBarLayout is a container for items on a toolbar that automatically
* implements an appropriate layout for its children.
* @inherit QtQuick.Row
*/
Row {
id: root

View File

@ -24,6 +24,7 @@ import "styles" as Styles
/**
* A plasma theme based toolbutton.
* @inherit QtQuick.Controls.ToolButton
*/
QtControls.ToolButton {
id: button