diff options
Diffstat (limited to 'demos/declarative/twitter/content/FatDelegate.qml')
-rw-r--r-- | demos/declarative/twitter/content/FatDelegate.qml | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/demos/declarative/twitter/content/FatDelegate.qml b/demos/declarative/twitter/content/FatDelegate.qml index 194ffb3..7125746 100644 --- a/demos/declarative/twitter/content/FatDelegate.qml +++ b/demos/declarative/twitter/content/FatDelegate.qml @@ -1,5 +1,4 @@ import Qt 4.6 -import "../../flickr/common" Component { id: ListDelegate @@ -15,8 +14,8 @@ Component { } } function addTags(str){ - ret = str.replace(/@[a-zA-Z0-9_]+/g, '<a href="app://$&">$&</a>');//click to jump to user? - ret2 = ret.replace(/http:\/\/[^ \n\t]+/g, '<a href="$&">$&</a>');//surrounds http links with html link tags + var ret = str.replace(/@[a-zA-Z0-9_]+/g, '<a href="app://$&">$&</a>');//click to jump to user? + var ret2 = ret.replace(/http:\/\/[^ \n\t]+/g, '<a href="$&">$&</a>');//surrounds http links with html link tags return ret2; } } |