Make clipboard images full width and disable auto-pasting
This commit is contained in:
@@ -276,7 +276,7 @@ Item {
|
|||||||
required property string previewType
|
required property string previewType
|
||||||
|
|
||||||
width: ListView.view.width
|
width: ListView.view.width
|
||||||
height: root.rowHeight
|
height: previewType === "text" ? root.rowHeight : 240
|
||||||
radius: root.cornerRadius
|
radius: root.cornerRadius
|
||||||
color: index === root.selectedIndex ? root.withAlpha(root.foreground, 0.08) : root.withAlpha(root.foreground, mouseArea.containsMouse ? 0.045 : 0)
|
color: index === root.selectedIndex ? root.withAlpha(root.foreground, 0.08) : root.withAlpha(root.foreground, mouseArea.containsMouse ? 0.045 : 0)
|
||||||
|
|
||||||
@@ -318,25 +318,9 @@ Item {
|
|||||||
|
|
||||||
Image {
|
Image {
|
||||||
source: parent.parent.parent.previewImage
|
source: parent.parent.parent.previewImage
|
||||||
anchors.left: parent.left
|
anchors.fill: parent
|
||||||
anchors.top: parent.top
|
|
||||||
anchors.bottom: parent.bottom
|
|
||||||
width: height * 1.5
|
|
||||||
fillMode: Image.PreserveAspectFit
|
fillMode: Image.PreserveAspectFit
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
|
||||||
anchors.left: parent.children[0].right
|
|
||||||
anchors.leftMargin: 12
|
|
||||||
anchors.right: parent.right
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
|
||||||
text: "Image"
|
|
||||||
color: root.foreground
|
|
||||||
opacity: 0.6
|
|
||||||
font.family: root.fontFamily
|
|
||||||
font.pixelSize: 14
|
|
||||||
font.italic: true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user