Commit e596ba88 authored by Armin Felder's avatar Armin Felder
Browse files

dekstop fileupload

Please enter the commit message for your changes. Lines starting
parent 8b9d7073
Pipeline #744 passed with stage
in 4 minutes and 38 seconds
Subproject commit 980cb3778fee4d2fe4c7a174454664d6d78ce5bf
Subproject commit 2880990c63dd9bf11baac71245f08abb896b1da3
......@@ -23,6 +23,7 @@ import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick.Layouts 1.3
import QtQuick.Window 2.2
import QtQuick.Dialogs 1.3
import "qrc:/qml/various"
import "qrc:/qml/style"
import "qrc:/qml"
......@@ -208,6 +209,19 @@ Item {
}
}
FileDialog {
id: fileDialog
title: qsTr("select file to upload")
folder: shortcuts.home
selectMultiple: false
onAccepted: {
rocketChatController.uploadFile(currentChannel,fileDialog.fileUrls)
}
onRejected: {
console.log("Canceled")
}
}
StyledToolButton {
id: fileButton
font.family: Fonts.fontello.name
......@@ -231,7 +245,7 @@ Item {
}
onPressed: {
if (Qt.platform.os == "linux") {
if (Qt.platform.os == "linux"|| Qt.platform.os == "windows") {
fileDialog.open()
} else if(Qt.platform.os == "ios"){
console.log("ios picker called")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment