ToolBar1Function.qml 802 B

12345678910111213141516171819202122232425262728293031
  1. /**
  2. * Copyright (c) 2012 Nokia Corporation.
  3. */
  4. import QtQuick 1.1
  5. import com.nokia.symbian 1.1
  6. ToolBarLayout {
  7. property bool itemsEnabled
  8. ToolButton {
  9. platformInverted: window.platformInverted
  10. flat: true
  11. iconSource: "toolbar-back"
  12. onClicked: window.pageStack.depth <= 1 ? Qt.quit() : window.pageStack.pop()
  13. }
  14. ToolButton {
  15. platformInverted: window.platformInverted
  16. iconSource: platformInverted ?
  17. (enabled ? "../../Images/Icons/attach_w.svg" : "../../Images/Icons/attach_w_disabled.svg" ):
  18. (enabled ? "../../Images/Icons/attach.svg" : "../../Images/Icons/attach_disabled.svg")
  19. enabled: itemsEnabled
  20. }
  21. ToolButton {
  22. visible: false
  23. }
  24. }