Displaying images in item delegates.
This commit is contained in:
@ -20,6 +20,10 @@ qt_add_qml_module(${TARGET_APP}
|
|||||||
ListPage.qml
|
ListPage.qml
|
||||||
ListItemDelegate.qml
|
ListItemDelegate.qml
|
||||||
ExpandableItemDelegate.qml
|
ExpandableItemDelegate.qml
|
||||||
|
RESOURCES
|
||||||
|
"icons/software-application.png"
|
||||||
|
"icons/moreUp.png"
|
||||||
|
"icons/moreDown.png"
|
||||||
)
|
)
|
||||||
|
|
||||||
# Qt for iOS sets MACOSX_BUNDLE_GUI_IDENTIFIER automatically since Qt 6.1.
|
# Qt for iOS sets MACOSX_BUNDLE_GUI_IDENTIFIER automatically since Qt 6.1.
|
||||||
|
|||||||
@ -48,12 +48,13 @@ Item {
|
|||||||
width: parent.width
|
width: parent.width
|
||||||
spacing: 10
|
spacing: 10
|
||||||
|
|
||||||
Rectangle {
|
Image {
|
||||||
id: icon
|
id: icon
|
||||||
width: 50
|
width: 50
|
||||||
height: 50
|
height: 50
|
||||||
color: wccLavenderDark
|
source: "icons/software-application.png"
|
||||||
}
|
}
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
width: background.width - icon.width - 20
|
width: background.width - icon.width - 20
|
||||||
height: icon.height
|
height: icon.height
|
||||||
@ -140,7 +141,7 @@ Item {
|
|||||||
right: flick.right
|
right: flick.right
|
||||||
top: flick.top
|
top: flick.top
|
||||||
}
|
}
|
||||||
source: ":/moreUp.png"
|
source: "icons/moreUp.png"
|
||||||
opacity: flick.atYBeginning ? 0 : 1
|
opacity: flick.atYBeginning ? 0 : 1
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -150,7 +151,7 @@ Item {
|
|||||||
bottom: flick.bottom
|
bottom: flick.bottom
|
||||||
}
|
}
|
||||||
|
|
||||||
source: ":/moreDown.png"
|
source: "icons/moreDown.png"
|
||||||
opacity: flick.atYEnd ? 0 : 1
|
opacity: flick.atYEnd ? 0 : 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
icons/moreDown.png
Normal file
BIN
icons/moreDown.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 91 B |
BIN
icons/moreUp.png
Normal file
BIN
icons/moreUp.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 91 B |
BIN
icons/software-application.png
Normal file
BIN
icons/software-application.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 22 KiB |
Reference in New Issue
Block a user