~ubuntu-branches/ubuntu/quantal/kde-runtime/quantal

« back to all changes in this revision

Viewing changes to plasma/declarativeimports/plasmacomponents/qml/RadioButton.qml

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2012-06-03 21:50:00 UTC
  • mto: This revision was merged to the branch mainline in revision 21.
  • Revision ID: package-import@ubuntu.com-20120603215000-vn7oarsq0ynrydj5
Tags: upstream-4.8.80
Import upstream version 4.8.80

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
*   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
18
18
*/
19
19
 
20
 
/**Documentanted API
 
20
/**Documented API
21
21
Inherits:
22
 
        DualStateButton
 
22
        The private DualStateButton
23
23
 
24
24
Imports:
25
25
        QtQuick 1.0
26
26
        org.kde.plasma.core
27
27
 
28
28
Description:
29
 
        It is a simple Radio button which is using the plasma theme.
30
 
        TODO Do we need more info?
31
 
 
 
29
        A radio button component consists of a radio button and a line of text. Only one item in a list may be selected at a time. Once an item is selected, it can be deselected only by selecting another item. Initial item selection may be set at the list creation. If not set, the list is shown without a selection.
 
30
 
 
31
Properties:
 
32
        bool checked:
 
33
        If the button is checked, its checked property is true; otherwise false. The property is false by default.
 
34
 
 
35
        bool pressed:
 
36
        If the button is pressed, its pressed property is true.
 
37
            See also clicked.
 
38
 
 
39
        string text:
 
40
        The text is shown beside the check box. By default text is an empty string.
 
41
 
 
42
Signals:
 
43
        clicked():
 
44
            Emitted when the user clicked a mouse button over the checkbox (or tapped on the touch screen)
32
45
**/
33
46
 
34
47
import QtQuick 1.0
35
48
import org.kde.plasma.core 0.1 as PlasmaCore
36
 
 
 
49
import "private" as Private
37
50
 
38
51
//FIXME: this should be round, DualStateButton shouldn't draw the shadow
39
 
DualStateButton {
 
52
Private.DualStateButton {
40
53
    id: radioButton
41
54
    view: PlasmaCore.SvgItem {
42
55
        svg: PlasmaCore.Svg {
66
79
        }
67
80
    }
68
81
 
69
 
    shadow: RoundShadow {}
 
82
    shadow: Private.RoundShadow {}
70
83
}
 
 
b'\\ No newline at end of file'