Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. Connections {
  2.         id: interactorConnector
  3.         property int mode: 0
  4.         target: interactor
  5.         onMoveUp: {
  6.             list1.currentIndex--
  7.         }
  8.         onMoveDown: {
  9.             list1.currentIndex++
  10.         }
  11.         onChangeModel: {
  12.             if (this.mode == 0) {
  13.                 list1.model = proxyModel
  14.                 mode = 1
  15.             } else {
  16.                 list1.model = cl1.contacts
  17.                 mode = 0
  18.             }
  19.         }
  20.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement