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
10a82b8e
Commit
10a82b8e
authored
Dec 06, 2016
by
SergeyChupligin
Committed by
Chupligin Sergey
Dec 06, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Statusbar] Create screenshot when press and hold cellular status icon
parent
34a897e7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
Statusbar.qml
src/qml/Statusbar.qml
+12
-0
No files found.
src/qml/Statusbar.qml
View file @
10a82b8e
...
...
@@ -34,6 +34,7 @@ import QtQuick.Controls.Nemo 1.0
import
QtQuick
.
Controls
.
Styles
.
Nemo
1.0
import
org
.
freedesktop
.
contextkit
1.0
import
MeeGo
.
Connman
0.2
import
org
.
nemomobile
.
lipstick
0.1
Item
{
id
:
root
...
...
@@ -134,6 +135,17 @@ Item {
StatusbarItem
{
iconSize
:
root
.
height
/
2
source
:
(
cellularSignalBars
.
value
>
0
)
?
"
image://theme/icon_cell
"
+
cellularSignalBars
.
value
:
"
image://theme/icon_cell1
"
MouseArea
{
anchors.fill
:
parent
onPressAndHold
:
{
var
screenShotPath
=
"
/home/nemo/Pictures/Screenshots/
"
var
file
=
"
glacier-screenshot-
"
+
Qt
.
formatDateTime
(
new
Date
,
"
yyMMdd_hhmmss
"
)
+
"
.png
"
Lipstick
.
takeScreenshot
(
screenShotPath
+
file
);
}
}
}
StatusbarItem
{
...
...
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