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
b0378709
Commit
b0378709
authored
Apr 27, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore(CMakeLists.txt): deal with qt includes and Winsockapi
parent
353398c7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
CMakeLists.txt
linphone-desktop/CMakeLists.txt
+6
-0
CallsListModel.cpp
linphone-desktop/src/components/calls/CallsListModel.cpp
+3
-4
No files found.
linphone-desktop/CMakeLists.txt
View file @
b0378709
...
...
@@ -63,6 +63,12 @@ endif()
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
${
CUSTOM_FLAGS
}
"
)
set
(
CMAKE_CXX_FLAGS_DEBUG
"
${
CMAKE_CXX_FLAGS_DEBUG
}
-DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG"
)
# See: http://stackoverflow.com/a/1372836
if
(
WIN32
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-D_WINSOCKAPI_"
)
set
(
CMAKE_CXX_FLAGS_DEBUG
"
${
CMAKE_CXX_FLAGS_DEBUG
}
-D_WINSOCKAPI_"
)
endif
()
# ------------------------------------------------------------------------------
# Define packages, libs, sources, headers, resources and languages.
# ------------------------------------------------------------------------------
...
...
linphone-desktop/src/components/calls/CallsListModel.cpp
View file @
b0378709
...
...
@@ -176,7 +176,7 @@ void CallsListModel::addCall (const shared_ptr<linphone::Call> &linphoneCall) {
CallModel
*
call
=
new
CallModel
(
linphoneCall
);
qInfo
()
<<
"Add call:"
<<
call
;
qInfo
()
<<
QStringLiteral
(
"Add call:"
)
<<
call
;
App
::
getInstance
()
->
getEngine
()
->
setObjectOwnership
(
call
,
QQmlEngine
::
CppOwnership
);
...
...
@@ -188,16 +188,15 @@ void CallsListModel::addCall (const shared_ptr<linphone::Call> &linphoneCall) {
}
void
CallsListModel
::
removeCall
(
const
shared_ptr
<
linphone
::
Call
>
&
linphoneCall
)
{
// TODO: It will be (maybe) necessary to use a single scheduled function in the future.
QTimer
::
singleShot
(
DELAY_BEFORE_REMOVE_CALL
,
this
,
[
this
,
linphoneCall
]()
{
CallModel
*
call
=
&
linphoneCall
->
getData
<
CallModel
>
(
"call-model"
);
qInfo
()
<<
"Removing call:"
<<
call
;
qInfo
()
<<
QStringLiteral
(
"Removing call:"
)
<<
call
;
int
index
=
mList
.
indexOf
(
call
);
if
(
index
==
-
1
||
!
removeRow
(
index
))
qWarning
()
<<
"Unable to remove call:"
<<
call
;
qWarning
()
<<
QStringLiteral
(
"Unable to remove call:"
)
<<
call
;
if
(
mList
.
empty
())
App
::
getInstance
()
->
getCallsWindow
()
->
close
();
...
...
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