Implement drag&drop support for flatpaks
BUG: 495552
This commit is contained in:
committed by
Tobias Fella
parent
65c6f4c1d3
commit
38523c97c5
@@ -31,11 +31,6 @@ QQC2.ScrollView {
|
||||
*/
|
||||
required property bool compactLayout
|
||||
|
||||
/**
|
||||
* @brief Whether the compact message layout is to be used.
|
||||
*/
|
||||
property bool fileDropEnabled: true
|
||||
|
||||
/**
|
||||
* @brief The TimelineMarkReadCondition to use for when messages should be marked as read automatically.
|
||||
*/
|
||||
@@ -268,8 +263,7 @@ QQC2.ScrollView {
|
||||
DropArea {
|
||||
id: dropAreaFile
|
||||
anchors.fill: parent
|
||||
onDropped: drop => { _private.room.mainCache.attachmentPath = drop.urls[0] }
|
||||
enabled: root.fileDropEnabled
|
||||
onDropped: drop => _private.room.mainCache.drop(drop.urls, drop.getDataAsString("application/vnd.portal.filetransfer"))
|
||||
}
|
||||
|
||||
QQC2.Pane {
|
||||
|
||||
Reference in New Issue
Block a user