mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-07 03:22:33 +01:00
Change display item title instead of missing image
This commit is contained in:
parent
768d666622
commit
73f889751b
@ -1,6 +1,7 @@
|
|||||||
import QtQuick 2.12
|
import QtQuick 2.12
|
||||||
import QtGraphicalEffects 1.0
|
import QtGraphicalEffects 1.0
|
||||||
import QtQuick.Controls 2.12
|
import QtQuick.Controls 2.12
|
||||||
|
import QtQuick.Controls.Material 2.12
|
||||||
import QtQuick.Controls.Styles 1.4
|
import QtQuick.Controls.Styles 1.4
|
||||||
import ScreenPlay 1.0
|
import ScreenPlay 1.0
|
||||||
import ScreenPlay.Enums.InstalledType 1.0
|
import ScreenPlay.Enums.InstalledType 1.0
|
||||||
@ -116,9 +117,25 @@ Item {
|
|||||||
visible: false
|
visible: false
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
anchors.fill: parent
|
||||||
|
color: Material.backgroundColor
|
||||||
|
}
|
||||||
|
|
||||||
|
Text {
|
||||||
|
text: root.customTitle
|
||||||
|
font.family: ScreenPlay.settings.font
|
||||||
|
font.pointSize: 16
|
||||||
|
color: Material.primaryTextColor
|
||||||
|
anchors.centerIn: parent
|
||||||
|
horizontalAlignment: Text.AlignHCenter
|
||||||
|
}
|
||||||
|
|
||||||
ScreenPlayItemImage {
|
ScreenPlayItemImage {
|
||||||
id: screenPlayItemImage
|
id: screenPlayItemImage
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
enabled: visible
|
||||||
|
visible: m_preview !== "" && m_previewGIF !== ""
|
||||||
sourceImage: m_preview
|
sourceImage: m_preview
|
||||||
sourceImageGIF: m_previewGIF
|
sourceImageGIF: m_previewGIF
|
||||||
type: root.type
|
type: root.type
|
||||||
|
Loading…
Reference in New Issue
Block a user