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
da121ffb
Commit
da121ffb
authored
Jul 26, 2014
by
Aleksi Suomalainen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[alarms] Allow alarms window to be swipeable out.
parent
7d24d1a1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
compositor.qml
src/qml/compositor.qml
+9
-6
No files found.
src/qml/compositor.qml
View file @
da121ffb
...
@@ -41,7 +41,7 @@ Compositor {
...
@@ -41,7 +41,7 @@ Compositor {
// The application window that was most recently topmost
// The application window that was most recently topmost
property
Item
topmostApplicationWindow
property
Item
topmostApplicationWindow
property
Item
topmostAlarmWindow
property
Item
topmostAlarmWindow
:
null
function
windowToFront
(
winId
)
{
function
windowToFront
(
winId
)
{
var
o
=
root
.
windowForId
(
winId
)
var
o
=
root
.
windowForId
(
winId
)
...
@@ -115,13 +115,13 @@ Compositor {
...
@@ -115,13 +115,13 @@ Compositor {
}
}
Item
{
Item
{
id
:
alarmsLayer
id
:
alarmsLayer
z
:
7
z
:
3
}
}
}
}
ScreenGestureArea
{
ScreenGestureArea
{
id
:
gestureArea
id
:
gestureArea
z
:
2
z
:
7
anchors.fill
:
parent
anchors.fill
:
parent
...
@@ -178,7 +178,7 @@ Compositor {
...
@@ -178,7 +178,7 @@ Compositor {
}
}
PropertyChanges
{
PropertyChanges
{
target
:
app
Layer
target
:
root
.
topmostAlarmWindow
==
null
?
appLayer
:
alarms
Layer
x
:
gestureArea
.
horizontal
?
gestureArea
.
value
:
0
x
:
gestureArea
.
horizontal
?
gestureArea
.
value
:
0
y
:
gestureArea
.
horizontal
?
0
:
gestureArea
.
value
y
:
gestureArea
.
horizontal
?
0
:
gestureArea
.
value
}
}
...
@@ -343,10 +343,13 @@ Compositor {
...
@@ -343,10 +343,13 @@ Compositor {
}
}
onWindowRemoved
:
{
onWindowRemoved
:
{
console
.
log
(
"
Compositor: Window removed
\"
"
+
window
.
title
+
"
\"
"
)
console
.
log
(
"
Compositor: Window removed
\"
"
+
window
.
title
+
"
\"
"
+
"
category:
"
+
window
.
category
)
var
w
=
window
.
userData
;
var
w
=
window
.
userData
;
if
(
window
.
category
==
"
alarm
"
)
{
root
.
topmostAlarmWindow
=
null
setCurrentWindow
(
root
.
homeWindow
)
}
if
(
root
.
topmostWindow
==
w
)
if
(
root
.
topmostWindow
==
w
)
setCurrentWindow
(
root
.
homeWindow
);
setCurrentWindow
(
root
.
homeWindow
);
...
...
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