Advertisement
dkonigsberg

ActionBarPlacement Signature

Nov 25th, 2014
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. assets/UIUtility.qml
  2. import bb.cascades 1.0
  3. QtObject {
  4. function actionBarPlacementSignature() {
  5. return ActionBarPlacement.OnBar
  6. }
  7. }
  8.  
  9. assets/mindw0h0du/UIUtility.qml
  10. import bb.cascades 1.3
  11.  
  12. QtObject {
  13. function actionBarPlacementSignature() {
  14. return ActionBarPlacement.Signature
  15. }
  16. }
  17.  
  18. assets/SomePage.qml
  19. Page {
  20. actions: [
  21. ActionItem {
  22. title: "Something"
  23. ActionBar.placement: uiutil.actionBarPlacementSignature()
  24. }
  25. ]
  26. attachedObjects: [
  27. UIUtility {
  28. id: uiutil
  29. }
  30. ]
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement