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
b97b823f
Commit
b97b823f
authored
Nov 25, 2016
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unstable
parent
bcee4d9d
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
25 additions
and
10 deletions
+25
-10
en.ts
tests/assets/languages/en.ts
+2
-2
fr.ts
tests/assets/languages/fr.ts
+2
-2
ChatModel.hpp
tests/src/components/chat/ChatModel.hpp
+3
-2
ChatProxyModel.cpp
tests/src/components/chat/ChatProxyModel.cpp
+8
-0
ChatProxyModel.hpp
tests/src/components/chat/ChatProxyModel.hpp
+4
-0
ContactsListProxyModel.cpp
tests/src/components/contacts/ContactsListProxyModel.cpp
+5
-3
ContactsListProxyModel.hpp
tests/src/components/contacts/ContactsListProxyModel.hpp
+1
-1
No files found.
tests/assets/languages/en.ts
View file @
b97b823f
...
...
@@ -184,11 +184,11 @@
<
/message
>
<
message
>
<
source
>
lostIncomingCall
<
/source
>
<
translation
>
Lost
incoming
call
<
/translation
>
<
translation
type
=
"
vanished
"
>
Lost
incoming
call
<
/translation
>
<
/message
>
<
message
>
<
source
>
lostOutgoingCall
<
/source
>
<
translation
>
Lost
outgoing
call
<
/translation
>
<
translation
type
=
"
vanished
"
>
Lost
outgoing
call
<
/translation
>
<
/message
>
<
message
>
<
source
>
endCall
<
/source
>
...
...
tests/assets/languages/fr.ts
View file @
b97b823f
...
...
@@ -184,11 +184,11 @@
<
/message
>
<
message
>
<
source
>
lostIncomingCall
<
/source
>
<
translation
>
Appel
entrant
manqu
é
<
/translation
>
<
translation
type
=
"
vanished
"
>
Appel
entrant
manqu
é
<
/translation
>
<
/message
>
<
message
>
<
source
>
lostOutgoingCall
<
/source
>
<
translation
>
Appel
sortant
manqu
é
<
/translation
>
<
translation
type
=
"
vanished
"
>
Appel
sortant
manqu
é
<
/translation
>
<
/message
>
<
message
>
<
source
>
endCall
<
/source
>
...
...
tests/src/components/chat/ChatModel.hpp
View file @
b97b823f
...
...
@@ -22,12 +22,15 @@ signals:
void
sipAddressChanged
(
const
QString
&
sipAddress
);
public:
typedef
QPair
<
QVariantMap
,
std
::
shared_ptr
<
void
>
>
ChatEntryData
;
enum
Roles
{
ChatEntry
=
Qt
::
DisplayRole
,
SectionDate
};
enum
EntryType
{
BaseEntry
,
MessageEntry
,
CallEntry
};
...
...
@@ -57,8 +60,6 @@ public slots:
void
removeAllEntries
();
private:
typedef
QPair
<
QVariantMap
,
std
::
shared_ptr
<
void
>
>
ChatEntryData
;
void
fillMessageEntry
(
QVariantMap
&
dest
,
const
std
::
shared_ptr
<
linphone
::
ChatMessage
>
&
message
...
...
tests/src/components/chat/ChatProxyModel.cpp
View file @
b97b823f
#include "ChatProxyModel.hpp"
#include <QtDebug>
// ===================================================================
ChatProxyModel
::
ChatProxyModel
(
QObject
*
parent
)
:
QSortFilterProxyModel
(
parent
)
{
...
...
@@ -9,5 +10,12 @@ ChatProxyModel::ChatProxyModel (QObject *parent) : QSortFilterProxyModel(parent)
}
bool
ChatProxyModel
::
filterAcceptsRow
(
int
source_row
,
const
QModelIndex
&
source_parent
)
const
{
QModelIndex
index
=
sourceModel
()
->
index
(
source_row
,
0
,
source_parent
);
const
QVariantMap
&
data
=
qvariant_cast
<
QVariantMap
>
(
index
.
data
()
);
qDebug
()
<<
data
[
"type"
];
return
true
;
// TODO.
}
tests/src/components/chat/ChatProxyModel.hpp
View file @
b97b823f
...
...
@@ -26,6 +26,10 @@ public slots:
return
&
m_chat_model
;
}
void
setEntryTypeFilter
(
ChatModel
::
EntryType
type
)
{
// TODO.
}
protected:
bool
filterAcceptsRow
(
int
source_row
,
const
QModelIndex
&
source_parent
)
const
;
...
...
tests/src/components/contacts/ContactsListProxyModel.cpp
View file @
b97b823f
...
...
@@ -151,7 +151,9 @@ float ContactsListProxyModel::computeContactWeight (const ContactModel &contact)
// -------------------------------------------------------------------
void
ContactsListProxyModel
::
setConnectedFilter
(
bool
useConnectedFilter
)
{
m_use_connected_filter
=
useConnectedFilter
;
invalidate
();
void
ContactsListProxyModel
::
setConnectedFilter
(
bool
use_connected_filter
)
{
if
(
use_connected_filter
!=
m_use_connected_filter
)
{
m_use_connected_filter
=
use_connected_filter
;
invalidate
();
}
}
tests/src/components/contacts/ContactsListProxyModel.hpp
View file @
b97b823f
...
...
@@ -35,7 +35,7 @@ private:
bool
isConnectedFilterUsed
()
const
{
return
m_use_connected_filter
;
}
void
setConnectedFilter
(
bool
use
ConnectedF
ilter
);
void
setConnectedFilter
(
bool
use
_connected_f
ilter
);
static
const
QRegExp
m_search_separators
;
...
...
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