forked from quickshell/quickshell
widgets/iconimage: add typegen hints to alias properties
This commit is contained in:
parent
abe0327e67
commit
01f2be057e
2 changed files with 10 additions and 4 deletions
|
@ -28,10 +28,10 @@ Item {
|
||||||
|
|
||||||
/// URL of the image. Defaults to an empty string.
|
/// URL of the image. Defaults to an empty string.
|
||||||
/// See @@QtQuick.Image.source.
|
/// See @@QtQuick.Image.source.
|
||||||
property alias source: image.source
|
property /*string*/alias source: image.source
|
||||||
/// If the image should be loaded asynchronously. Defaults to false.
|
/// If the image should be loaded asynchronously. Defaults to false.
|
||||||
/// See @@QtQuick.Image.asynchronous.
|
/// See @@QtQuick.Image.asynchronous.
|
||||||
property alias asynchronous: image.asynchronous
|
property /*bool*/alias asynchronous: image.asynchronous
|
||||||
/// The load status of the image. See @@QtQuick.Image.status.
|
/// The load status of the image. See @@QtQuick.Image.status.
|
||||||
property alias status: image.status
|
property alias status: image.status
|
||||||
/// If the image should be mipmap filtered. Defaults to false.
|
/// If the image should be mipmap filtered. Defaults to false.
|
||||||
|
@ -39,12 +39,12 @@ Item {
|
||||||
///
|
///
|
||||||
/// Try enabling this if your image is significantly scaled down
|
/// Try enabling this if your image is significantly scaled down
|
||||||
/// and looks bad because of it.
|
/// and looks bad because of it.
|
||||||
property alias mipmap: image.mipmap
|
property /*bool*/alias mipmap: image.mipmap
|
||||||
/// The @@QtQuick.Image backing this object.
|
/// The @@QtQuick.Image backing this object.
|
||||||
///
|
///
|
||||||
/// This is useful if you need to access more functionality than
|
/// This is useful if you need to access more functionality than
|
||||||
/// exposed by IconImage.
|
/// exposed by IconImage.
|
||||||
property alias backer: image
|
property /*Image*/alias backer: image
|
||||||
|
|
||||||
/// The suggested size of the image. This is used as a defualt
|
/// The suggested size of the image. This is used as a defualt
|
||||||
/// for @@QtQuick.Item.implicitWidth and @@QtQuick.Item.implicitHeight.
|
/// for @@QtQuick.Item.implicitWidth and @@QtQuick.Item.implicitHeight.
|
||||||
|
|
6
src/widgets/module.md
Normal file
6
src/widgets/module.md
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
name = "Quickshell.Widgets"
|
||||||
|
description = "Bundled widgets"
|
||||||
|
qml_files = [
|
||||||
|
"IconImage.qml",
|
||||||
|
]
|
||||||
|
-----
|
Loading…
Add table
Add a link
Reference in a new issue