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
60a21c7c
Commit
60a21c7c
authored
Apr 06, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(app): little fixes to improve compilation performance
parent
3bc72a26
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
12 deletions
+13
-12
Camera.hpp
linphone-desktop/src/components/camera/Camera.hpp
+7
-2
ContactsListProxyModel.cpp
...esktop/src/components/contacts/ContactsListProxyModel.cpp
+4
-4
ContactsListProxyModel.hpp
...esktop/src/components/contacts/ContactsListProxyModel.hpp
+2
-3
Notifier.hpp
linphone-desktop/src/components/notifier/Notifier.hpp
+0
-1
SmartSearchBarModel.hpp
...p/src/components/smart-search-bar/SmartSearchBarModel.hpp
+0
-2
No files found.
linphone-desktop/src/components/camera/Camera.hpp
View file @
60a21c7c
...
...
@@ -23,16 +23,21 @@
#ifndef CAMERA_H_
#define CAMERA_H_
#include <memory>
#include <QOpenGLFramebufferObject>
#include <QQuickFramebufferObject>
#include "../call/CallModel.hpp"
// =============================================================================
class
CallModel
;
class
Camera
;
struct
ContextInfo
;
namespace
linphone
{
class
Call
;
}
class
CameraRenderer
:
public
QQuickFramebufferObject
::
Renderer
{
friend
class
Camera
;
...
...
linphone-desktop/src/components/contacts/ContactsListProxyModel.cpp
View file @
60a21c7c
...
...
@@ -76,7 +76,7 @@ bool ContactsListProxyModel::filterAcceptsRow (
const
QModelIndex
&
index
=
sourceModel
()
->
index
(
source_row
,
0
,
source_parent
);
const
ContactModel
*
contact
=
index
.
data
().
value
<
ContactModel
*>
();
m_weights
[
contact
]
=
static_cast
<
unsigned
int
>
(
round
(
computeContactWeight
(
*
contact
)));
m_weights
[
contact
]
=
static_cast
<
unsigned
int
>
(
round
(
computeContactWeight
(
contact
)));
return
m_weights
[
contact
]
>
0
&&
(
!
m_use_connected_filter
||
...
...
@@ -125,11 +125,11 @@ float ContactsListProxyModel::computeStringWeight (const QString &string, float
return
percentage
*
FACTOR_POS_OTHER
;
}
float
ContactsListProxyModel
::
computeContactWeight
(
const
ContactModel
&
contact
)
const
{
float
weight
=
computeStringWeight
(
contact
.
getVcardModel
()
->
getUsername
(),
USERNAME_WEIGHT
);
float
ContactsListProxyModel
::
computeContactWeight
(
const
ContactModel
*
contact
)
const
{
float
weight
=
computeStringWeight
(
contact
->
getVcardModel
()
->
getUsername
(),
USERNAME_WEIGHT
);
// Get all contact's addresses.
const
list
<
shared_ptr
<
linphone
::
Address
>
>
addresses
=
contact
.
m_linphone_friend
->
getAddresses
();
const
list
<
shared_ptr
<
linphone
::
Address
>
>
addresses
=
contact
->
m_linphone_friend
->
getAddresses
();
float
size
=
static_cast
<
float
>
(
addresses
.
size
());
for
(
auto
it
=
addresses
.
cbegin
();
it
!=
addresses
.
cend
();
++
it
)
...
...
linphone-desktop/src/components/contacts/ContactsListProxyModel.hpp
View file @
60a21c7c
...
...
@@ -23,12 +23,11 @@
#ifndef CONTACTS_LIST_PROXY_MODEL_H_
#define CONTACTS_LIST_PROXY_MODEL_H_
#include "../contact/ContactModel.hpp"
#include <QSortFilterProxyModel>
// =============================================================================
class
ContactModel
;
class
ContactsListModel
;
class
ContactsListProxyModel
:
public
QSortFilterProxyModel
{
...
...
@@ -52,7 +51,7 @@ protected:
private:
float
computeStringWeight
(
const
QString
&
string
,
float
percentage
)
const
;
float
computeContactWeight
(
const
ContactModel
&
contact
)
const
;
float
computeContactWeight
(
const
ContactModel
*
contact
)
const
;
bool
isConnectedFilterUsed
()
const
{
return
m_use_connected_filter
;
...
...
linphone-desktop/src/components/notifier/Notifier.hpp
View file @
60a21c7c
...
...
@@ -24,7 +24,6 @@
#define NOTIFIER_H_
#include <linphone++/linphone.hh>
#include <QMutex>
#include <QObject>
...
...
linphone-desktop/src/components/smart-search-bar/SmartSearchBarModel.hpp
View file @
60a21c7c
...
...
@@ -23,8 +23,6 @@
#ifndef SMART_SEARCH_BAR_MODEL_H_
#define SMART_SEARCH_BAR_MODEL_H_
#include "../sip-addresses/SipAddressesModel.hpp"
#include <QSortFilterProxyModel>
// =============================================================================
...
...
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