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
ed68e92c
Commit
ed68e92c
authored
Oct 05, 2014
by
Aleksi Suomalainen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[statusbar] Introduce Layouts module to dynamically contain the statusbar items.
parent
f5bb4ef5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
Statusbar.qml
src/qml/Statusbar.qml
+3
-3
StatusbarItem.qml
src/qml/StatusbarItem.qml
+3
-2
No files found.
src/qml/Statusbar.qml
View file @
ed68e92c
...
@@ -29,6 +29,7 @@
...
@@ -29,6 +29,7 @@
**
**
****************************************************************************************/
****************************************************************************************/
import
QtQuick
2.1
import
QtQuick
2.1
import
QtQuick
.
Layouts
1.0
import
QtQuick
.
Controls
.
Nemo
1.0
import
QtQuick
.
Controls
.
Nemo
1.0
import
QtQuick
.
Controls
.
Styles
.
Nemo
1.0
import
QtQuick
.
Controls
.
Styles
.
Nemo
1.0
import
org
.
freedesktop
.
contextkit
1.0
import
org
.
freedesktop
.
contextkit
1.0
...
@@ -109,7 +110,8 @@ Item {
...
@@ -109,7 +110,8 @@ Item {
visible
:
false
visible
:
false
}
}
Row
{
RowLayout
{
anchors.fill
:
statusbar
spacing
:
16
spacing
:
16
StatusbarItem
{
StatusbarItem
{
source
:
(
cellularSignalBars
.
value
>
0
)
?
"
image://theme/icon_cell
"
+
cellularSignalBars
.
value
:
"
image://theme/icon_cell1
"
source
:
(
cellularSignalBars
.
value
>
0
)
?
"
image://theme/icon_cell
"
+
cellularSignalBars
.
value
:
"
image://theme/icon_cell1
"
...
@@ -175,8 +177,6 @@ Item {
...
@@ -175,8 +177,6 @@ Item {
source
:
"
image://theme/icon_play_pause
"
source
:
"
image://theme/icon_play_pause
"
}
}
StatusbarItem
{
StatusbarItem
{
width
:
30
height
:
48
Label
{
Label
{
id
:
hours
id
:
hours
width
:
16
width
:
16
...
...
src/qml/StatusbarItem.qml
View file @
ed68e92c
import
QtQuick
2.0
import
QtQuick
2.0
import
QtQuick
.
Layouts
1.0
Item
{
Item
{
height
:
48
width
:
48
property
alias
source
:
icon
.
source
property
alias
source
:
icon
.
source
property
string
panel_source
property
string
panel_source
property
Component
panel
property
Component
panel
Layout.fillWidth
:
true
Layout.fillHeight
:
true
Image
{
Image
{
id
:
icon
id
:
icon
anchors.centerIn
:
parent
anchors.centerIn
:
parent
...
...
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