Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Plasma
Plasma Desktop
Commits
7e8b9d4d
Commit
7e8b9d4d
authored
Dec 23, 2020
by
Nate Graham
🔩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[folder view] de-duplicate switch width/height logic
parent
59985c6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
containments/desktop/package/contents/ui/main.qml
containments/desktop/package/contents/ui/main.qml
+3
-9
No files found.
containments/desktop/package/contents/ui/main.qml
View file @
7e8b9d4d
...
...
@@ -51,7 +51,7 @@ FolderViewDropArea {
Layout.maximumWidth
:
isPopup
?
preferredWidth
(
false
)
:
-
1
Layout.maximumHeight
:
isPopup
?
preferredHeight
(
false
)
:
-
1
Plasmoid.switchWidth
:
{
function
switchSize
()
{
// Support expanding into the full representation only on vertical panels.
if
(
isPopup
&&
plasmoid
.
formFactor
===
PlasmaCore
.
Types
.
Vertical
)
{
return
PlasmaCore
.
Units
.
iconSizeHints
.
panel
;
...
...
@@ -60,14 +60,8 @@ FolderViewDropArea {
return
0
;
}
Plasmoid.switchHeight
:
{
// Support expanding into the full representation only on vertical panels.
if
(
isPopup
&&
plasmoid
.
formFactor
===
PlasmaCore
.
Types
.
Vertical
)
{
return
PlasmaCore
.
Units
.
iconSizeHints
.
panel
;
}
return
0
;
}
Plasmoid.switchWidth
:
{
switchSize
();
}
Plasmoid.switchHeight
:
{
switchSize
();
}
LayoutMirroring.enabled
:
Qt
.
application
.
layoutDirection
===
Qt
.
RightToLeft
LayoutMirroring.childrenInherit
:
true
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment