making labels selectable
This commit is contained in:
parent
7fe2636b94
commit
7cd57e2376
3 changed files with 45 additions and 17 deletions
|
@ -1,4 +1,4 @@
|
|||
import QtQuick 2.13
|
||||
import QtQuick 2.15
|
||||
import QtQuick.Controls 2.15 as Controls
|
||||
import QtQuick.Dialogs 1.3
|
||||
import QtQuick.Layouts 1.15
|
||||
|
@ -108,13 +108,6 @@ Item {
|
|||
Layout.preferredHeight: 30
|
||||
}
|
||||
|
||||
Controls.Label {
|
||||
id: filePathLabel
|
||||
Layout.preferredWidth: 600
|
||||
Layout.alignment: Qt.AlignCenter
|
||||
text: image.filePath
|
||||
}
|
||||
|
||||
Image {
|
||||
id: imagePreview
|
||||
Layout.preferredWidth: 600
|
||||
|
@ -128,6 +121,20 @@ Item {
|
|||
Layout.fillHeight: true
|
||||
}
|
||||
|
||||
Controls.TextArea {
|
||||
id: filePathLabel
|
||||
Layout.alignment: Qt.AlignBottom
|
||||
Layout.fillWidth: true
|
||||
text: image.filePath
|
||||
background: Item{}
|
||||
readOnly: true
|
||||
HoverHandler {
|
||||
id: hoverHandler
|
||||
enabled: false
|
||||
cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.IBeamCursor
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -144,6 +144,20 @@ Item {
|
|||
Layout.fillHeight: true
|
||||
}
|
||||
|
||||
Controls.TextArea {
|
||||
id: filePathLabel
|
||||
Layout.alignment: Qt.AlignBottom
|
||||
Layout.fillWidth: true
|
||||
text: presentation.filePath
|
||||
background: Item{}
|
||||
readOnly: true
|
||||
HoverHandler {
|
||||
id: hoverHandler
|
||||
enabled: false
|
||||
cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.IBeamCursor
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import QtQuick 2.13
|
||||
import QtQuick 2.15
|
||||
import QtQuick.Controls 2.15 as Controls
|
||||
import QtQuick.Dialogs 1.3
|
||||
import QtQuick.Layouts 1.15
|
||||
|
@ -110,14 +110,6 @@ Item {
|
|||
Layout.columnSpan: 2
|
||||
}
|
||||
|
||||
Controls.Label {
|
||||
id: filePathLabel
|
||||
Layout.columnSpan: 2
|
||||
Layout.preferredWidth: 600
|
||||
Layout.alignment: Qt.AlignCenter
|
||||
text: video.filePath
|
||||
}
|
||||
|
||||
MpvObject {
|
||||
id: videoPreview
|
||||
objectName: "mpv"
|
||||
|
@ -213,6 +205,21 @@ Item {
|
|||
Layout.fillHeight: true
|
||||
}
|
||||
|
||||
Controls.TextArea {
|
||||
id: filePathLabel
|
||||
Layout.alignment: Qt.AlignBottom
|
||||
Layout.fillWidth: true
|
||||
Layout.columnSpan: 2
|
||||
text: video.filePath
|
||||
background: Item{}
|
||||
readOnly: true
|
||||
HoverHandler {
|
||||
id: hoverHandler
|
||||
enabled: false
|
||||
cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.IBeamCursor
|
||||
}
|
||||
}
|
||||
|
||||
/* } */
|
||||
}
|
||||
Timer {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue