diff options
-rw-r--r-- | examples/declarative/loader/Button.qml | 14 | ||||
-rw-r--r-- | src/declarative/util/qmltimer.cpp (renamed from src/declarative/extra/qmltimer.cpp) | 0 | ||||
-rw-r--r-- | src/declarative/util/qmltimer.h (renamed from src/declarative/extra/qmltimer.h) | 0 |
3 files changed, 14 insertions, 0 deletions
diff --git a/examples/declarative/loader/Button.qml b/examples/declarative/loader/Button.qml new file mode 100644 index 0000000..3efedc4 --- /dev/null +++ b/examples/declarative/loader/Button.qml @@ -0,0 +1,14 @@ +Rect { + id: Container + + property var text + signal clicked + + height: Text.height + 10 + width: Text.width + 20 + pen.width: 1 + radius: 4 + color: "grey" + MouseRegion { anchors.fill: parent; onClicked: Container.clicked() } + Text { id: Text; anchors.centeredIn:parent; font.size: 10; text: parent.text } +} diff --git a/src/declarative/extra/qmltimer.cpp b/src/declarative/util/qmltimer.cpp index 4af83d3..4af83d3 100644 --- a/src/declarative/extra/qmltimer.cpp +++ b/src/declarative/util/qmltimer.cpp diff --git a/src/declarative/extra/qmltimer.h b/src/declarative/util/qmltimer.h index 0df4cb9..0df4cb9 100644 --- a/src/declarative/extra/qmltimer.h +++ b/src/declarative/util/qmltimer.h |