Commit 0e3b502c authored by Nate Graham's avatar Nate Graham
Browse files

[wallpapers/image] Improve comments

That way hopefully these functions won't get accidentally removed in the
future.
parent b16eee88
...@@ -35,16 +35,20 @@ QQC2.StackView { ...@@ -35,16 +35,20 @@ QQC2.StackView {
readonly property bool blur: wallpaper.configuration.Blur readonly property bool blur: wallpaper.configuration.Blur
readonly property size sourceSize: Qt.size(root.width * Screen.devicePixelRatio, root.height * Screen.devicePixelRatio) readonly property size sourceSize: Qt.size(root.width * Screen.devicePixelRatio, root.height * Screen.devicePixelRatio)
//public API, the C++ part will look for those // Ppublic API functions accessible from C++:
// e.g. used by WallpaperInterface for drag and drop
function setUrl(url) { function setUrl(url) {
wallpaper.configuration.Image = url wallpaper.configuration.Image = url
imageWallpaper.addUsersWallpaper(url); imageWallpaper.addUsersWallpaper(url);
} }
// e.g. used by slideshow wallpaper plugin
function action_next() { function action_next() {
imageWallpaper.nextSlide(); imageWallpaper.nextSlide();
} }
// e.g. used by slideshow wallpaper plugin
function action_open() { function action_open() {
Qt.openUrlExternally(modelImage) Qt.openUrlExternally(modelImage)
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment