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
7e13551c
Commit
7e13551c
authored
Dec 23, 2016
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(app): little fixes
parent
8240c265
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
11 deletions
+3
-11
ContactsListModel.cpp
tests/src/components/contacts/ContactsListModel.cpp
+1
-1
ContactsListModel.hpp
tests/src/components/contacts/ContactsListModel.hpp
+0
-1
ContactsListProxyModel.cpp
tests/src/components/contacts/ContactsListProxyModel.cpp
+1
-7
ContactsListProxyModel.hpp
tests/src/components/contacts/ContactsListProxyModel.hpp
+0
-1
SipAddressesModel.cpp
tests/src/components/sip-addresses/SipAddressesModel.cpp
+1
-1
No files found.
tests/src/components/contacts/ContactsListModel.cpp
View file @
7e13551c
...
@@ -40,7 +40,7 @@ QHash<int, QByteArray> ContactsListModel::roleNames () const {
...
@@ -40,7 +40,7 @@ QHash<int, QByteArray> ContactsListModel::roleNames () const {
QVariant
ContactsListModel
::
data
(
const
QModelIndex
&
index
,
int
role
)
const
{
QVariant
ContactsListModel
::
data
(
const
QModelIndex
&
index
,
int
role
)
const
{
int
row
=
index
.
row
();
int
row
=
index
.
row
();
if
(
row
<
0
||
row
>=
m_list
.
count
())
if
(
!
index
.
isValid
()
||
row
<
0
||
row
>=
m_list
.
count
())
return
QVariant
();
return
QVariant
();
if
(
role
==
Qt
::
DisplayRole
)
if
(
role
==
Qt
::
DisplayRole
)
...
...
tests/src/components/contacts/ContactsListModel.hpp
View file @
7e13551c
...
@@ -9,7 +9,6 @@
...
@@ -9,7 +9,6 @@
// =============================================================================
// =============================================================================
class
ContactsListModel
:
public
QAbstractListModel
{
class
ContactsListModel
:
public
QAbstractListModel
{
friend
class
ContactsListProxyModel
;
friend
class
SipAddressesModel
;
friend
class
SipAddressesModel
;
Q_OBJECT
;
Q_OBJECT
;
...
...
tests/src/components/contacts/ContactsListProxyModel.cpp
View file @
7e13551c
...
@@ -32,13 +32,7 @@ const QRegExp ContactsListProxyModel::m_search_separators("^[^_.-;@ ][_.-;@ ]");
...
@@ -32,13 +32,7 @@ const QRegExp ContactsListProxyModel::m_search_separators("^[^_.-;@ ][_.-;@ ]");
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
ContactsListProxyModel
::
ContactsListProxyModel
(
QObject
*
parent
)
:
QSortFilterProxyModel
(
parent
)
{
ContactsListProxyModel
::
ContactsListProxyModel
(
QObject
*
parent
)
:
QSortFilterProxyModel
(
parent
)
{
m_list
=
CoreManager
::
getInstance
()
->
getContactsListModel
();
setSourceModel
(
CoreManager
::
getInstance
()
->
getContactsListModel
());
setSourceModel
(
m_list
);
for
(
const
ContactModel
*
contact
:
m_list
->
m_list
)
m_weights
[
contact
]
=
0
;
sort
(
0
);
sort
(
0
);
}
}
...
...
tests/src/components/contacts/ContactsListProxyModel.hpp
View file @
7e13551c
...
@@ -39,7 +39,6 @@ private:
...
@@ -39,7 +39,6 @@ private:
void
setConnectedFilter
(
bool
use_connected_filter
);
void
setConnectedFilter
(
bool
use_connected_filter
);
ContactsListModel
*
m_list
;
QString
m_filter
;
QString
m_filter
;
bool
m_use_connected_filter
=
false
;
bool
m_use_connected_filter
=
false
;
...
...
tests/src/components/sip-addresses/SipAddressesModel.cpp
View file @
7e13551c
...
@@ -82,7 +82,7 @@ QHash<int, QByteArray> SipAddressesModel::roleNames () const {
...
@@ -82,7 +82,7 @@ QHash<int, QByteArray> SipAddressesModel::roleNames () const {
QVariant
SipAddressesModel
::
data
(
const
QModelIndex
&
index
,
int
role
)
const
{
QVariant
SipAddressesModel
::
data
(
const
QModelIndex
&
index
,
int
role
)
const
{
int
row
=
index
.
row
();
int
row
=
index
.
row
();
if
(
row
<
0
||
row
>=
m_refs
.
count
())
if
(
!
index
.
isValid
()
||
row
<
0
||
row
>=
m_refs
.
count
())
return
QVariant
();
return
QVariant
();
if
(
role
==
Qt
::
DisplayRole
)
if
(
role
==
Qt
::
DisplayRole
)
...
...
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