Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
glacier-home
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
NemoMobile
glacier-home
Commits
fd55bad4
Commit
fd55bad4
authored
Aug 12, 2017
by
eekkelund
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AppSwitcher] Fix minimized application, WindowPixapItem, rotation
parent
9a432526
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
SwitcherItem.qml
src/qml/SwitcherItem.qml
+15
-3
No files found.
src/qml/SwitcherItem.qml
View file @
fd55bad4
...
...
@@ -31,6 +31,18 @@ MouseArea {
id
:
switcherItemRoot
property
bool
rotateWindowContent
:
desktop
.
isPortrait
property
int
desktopAngle
:
{
switch
(
desktop
.
orientation
)
{
case
Qt
.
PortraitOrientation
:
return
0
case
Qt
.
InvertedPortraitOrientation
:
return
180
case
Qt
.
LandscapeOrientation
:
return
270
case
Qt
.
InvertedLandscapeOrientation
:
return
90
}
}
WindowPixmapItem
{
id
:
windowPixmap
...
...
@@ -38,9 +50,9 @@ MouseArea {
height
:
rotateWindowContent
?
parent
.
height
:
parent
.
width
windowId
:
model
.
window
transform
:
Rotation
{
angle
:
rotateWindowContent
?
0
:
90
origin.x
:
windowPixmap
.
height
/
2
origin.y
:
windowPixmap
.
height
/
2
angle
:
desktopAngle
origin.x
:
rotateWindowContent
?
windowPixmap
.
width
/
2
:
angle
===
270
?
windowPixmap
.
width
/
2
:
windowPixmap
.
height
/
2
origin.y
:
rotateWindowContent
?
windowPixmap
.
height
/
2
:
angle
===
270
?
windowPixmap
.
width
/
2
:
windowPixmap
.
height
/
2
}
smooth
:
true
radius
:
5
...
...
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