From 879b6adff371bd41a7a8999d90f845acd84402fd Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 11 Sep 2013 17:51:56 +0200 Subject: [PATCH] example for enums --- examples/applets/config/contents/config/main.xml | 12 ++++++++++++ examples/applets/config/contents/ui/main.qml | 4 ++++ 2 files changed, 16 insertions(+) diff --git a/examples/applets/config/contents/config/main.xml b/examples/applets/config/contents/config/main.xml index 9f6f0b9ce..2736c4d10 100644 --- a/examples/applets/config/contents/config/main.xml +++ b/examples/applets/config/contents/config/main.xml @@ -20,6 +20,18 @@ test2 + + 0 + + + + + + + + + + diff --git a/examples/applets/config/contents/ui/main.qml b/examples/applets/config/contents/ui/main.qml index f30f42265..1734dc406 100644 --- a/examples/applets/config/contents/ui/main.qml +++ b/examples/applets/config/contents/ui/main.qml @@ -51,6 +51,10 @@ Item { text: plasmoid.configuration.OtherTest onTextChanged: plasmoid.configuration.OtherTest = text } + PlasmaComponents.TextField { + text: plasmoid.configuration.EnumTest + onTextChanged: plasmoid.configuration.EnumTest = text + } } } \ No newline at end of file