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
60388a6f
Commit
60388a6f
authored
Jun 15, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(src/components/chat/ChatProxyModel): use correcltly macros
parent
fd80932d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
ChatProxyModel.cpp
src/components/chat/ChatProxyModel.cpp
+9
-6
No files found.
src/components/chat/ChatProxyModel.cpp
View file @
60388a6f
...
...
@@ -88,14 +88,13 @@ ChatProxyModel::ChatProxyModel (QObject *parent) : QSortFilterProxyModel(parent)
); \
}
#define CREATE_PARENT_MODEL_FUNCTION
(METHOD
) \
void ChatProxyModel::METHOD() { \
static_cast<ChatModel *>(mChatModelFilter->sourceModel())->METHOD(); \
#define CREATE_PARENT_MODEL_FUNCTION
_PARAM(METHOD, ARG_TYPE
) \
void ChatProxyModel::METHOD(
ARG_TYPE value
) { \
static_cast<ChatModel *>(mChatModelFilter->sourceModel())->METHOD(
value
); \
}
CREATE_PARENT_MODEL_FUNCTION
(
removeAllEntries
);
CREATE_PARENT_MODEL_FUNCTION
(
sendFileMessage
);
CREATE_PARENT_MODEL_FUNCTION
(
sendMessage
);
CREATE_PARENT_MODEL_FUNCTION_PARAM
(
sendFileMessage
,
const
QString
&
);
CREATE_PARENT_MODEL_FUNCTION_PARAM
(
sendMessage
,
const
QString
&
);
CREATE_PARENT_MODEL_FUNCTION_WITH_ID
(
downloadFile
);
CREATE_PARENT_MODEL_FUNCTION_WITH_ID
(
openFile
);
...
...
@@ -108,6 +107,10 @@ CREATE_PARENT_MODEL_FUNCTION_WITH_ID(resendMessage);
// -----------------------------------------------------------------------------
void
ChatProxyModel
::
removeAllEntries
()
{
static_cast
<
ChatModel
*>
(
mChatModelFilter
->
sourceModel
())
->
removeAllEntries
();
}
QString
ChatProxyModel
::
getSipAddress
()
const
{
return
static_cast
<
ChatModel
*>
(
mChatModelFilter
->
sourceModel
())
->
getSipAddress
();
}
...
...
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