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
f91aaf01
Commit
f91aaf01
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
b4351700
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
CodecsModel.cpp
linphone-desktop/src/components/codecs/CodecsModel.cpp
+1
-1
CodecsModel.hpp
linphone-desktop/src/components/codecs/CodecsModel.hpp
+8
-0
CodecLegend.qml
linphone-desktop/ui/modules/Linphone/Codecs/CodecLegend.qml
+2
-0
No files found.
linphone-desktop/src/components/codecs/CodecsModel.cpp
View file @
f91aaf01
...
@@ -89,6 +89,6 @@ QVariant CodecsModel::data (const QModelIndex &index, int role) const {
...
@@ -89,6 +89,6 @@ QVariant CodecsModel::data (const QModelIndex &index, int role) const {
void
CodecsModel
::
enableCodec
(
int
id
,
bool
status
)
{
void
CodecsModel
::
enableCodec
(
int
id
,
bool
status
)
{
Q_ASSERT
(
id
>=
0
&&
id
<
m_codecs
.
count
());
Q_ASSERT
(
id
>=
0
&&
id
<
m_codecs
.
count
());
shared_ptr
<
linphone
::
PayloadType
>
codec
=
m_codecs
[
id
].
toMap
().
value
(
"__codec"
).
value
<>
();
shared_ptr
<
linphone
::
PayloadType
>
codec
=
m_codecs
[
id
].
toMap
().
value
(
"__codec"
).
value
<
shared_ptr
<
linphone
::
PayloadType
>
>
();
codec
->
enable
(
status
);
codec
->
enable
(
status
);
}
}
linphone-desktop/src/components/codecs/CodecsModel.hpp
View file @
f91aaf01
...
@@ -23,10 +23,16 @@
...
@@ -23,10 +23,16 @@
#ifndef CODECS_MODEL_H_
#ifndef CODECS_MODEL_H_
#define CODECS_MODEL_H_
#define CODECS_MODEL_H_
#include <memory>
#include <QAbstractListModel>
#include <QAbstractListModel>
// =============================================================================
// =============================================================================
namespace
linphone
{
class
PayloadType
;
}
class
CodecsModel
:
public
QAbstractListModel
{
class
CodecsModel
:
public
QAbstractListModel
{
Q_OBJECT
;
Q_OBJECT
;
...
@@ -53,4 +59,6 @@ private:
...
@@ -53,4 +59,6 @@ private:
QVariantList
m_codecs
;
QVariantList
m_codecs
;
};
};
Q_DECLARE_METATYPE
(
std
::
shared_ptr
<
linphone
::
PayloadType
>
);
#endif // CODECS_MODEL_H_
#endif // CODECS_MODEL_H_
linphone-desktop/ui/modules/Linphone/Codecs/CodecLegend.qml
View file @
f91aaf01
...
@@ -12,4 +12,6 @@ Text {
...
@@ -12,4 +12,6 @@ Text {
bold
:
true
bold
:
true
pointSize
:
CodecsViewerStyle
.
legend
.
fontSize
pointSize
:
CodecsViewerStyle
.
legend
.
fontSize
}
}
horizontalAlignment
:
Text
.
AlignHCenter
}
}
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