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
01e54c5c
Commit
01e54c5c
authored
Apr 04, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(src/components/codecs/CodecsModel): in progress
parent
336abb50
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
66 additions
and
33 deletions
+66
-33
CodecsViewer.qml
linphone-desktop/ui/modules/Linphone/Codecs/CodecsViewer.qml
+66
-33
No files found.
linphone-desktop/ui/modules/Linphone/Codecs/CodecsViewer.qml
View file @
01e54c5c
import
QtQml
.
Models
2.2
import
QtQuick
2.7
import
QtQuick
2.7
import
QtQuick
.
Layouts
1.3
import
QtQuick
.
Layouts
1.3
...
@@ -7,7 +8,7 @@ import Linphone.Styles 1.0
...
@@ -7,7 +8,7 @@ import Linphone.Styles 1.0
// =============================================================================
// =============================================================================
Column
{
Column
{
property
alias
model
:
vi
ew
.
model
property
alias
model
:
vi
sualModel
.
model
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
// Header.
// Header.
...
@@ -72,52 +73,84 @@ Column {
...
@@ -72,52 +73,84 @@ Column {
height
:
count
*
CodecsViewerStyle
.
attribute
.
height
height
:
count
*
CodecsViewerStyle
.
attribute
.
height
delegate
:
Rectangle
{
model
:
DelegateModel
{
color
:
'
transparent
'
id
:
visualModel
height
:
CodecsViewerStyle
.
attribute
.
height
delegate
:
MouseArea
{
width
:
parent
.
width
id
:
dragArea
RowLayout
{
property
bool
held
:
false
anchors.fill
:
parent
spacing
:
CodecsViewerStyle
.
column
.
spacing
CodecAttribute
{
anchors
{
Layout.preferredWidth
:
CodecsViewerStyle
.
column
.
mimeWidth
left
:
parent
.
left
text
:
$codec
.
mime
right
:
parent
.
right
}
}
CodecAttribute
{
drag
{
Layout.preferredWidth
:
CodecsViewerStyle
.
column
.
encoderDescriptionWidth
axis
:
Drag
.
YAxis
t
ext
:
$codec
.
encoderDescription
t
arget
:
held
?
content
:
undefined
}
}
CodecAttribute
{
height
:
CodecsViewerStyle
.
attribute
.
height
Layout.preferredWidth
:
CodecsViewerStyle
.
column
.
clockRateWidth
text
:
$codec
.
clockRate
}
CodecAttribute
{
onPressAndHold
:
held
=
true
Layout.preferredWidth
:
CodecsViewerStyle
.
column
.
bitrateWidth
onReleased
:
held
=
false
text
:
$codec
.
bitrate
}
TextField
{
RowLayout
{
Layout.preferredWidth
:
CodecsViewerStyle
.
column
.
recvFmtpWidth
id
:
content
text
:
$codec
.
recvFmtp
}
Drag.active
:
dragArea
.
held
Drag.source
:
dragArea
Drag.hotSpot.x
:
width
/
2
Drag.hotSpot.y
:
height
/
2
height
:
dragArea
.
height
width
:
dragArea
.
width
spacing
:
CodecsViewerStyle
.
column
.
spacing
CodecAttribute
{
Layout.preferredWidth
:
CodecsViewerStyle
.
column
.
mimeWidth
text
:
$codec
.
mime
}
Switch
{
CodecAttribute
{
checked
:
$codec
.
enabled
Layout.preferredWidth
:
CodecsViewerStyle
.
column
.
encoderDescriptionWidth
text
:
$codec
.
encoderDescription
}
onClicked
:
view
.
model
.
enableCodec
(
index
,
!
checked
)
CodecAttribute
{
Layout.preferredWidth
:
CodecsViewerStyle
.
column
.
clockRateWidth
text
:
$codec
.
clockRate
}
CodecAttribute
{
Layout.preferredWidth
:
CodecsViewerStyle
.
column
.
bitrateWidth
text
:
$codec
.
bitrate
}
TextField
{
Layout.preferredWidth
:
CodecsViewerStyle
.
column
.
recvFmtpWidth
text
:
$codec
.
recvFmtp
}
Switch
{
checked
:
$codec
.
enabled
onClicked
:
view
.
model
.
enableCodec
(
index
,
!
checked
)
}
}
}
}
Mouse
Area
{
Drop
Area
{
id
:
mouseArea
anchors.fill
:
parent
anchors.fill
:
parent
onEntered
:
{
visualModel
.
items
.
move
(
drag
.
source
.
DelegateModel
.
itemsIndex
,
dragArea
.
DelegateModel
.
itemsIndex
)
}
}
}
}
}
}
}
}
...
...
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