property int iconSize: 32
property StackView rootStackView: StackView {}
property bool showCloseButton: false
+ property bool backgroundsVisible: true
property FileDetails fileDetails: FileDetails {
id: fileDetails
background: Rectangle {
color: Style.backgroundColor
+ visible: root.backgroundsVisible
}
header: ColumnLayout {
horizontalPadding: root.intendedPadding
iconSize: root.iconSize
rootStackView: root.rootStackView
+ backgroundsVisible: root.backgroundsVisible
}
}
}
StackView {
id: root
- property var accountState: ({})
- property string localPath: ""
+ signal closeButtonClicked
+
+ property alias accountState: fileDetailsPage.accountState
+ property alias localPath: fileDetailsPage.localPath
+ property alias showCloseButton: fileDetailsPage.showCloseButton
+ property bool backgroundsVisible: true
+
+ background: Rectangle {
+ color: Style.backgroundColor
+ visible: root.backgroundsVisible
+ }
initialItem: FileDetailsPage {
+ id: fileDetailsPage
width: parent.width
height: parent.height
- accountState: root.accountState
- localPath: root.localPath
+ backgroundsVisible: root.backgroundsVisible
rootStackView: root
+ onCloseButtonClicked: root.closeButtonClicked()
}
}
property int iconSize: 32
property FileDetails fileDetails: FileDetails {}
property StackView rootStackView: StackView {}
+ property bool backgroundsVisible: true
property bool canCreateLinkShares: true
width: parent.width
height: parent.height
+ backgroundsVisible: root.backgroundsVisible
fileDetails: root.fileDetails
shareModelData: model
signal setPassword(string password)
signal setNote(string note)
+ property bool backgroundsVisible: true
+
property FileDetails fileDetails: FileDetails {}
property var shareModelData: ({})
background: Rectangle {
color: Style.backgroundColor
+ visible: root.backgroundsVisible
}
header: ColumnLayout {
property FileDetails fileDetails: FileDetails {}
property int horizontalPadding: 0
property int iconSize: 32
+ property bool backgroundsVisible: true
readonly property bool sharingPossible: shareModel && shareModel.canShare && shareModel.sharingEnabled
readonly property bool userGroupSharingPossible: sharingPossible && shareModel.userGroupSharingEnabled
iconSize: root.iconSize
fileDetails: root.fileDetails
rootStackView: root.rootStackView
+ backgroundsVisible: root.backgroundsVisible
canCreateLinkShares: root.publicLinkSharingPossible
onCreateNewLinkShare: {
edge: Qt.RightEdge\r
modal: true\r
visible: false\r
+ clip: true\r
\r
background: Rectangle {\r
radius: Systray.useNormalWindow ? 0.0 : Style.trayWindowRadius\r
fileDetailsDrawer.pageToShow);\r
}\r
}\r
- sourceComponent: FileDetailsPage {\r
+ sourceComponent: FileDetailsView {\r
id: fileDetails\r
\r
width: parent.width\r
height: parent.height\r
\r
- background: null\r
+ backgroundsVisible: false\r
accountState: fileDetailsDrawer.folderAccountState\r
localPath: fileDetailsDrawer.fileLocalPath\r
showCloseButton: true\r