Advertisement
Guest User

Untitled

a guest
Dec 9th, 2016
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 0.91 KB | None | 0 0
  1.             Mousearea {
  2.                 id: number
  3.                 width: 90 / 32 * Theme.fontSizeMedium
  4.                 height: width
  5.                 preventStealing: true
  6.                 onExited: {
  7.                     down = true;
  8.                     dragIndicator.active = true;
  9.                 }
  10.             }
  11.         }
  12.     }
  13.  
  14.     Loader {
  15.         id: dragIndicator
  16.         active: false
  17.         sourceComponent: Component {
  18.             GlassItem {
  19.                 id: dragHighlight
  20.                 width: Theme.itemSizeMedium
  21.                 height: Theme.itemSizeMedium
  22.                 radius: 0.17
  23.                 falloffRadius: 0.17
  24.                 color: Theme.highlightColor
  25.                 x: mouseX + width/2
  26.                 y: mouseY + height/2
  27.                 Drag.active: true
  28.                 Drag.hotSpot.x: width/2
  29.                 Drag.hotSpot.y: height/2
  30.             }
  31.         }
  32.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement