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
34aa76bd
Commit
34aa76bd
authored
Jul 25, 2014
by
Aleksi Suomalainen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[folders] Show a folder contents.
parent
db763ecf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
2 deletions
+53
-2
LauncherItemDelegate.qml
src/qml/LauncherItemDelegate.qml
+53
-2
No files found.
src/qml/LauncherItemDelegate.qml
View file @
34aa76bd
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
import
QtQuick
2.0
import
QtQuick
2.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
.
nemomobile
.
lipstick
0.1
Item
{
Item
{
id
:
wrapper
id
:
wrapper
...
@@ -52,6 +53,47 @@ Item {
...
@@ -52,6 +53,47 @@ Item {
}
}
}
}
GridView
{
id
:
folderLoader
anchors.top
:
parent
.
bottom
width
:
gridview
.
width
height
:
childrenRect
.
height
cellWidth
:
115
cellHeight
:
cellWidth
+
30
Rectangle
{
anchors.fill
:
parent
opacity
:
0.75
color
:
"
white
"
}
delegate
:
MouseArea
{
width
:
gridview
.
cellWidth
height
:
gridview
.
cellHeight
Image
{
id
:
iconimage
source
:
model
.
object
.
iconId
==
""
?
"
:/images/icons/apps.png
"
:
(
model
.
object
.
iconId
.
indexOf
(
"
/
"
)
==
0
?
"
file://
"
:
"
image://theme/
"
)
+
model
.
object
.
iconId
}
Text
{
id
:
icontext
// elide only works if an explicit width is set
width
:
parent
.
width
elide
:
Text
.
ElideRight
horizontalAlignment
:
Text
.
AlignHCenter
font.pixelSize
:
18
color
:
'
white
'
anchors
{
left
:
parent
.
left
right
:
parent
.
right
top
:
iconimage
.
bottom
topMargin
:
5
}
}
onClicked
:
{
model
.
object
.
launchApplication
()
}
}
}
// Application icon for the launcher
// Application icon for the launcher
MouseArea
{
MouseArea
{
id
:
launcherItem
id
:
launcherItem
...
@@ -65,7 +107,16 @@ Item {
...
@@ -65,7 +107,16 @@ Item {
onClicked
:
{
onClicked
:
{
// TODO: disallow if close mode enabled
// TODO: disallow if close mode enabled
model
.
object
.
launchApplication
()
if
(
model
.
object
.
type
!==
LauncherModel
.
Folder
)
{
model
.
object
.
launchApplication
()
}
else
{
if
(
!
folderLoader
.
visible
)
{
folderLoader
.
visible
=
true
folderLoader
.
model
=
model
.
object
}
else
{
folderLoader
.
visible
=
false
}
}
}
}
onPressAndHold
:
{
onPressAndHold
:
{
...
@@ -157,7 +208,7 @@ Item {
...
@@ -157,7 +208,7 @@ Item {
Spinner
{
Spinner
{
id
:
spinner
id
:
spinner
anchors.centerIn
:
parent
anchors.centerIn
:
parent
enabled
:
(
model
.
object
.
type
===
0
)
?
model
.
object
.
isLaunching
:
false
enabled
:
(
model
.
object
.
type
===
LauncherModel
.
Application
)
?
model
.
object
.
isLaunching
:
false
}
}
}
}
...
...
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