Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
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
Administrator
linphone-desktop
Commits
9d9e55c5
Commit
9d9e55c5
authored
Oct 26, 2016
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(Collapse): supports `target` attribute
parent
7e27ef88
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
35 deletions
+29
-35
Collapse.qml
tests/ui/modules/Common/Collapse.qml
+22
-10
AbstractDropDownMenu.qml
tests/ui/modules/Common/Popup/AbstractDropDownMenu.qml
+4
-4
MainWindow.qml
tests/ui/views/MainWindow/MainWindow.qml
+3
-21
No files found.
tests/ui/modules/Common/Collapse.qml
View file @
9d9e55c5
...
...
@@ -7,6 +7,10 @@ import Common.Styles 1.0
// ===================================================================
Item
{
id
:
collapse
property
var
target
property
bool
_collapsed
:
false
signal
collapsed
(
bool
collapsed
)
...
...
@@ -31,13 +35,12 @@ Item {
icon
:
'
collapse
'
iconSize
:
CollapseStyle
.
iconSize
onClicked
:
collapse
()
onClicked
:
collapse
.
collapse
()
}
// -----------------------------------------------------------------
states
:
[
State
{
states
:
State
{
name
:
'
Collapsed
'
when
:
_collapsed
...
...
@@ -45,8 +48,17 @@ Item {
target
:
button
rotation
:
180
}
PropertyChanges
{
target
:
collapse
.
target
height
:
480
maximumHeight
:
99999
maximumWidth
:
99999
minimumHeight
:
480
}
}
]
transitions
:
Transition
{
RotationAnimation
{
...
...
tests/ui/modules/Common/Popup/AbstractDropDownMenu.qml
View file @
9d9e55c5
...
...
@@ -104,7 +104,7 @@ Item {
states
:
[
State
{
name
:
'
O
pened
'
name
:
'
o
pened
'
when
:
_isOpen
PropertyChanges
{
...
...
@@ -119,7 +119,7 @@ Item {
transitions
:
[
Transition
{
from
:
''
to
:
'
O
pened
'
to
:
'
o
pened
'
NumberAnimation
{
duration
:
PopupStyle
.
animation
.
openingDuration
...
...
@@ -134,13 +134,13 @@ Item {
}
ScriptAction
{
script
:
menu
O
pened
()
script
:
menu
o
pened
()
}
}
},
Transition
{
from
:
'
O
pened
'
from
:
'
o
pened
'
to
:
''
NumberAnimation
{
...
...
tests/ui/views/MainWindow/MainWindow.qml
View file @
9d9e55c5
...
...
@@ -37,13 +37,11 @@ ApplicationWindow {
// Collapse.
Collapse
{
Layout.preferredWidth
:
25
Layout.fillHeight
:
parent
.
height
id
:
collapse
onCollapsed
:
windowStates
.
state
=
collapsed
?
'
collapsed
'
:
''
Layout.fillHeight
:
parent
.
height
Layout.preferredWidth
:
25
target
:
window
}
// User info.
...
...
@@ -221,22 +219,6 @@ ApplicationWindow {
}
}
StateGroup
{
id
:
windowStates
states
:
State
{
name
:
'
collapsed
'
PropertyChanges
{
height
:
480
maximumHeight
:
99999
maximumWidth
:
99999
minimumHeight
:
480
target
:
window
}
}
}
ListModel
{
id
:
model1
...
...
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