fix(StatusImageCrop): output an error if trying to set cropRect without image
This commit is contained in:
parent
31fbc47053
commit
a54a999f4c
|
@ -54,6 +54,9 @@ _deps
|
||||||
# QtCreator shadow builds
|
# QtCreator shadow builds
|
||||||
build-*/
|
build-*/
|
||||||
|
|
||||||
|
# CMake builds
|
||||||
|
build/
|
||||||
|
|
||||||
# https://github.com/github/gitignore/blob/master/C%2B%2B.gitignore
|
# https://github.com/github/gitignore/blob/master/C%2B%2B.gitignore
|
||||||
# Prerequisites
|
# Prerequisites
|
||||||
*.d
|
*.d
|
||||||
|
|
|
@ -205,9 +205,9 @@ Item {
|
||||||
enabled: bannerCropper.sourceSize.width > 0 && bannerCropper.sourceSize.height > 0
|
enabled: bannerCropper.sourceSize.width > 0 && bannerCropper.sourceSize.height > 0
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
bannerCropperModal.close()
|
|
||||||
bannerPreview.setCropRect(bannerCropper.cropRect)
|
|
||||||
bannerPreview.source = bannerCropper.source
|
bannerPreview.source = bannerCropper.source
|
||||||
|
bannerPreview.setCropRect(bannerCropper.cropRect)
|
||||||
|
bannerCropperModal.close()
|
||||||
root.userSelectedImage = true
|
root.userSelectedImage = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue