Skip to content

Commit

Permalink
Clean up CircleItem, rename it to CircleMask
Browse files Browse the repository at this point in the history
  • Loading branch information
iBelieve committed Jan 28, 2015
1 parent d462026 commit 2d1c4a9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,22 @@ import QtGraphicalEffects 1.0
Item {
id: item

property Item content
property alias source: mask.source

Image {
id: mask
source: Qt.resolvedUrl("images/circle.png")
Rectangle {
id: circleMask
anchors.fill: parent

smooth: true
visible: false
mipmap: true

radius: Math.max(width/2, height/2)
}

OpacityMask {
id: mask

anchors.fill: parent
source: content
maskSource: mask
maskSource: circleMask
}
}
2 changes: 1 addition & 1 deletion modules/Material/Extras/qmldir
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Material.Extras

CircleImage 0.1 CircleImage.qml
CircleItem 0.1 CircleItem.qml
CircleMask 0.1 CircleMask.qml
Image 0.1 Image.qml
ColumnFlow 0.1 ColumnFlow.qml
Document 0.1 Document.qml
Expand Down

0 comments on commit 2d1c4a9

Please sign in to comment.