KarmaToolBar.qml 720 B

12345678910111213141516171819202122232425262728293031
  1. import QtQuick 1.1
  2. import "../parts"
  3. KToolBar {
  4. KButton {
  5. text: qsTr("Pending votings")
  6. onClicked: pageStack.push(Qt.resolvedUrl("PendingVotings.qml"))
  7. }
  8. KButton {
  9. text:qsTr("My Karma")
  10. onClicked: pageStack.push(Qt.resolvedUrl("PersonPage.qml"))
  11. }
  12. KButton {
  13. text:qsTr("People")
  14. onClicked: pageStack.push(Qt.resolvedUrl("People.qml"))
  15. }
  16. KButton {
  17. text: qsTr("Heaven")
  18. onClicked: pageStack.push(Qt.resolvedUrl("Heaven.qml"))
  19. }
  20. KButton {
  21. text: qsTr("Hell")
  22. onClicked: karmaMenu.visible=true
  23. //onClicked: (karmaMenu.status === DialogStatus.Closed) ? karmaMenu.open() : karmaMenu.close()
  24. }
  25. }