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
c7ce5307
Commit
c7ce5307
authored
Nov 16, 2014
by
Filip Matijević
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[notifications] remove orientationAngleContextProperty
parent
f8487c86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
37 deletions
+1
-37
NotificationPreview.qml
src/qml/NotificationPreview.qml
+1
-37
No files found.
src/qml/NotificationPreview.qml
View file @
c7ce5307
...
...
@@ -23,7 +23,6 @@
// Contact: Vesa Halttunen <vesa.halttunen@jollamobile.com>
import
QtQuick
2.0
//import org.freedesktop.contextkit 1.0
import
org
.
nemomobile
.
lipstick
0.1
Item
{
...
...
@@ -34,51 +33,16 @@ Item {
width
:
initialSize
.
width
height
:
initialSize
.
height
/*
TODO
ContextProperty {
id: orientationAngleContextProperty
key: "/Screen/CurrentWindow/OrientationAngle"
}
*/
QtObject
{
id
:
orientationAngleContextProperty
property
int
value
:
0
}
MouseArea
{
id
:
notificationArea
property
bool
isPortrait
:
(
orientationAngleContextProperty
.
value
==
90
||
orientationAngleContextProperty
.
value
==
270
)
property
int
notificationHeight
:
102
property
int
notificationMargin
:
14
property
int
notificationIconSize
:
60
anchors.bottom
:
parent
.
bottom
anchors.bottomMargin
:
48
anchors.left
:
parent
.
left
width
:
isPortrait
?
notificationWindow
.
height
:
notificationWindow
.
width
width
:
notificationWindow
.
width
height
:
notificationArea
.
notificationHeight
transform
:
Rotation
{
origin.x
:
{
switch
(
orientationAngleContextProperty
.
value
)
{
case
270
:
return
notificationWindow
.
height
/
2
case
180
:
case
90
:
return
notificationWindow
.
width
/
2
default
:
return
0
}
}
origin
.
y
:
{
switch
(
orientationAngleContextProperty
.
value
)
{
case
270
:
case
180
:
return
notificationWindow
.
height
/
2
case
90
:
return
notificationWindow
.
width
/
2
default
:
return
0
}
}
angle
:
(
orientationAngleContextProperty
.
value
===
undefined
||
orientationAngleContextProperty
.
value
==
0
)
?
0
:
-
360
+
orientationAngleContextProperty
.
value
}
onClicked
:
if
(
notificationPreviewPresenter
.
notification
!=
null
)
notificationPreviewPresenter
.
notification
.
actionInvoked
(
"
default
"
)
...
...
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