Skip to content

Commit

Permalink
Merge pull request #6425 from nextcloud/bugfix/setExpirationDateInter…
Browse files Browse the repository at this point in the history
…nalShareLink

clean up some qml code for share dialog
  • Loading branch information
mgallien committed Feb 13, 2024
2 parents 6797a57 + 4f2988a commit 606b1ef
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
2 changes: 0 additions & 2 deletions src/gui/filedetails/ShareDelegate.qml
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,6 @@ GridLayout {
ShareDetailsPage {
id: shareDetailsPage

width: parent.width
height: parent.height
backgroundsVisible: root.backgroundsVisible
accentColor: root.accentColor

Expand Down
8 changes: 4 additions & 4 deletions src/gui/filedetails/ShareDetailsPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ Page {
mid: Style.darkerHover
dark: Style.menuBorder
button: Style.buttonBackgroundColor
window: palette.dark // NOTE: Fusion theme uses darker window colour for the border of the checkbox
window: Style.menuBorder
base: Style.backgroundColor
toolTipBase: Style.backgroundColor
toolTipText: Style.ncTextColor
Expand Down Expand Up @@ -549,7 +549,7 @@ Page {
mid: Style.darkerHover
dark: Style.menuBorder
button: Style.buttonBackgroundColor
window: palette.dark // NOTE: Fusion theme uses darker window colour for the border of the checkbox
window: Style.menuBorder
base: Style.backgroundColor
toolTipBase: Style.backgroundColor
toolTipText: Style.ncTextColor
Expand Down Expand Up @@ -682,7 +682,7 @@ Page {
mid: Style.darkerHover
dark: Style.menuBorder
button: Style.buttonBackgroundColor
window: palette.dark // NOTE: Fusion theme uses darker window colour for the border of the checkbox
window: Style.menuBorder
base: Style.backgroundColor
toolTipBase: Style.backgroundColor
toolTipText: Style.ncTextColor
Expand Down Expand Up @@ -790,7 +790,7 @@ Page {
mid: Style.darkerHover
dark: Style.menuBorder
button: Style.buttonBackgroundColor
window: palette.dark // NOTE: Fusion theme uses darker window colour for the border of the checkbox
window: Style.menuBorder
base: Style.backgroundColor
toolTipBase: Style.backgroundColor
toolTipText: Style.ncTextColor
Expand Down
6 changes: 2 additions & 4 deletions src/gui/filedetails/ShareeSearchField.qml
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,7 @@ TextField {
interactive: true

highlight: Rectangle {
width: shareeListView.currentItem.width
height: shareeListView.currentItem.height
anchors.fill: shareeListView.currentItem
color: palette.highlight
}
highlightFollowsCurrentItem: true
Expand All @@ -200,8 +199,7 @@ TextField {

model: root.shareeModel
delegate: ShareeDelegate {
anchors.left: parent.left
anchors.right: parent.right
width: shareeListView.contentItem.width

enabled: model.type !== Sharee.LookupServerSearchResults
hoverEnabled: model.type !== Sharee.LookupServerSearchResults
Expand Down
1 change: 1 addition & 0 deletions src/gui/filedetails/sharemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ QVariant ShareModel::data(const QModelIndex &index, const int role) const
// Deal with roles that only return certain values for link or user/group share types
case NoteEnabledRole:
case ExpireDateEnabledRole:
case HideDownloadEnabledRole:
return false;
case LinkRole:
case LinkShareNameRole:
Expand Down

0 comments on commit 606b1ef

Please sign in to comment.