summaryrefslogtreecommitdiffstats
path: root/examples/twitter/content/ListDelegate.qml
diff options
context:
space:
mode:
authorTomasz Olszak <olszak.tomasz@gmail.com>2013-08-11 16:07:09 +0000
committerTomasz Olszak <olszak.tomasz@gmail.com>2013-08-11 21:49:56 +0200
commita7463f4beadd406ae9b672e0c190c5116ecf723c (patch)
tree241d917ee6b83afab698c3b9ef6627cc13251e67 /examples/twitter/content/ListDelegate.qml
parent54f3de8fe38d0a1340466525955c6a9ba8ff1426 (diff)
Added TizenControls singleton in Controls.Tizen plugin.
There should be no QtQUick.Controls.Styles.Tizen import in applications. QtQuick.Controls.Tizen should be just enough. Fixed examples Change-Id: I298fc8b7b2a250392faf001d5ccde89c139ab180 Reviewed-by: Jarosław Staniek <staniek@kde.org>
Diffstat (limited to 'examples/twitter/content/ListDelegate.qml')
-rw-r--r--examples/twitter/content/ListDelegate.qml6
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/twitter/content/ListDelegate.qml b/examples/twitter/content/ListDelegate.qml
index 7c0f702..931f40c 100644
--- a/examples/twitter/content/ListDelegate.qml
+++ b/examples/twitter/content/ListDelegate.qml
@@ -38,7 +38,6 @@
import QtQuick 2.1
import QtQuick.Controls.Tizen 1.0
-import QtQuick.Controls.Styles.Tizen 1.0 // tmp
import "utils.js" as Utils
Item {
@@ -89,7 +88,7 @@ Item {
+ Utils.prettyDate(model.date)
+ '</span><br/>'
+ '<span style="color:'
- + (mouse.pressed ? 'white' : 'black')
+ + (mouse.pressed ? 'white' : TizenControls.palette.foreground)
+ ';">'
+ richStatus(model.statusText)
+ '</span></body></html>'
@@ -98,12 +97,11 @@ Item {
x: 30
y: 40
z: 2
-
anchors.rightMargin: 30
anchors.bottomMargin: 40
wrapMode: Text.Wrap
textFormat: Text.RichText
- font.family: Theme.fonts.defaultFamily
+ font.family: TizenControls.defaultFontFamily
font.pixelSize: 36
elide: Text.ElideLeft
MouseArea {