Advertisement
tasuku

Untitled

Mar 9th, 2012
366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. import QtQuick 1.1
  2. import Twitter4QML 1.0 as Twitter4QML
  3.  
  4. Rectangle {
  5. width: 360
  6. height: 360
  7.  
  8. Twitter4QML.OAuth {
  9. id: oauth
  10. consumer_key: ""
  11. consumer_secret: ""
  12. token: ''
  13. token_secret: ''
  14. user_id: ''
  15. screen_name: ''
  16. }
  17.  
  18. ListView {
  19. id: view
  20. anchors.fill: parent
  21.  
  22. model: Twitter4QML.FilterStreamModel {
  23. id: model
  24. track: '#kosenconf'
  25. }
  26.  
  27. delegate: Column {
  28. width: ListView.view.width
  29. Text {
  30. text: model.user.name
  31. font.pixelSize: 16
  32. font.bold: true
  33. }
  34. Text {
  35. width: parent.width
  36. wrapMode: Text.WrapAnywhere
  37. text: model.text
  38. font.pixelSize: 14
  39. }
  40. }
  41. }
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement