diff --git a/.gitlab-ci-files/job-windows-desktop.yml b/.gitlab-ci-files/job-windows-desktop.yml
index 8e52aa5a9..b34484616 100644
--- a/.gitlab-ci-files/job-windows-desktop.yml
+++ b/.gitlab-ci-files/job-windows-desktop.yml
@@ -3,8 +3,8 @@
#################################################
.build_all_windows_script: &build_all_windows_script |
- SET Qt5_DIR=C:\Qt\5.12.5\msvc2017\lib\cmake
- SET PATH=%PATH%;C:\Qt\5.12.5\msvc2017\bin
+ SET Qt5_DIR=C:\Qt\5.14.2\msvc2017\lib\cmake
+ SET PATH=%PATH%;C:\Qt\5.14.2\msvc2017\bin
IF EXIST build RMDIR /S /Q build
mkdir build
cd build
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ffa820b2e..af67ef04e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -32,7 +32,7 @@ variables:
include:
- '.gitlab-ci-files/job-linux-prepare.yml'
- '.gitlab-ci-files/job-linux-desktop.yml'
- - '.gitlab-ci-files/job-linux-desktop-debian8.yml'
+ #- '.gitlab-ci-files/job-linux-desktop-debian8.yml' #Removed as there is 5.10 and not at least 5.12
- '.gitlab-ci-files/job-linux-desktop-debian9.yml'
## - '.gitlab-ci-files/job-linux-desktop-debian10.yml'
- '.gitlab-ci-files/job-linux-desktop-ubuntu-rolling.yml'
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 786fc5519..160160148 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -20,7 +20,9 @@
#
################################################################################
-cmake_minimum_required(VERSION 3.1)
+cmake_minimum_required(VERSION 3.9)
+#3.9 for qt5_add_big_resources
+
get_cmake_property(vars CACHE_VARIABLES)
foreach(var ${vars})
@@ -155,6 +157,13 @@ include(FindPkgConfig)
set(APP_DEPENDS sdk)
+
+find_package(Qt5 5.12 COMPONENTS Core REQUIRED)
+
+if ( NOT Qt5_FOUND )
+ message(FATAL_ERROR "Minimum supported Qt5 version is 5.12!")
+endif()
+
find_package(LinphoneCxx CONFIG QUIET)
find_package(Linphone CONFIG QUIET)
find_package(bctoolbox CONFIG QUIET)
diff --git a/linphone-app/CMakeLists.txt b/linphone-app/CMakeLists.txt
index 414f05e16..18373675a 100644
--- a/linphone-app/CMakeLists.txt
+++ b/linphone-app/CMakeLists.txt
@@ -19,7 +19,7 @@
# along with this program. If not, see .
#
################################################################################
-cmake_minimum_required(VERSION 3.1)
+cmake_minimum_required(VERSION 3.9)
project(linphoneqt VERSION 4.2.0)
@@ -86,6 +86,8 @@ endif ()
set(QT5_PACKAGES_OPTIONAL TextToSpeech)
set(CMAKE_AUTOMOC ON)
+find_package(Qt5 COMPONENTS ${QT5_PACKAGES} REQUIRED)
+find_package(Qt5 COMPONENTS ${QT5_PACKAGES_OPTIONAL} QUIET)
bc_git_version(${TARGET_NAME} ${PROJECT_VERSION})
@@ -255,7 +257,7 @@ else ()
endif ()
set(QRC_RESOURCES resources.qrc)
-
+qt5_add_big_resources(QRC_BIG_RESOURCES resources.qrc)
set(LANGUAGES_DIRECTORY "${ASSETS_DIR}/languages")
set(I18N_FILENAME i18n.qrc)
set(LANGUAGES da de en es fr_FR hu it ja lt pt_BR ru sv tr uk zh_CN)
@@ -341,8 +343,8 @@ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/src/config.h.cmake" "${CMAKE_CURRENT
# ------------------------------------------------------------------------------
include_directories(src/)
-find_package(Qt5 COMPONENTS ${QT5_PACKAGES} REQUIRED)
-find_package(Qt5 COMPONENTS ${QT5_PACKAGES_OPTIONAL} QUIET)
+
+
if (CMAKE_INSTALL_RPATH)
#Retrieve lib path from a know QT executable
@@ -357,20 +359,20 @@ list(APPEND SOURCES "${CMAKE_CURRENT_BINARY_DIR}/${LANGUAGES_DIRECTORY}/${I18N_F
get_directory_property(TS_FILES DIRECTORY "${LANGUAGES_DIRECTORY}" DEFINITION TS_FILES)
list(APPEND SOURCES ${TS_FILES})
-#add_library(${APP_LIBRARY} OBJECT ${SOURCES} ${HEADERS} ${RESOURCES} ${QML_SOURCES})
-add_library(${APP_LIBRARY} OBJECT ${SOURCES} ${HEADERS} ${QML_SOURCES} ${QRC_RESOURCES})
+#add_library(${APP_LIBRARY} OBJECT ${SOURCES} ${HEADERS} ${QML_SOURCES} ${QRC_RESOURCES})
+add_library(${APP_LIBRARY} OBJECT ${SOURCES} ${HEADERS} ${QML_SOURCES})
if(TARGET_NAME_ONLY)
- add_library(${APP_LIBRARY_ONLY} OBJECT EXCLUDE_FROM_ALL ${SOURCES} ${HEADERS} ${QML_SOURCES} ${QRC_RESOURCES})
+ add_library(${APP_LIBRARY_ONLY} OBJECT EXCLUDE_FROM_ALL ${SOURCES} ${HEADERS} ${QML_SOURCES}})
endif()
if (WIN32)
- add_executable(${TARGET_NAME} WIN32 $ ${ASSETS_DIR}/app-icon.rc ${MAIN_FILE})
+ add_executable(${TARGET_NAME} WIN32 $ ${ASSETS_DIR}/app-icon.rc ${MAIN_FILE} ${QRC_BIG_RESOURCES})
if(TARGET_NAME_ONLY)
- add_executable(${TARGET_NAME_ONLY} WIN32 EXCLUDE_FROM_ALL $ ${ASSETS_DIR}/app-icon.rc ${MAIN_FILE})
+ add_executable(${TARGET_NAME_ONLY} WIN32 EXCLUDE_FROM_ALL $ ${ASSETS_DIR}/app-icon.rc ${MAIN_FILE} ${QRC_BIG_RESOURCES})
endif()
else ()
- add_executable(${TARGET_NAME} $ ${MAIN_FILE})
+ add_executable(${TARGET_NAME} $ ${MAIN_FILE} ${QRC_BIG_RESOURCES})
if(TARGET_NAME_ONLY)
- add_executable(${TARGET_NAME_ONLY} EXCLUDE_FROM_ALL $ ${MAIN_FILE})
+ add_executable(${TARGET_NAME_ONLY} EXCLUDE_FROM_ALL $ ${MAIN_FILE} ${QRC_BIG_RESOURCES})
endif()
endif ()
if(TARGET_NAME_ONLY)
diff --git a/linphone-app/assets/fonts/NotoSans-hinted/NotoColorEmoji.ttf b/linphone-app/assets/fonts/NotoSans-hinted/NotoColorEmoji.ttf
new file mode 100644
index 000000000..69cf21a1a
Binary files /dev/null and b/linphone-app/assets/fonts/NotoSans-hinted/NotoColorEmoji.ttf differ
diff --git a/linphone-app/assets/fonts/NotoSans-hinted/NotoEmoji-Regular.ttf b/linphone-app/assets/fonts/NotoSans-hinted/NotoEmoji-Regular.ttf
new file mode 100644
index 000000000..19b7badf4
Binary files /dev/null and b/linphone-app/assets/fonts/NotoSans-hinted/NotoEmoji-Regular.ttf differ
diff --git a/linphone-app/assets/fonts/NotoSans-hinted/NotoSans-Bold.ttf b/linphone-app/assets/fonts/NotoSans-hinted/NotoSans-Bold.ttf
index 21dddde9d..ab11d3163 100644
Binary files a/linphone-app/assets/fonts/NotoSans-hinted/NotoSans-Bold.ttf and b/linphone-app/assets/fonts/NotoSans-hinted/NotoSans-Bold.ttf differ
diff --git a/linphone-app/assets/fonts/NotoSans-hinted/NotoSans-BoldItalic.ttf b/linphone-app/assets/fonts/NotoSans-hinted/NotoSans-BoldItalic.ttf
index e46b4cf50..6dfd1e614 100644
Binary files a/linphone-app/assets/fonts/NotoSans-hinted/NotoSans-BoldItalic.ttf and b/linphone-app/assets/fonts/NotoSans-hinted/NotoSans-BoldItalic.ttf differ
diff --git a/linphone-app/assets/fonts/NotoSans-hinted/NotoSans-Italic.ttf b/linphone-app/assets/fonts/NotoSans-hinted/NotoSans-Italic.ttf
index dfcd045d9..1639ad7d4 100644
Binary files a/linphone-app/assets/fonts/NotoSans-hinted/NotoSans-Italic.ttf and b/linphone-app/assets/fonts/NotoSans-hinted/NotoSans-Italic.ttf differ
diff --git a/linphone-app/assets/fonts/NotoSans-hinted/NotoSans-Regular.ttf b/linphone-app/assets/fonts/NotoSans-hinted/NotoSans-Regular.ttf
index 04be6f5ee..a1b8994ed 100644
Binary files a/linphone-app/assets/fonts/NotoSans-hinted/NotoSans-Regular.ttf and b/linphone-app/assets/fonts/NotoSans-hinted/NotoSans-Regular.ttf differ
diff --git a/linphone-app/assets/fonts/NotoSans-hinted/NotoSansCJKjp-Bold.otf b/linphone-app/assets/fonts/NotoSans-hinted/NotoSansCJKjp-Bold.otf
new file mode 100644
index 000000000..76c4827a0
Binary files /dev/null and b/linphone-app/assets/fonts/NotoSans-hinted/NotoSansCJKjp-Bold.otf differ
diff --git a/linphone-app/assets/fonts/NotoSans-hinted/NotoSansCJKjp-Regular.otf b/linphone-app/assets/fonts/NotoSans-hinted/NotoSansCJKjp-Regular.otf
new file mode 100644
index 000000000..296fbebd8
Binary files /dev/null and b/linphone-app/assets/fonts/NotoSans-hinted/NotoSansCJKjp-Regular.otf differ
diff --git a/linphone-app/assets/fonts/NotoSans-hinted/NotoSansSC-Bold.otf b/linphone-app/assets/fonts/NotoSans-hinted/NotoSansSC-Bold.otf
new file mode 100644
index 000000000..849a07a97
Binary files /dev/null and b/linphone-app/assets/fonts/NotoSans-hinted/NotoSansSC-Bold.otf differ
diff --git a/linphone-app/assets/fonts/NotoSans-hinted/NotoSansSC-Regular.otf b/linphone-app/assets/fonts/NotoSans-hinted/NotoSansSC-Regular.otf
new file mode 100644
index 000000000..ee1e304d6
Binary files /dev/null and b/linphone-app/assets/fonts/NotoSans-hinted/NotoSansSC-Regular.otf differ
diff --git a/linphone-app/assets/languages/CMakeLists.txt b/linphone-app/assets/languages/CMakeLists.txt
index ee53ddf74..a7ca343cc 100644
--- a/linphone-app/assets/languages/CMakeLists.txt
+++ b/linphone-app/assets/languages/CMakeLists.txt
@@ -50,6 +50,7 @@ set(LRELEASE_OPTIONS "")
#Clean existing generated file to force re-creation
file(REMOVE ${QM_FILES})
file(REMOVE ${TARGET_TS_FILES})
+file(REMOVE ${QRC_BIG_RESOURCES})
add_custom_command(OUTPUT ${TARGET_TS_FILES}
COMMAND ${Qt5_LUPDATE_EXECUTABLE}
diff --git a/linphone-app/assets/qt.conf.in b/linphone-app/assets/qt.conf.in
index eed5596da..ec9efb9cf 100644
--- a/linphone-app/assets/qt.conf.in
+++ b/linphone-app/assets/qt.conf.in
@@ -1,3 +1,3 @@
[Platforms]
-WindowsArguments = dpiawareness=1
+WindowsArguments = dpiawareness=@APP_QT_CONF_DPI@
@APP_QT_CONF_PATH@
diff --git a/linphone-app/cmake_builder/linphone_package/CMakeLists.txt b/linphone-app/cmake_builder/linphone_package/CMakeLists.txt
index ce1be3c06..9549b5950 100644
--- a/linphone-app/cmake_builder/linphone_package/CMakeLists.txt
+++ b/linphone-app/cmake_builder/linphone_package/CMakeLists.txt
@@ -97,8 +97,8 @@ endif ()
# ==============================================================================
# Specific deployment.
# ==============================================================================
-
-if (WIN32)
+set(APP_QT_CONF_DPI "1")
+if (WIN32)
find_program(DEPLOYQT_PROGRAM windeployqt)
if (NOT DEPLOYQT_PROGRAM)
message(FATAL_ERROR "Could not find the windeployqt program. Make sure it is in the PATH.")
@@ -132,6 +132,7 @@ if (WIN32)
install(DIRECTORY "${LINPHONE_OUTPUT_DIR}/${CMAKE_INSTALL_DATAROOTDIR}/sounds" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}" USE_SOURCE_PERMISSIONS)
install(FILES "${LINPHONE_OUTPUT_DIR}/${CMAKE_INSTALL_DATAROOTDIR}/Linphone/rootca.pem" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/${EXECUTABLE_NAME}/")
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/../../assets/linphonerc-factory" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/${APPLICATION_NAME}")
+ set(APP_QT_CONF_DPI "0")
set(APP_QT_CONF_PATH "")
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/../../assets/qt.conf.in" "${CMAKE_CURRENT_BINARY_DIR}/../../qt.conf" @ONLY)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/../../qt.conf" DESTINATION "${CMAKE_INSTALL_BINDIR}")
@@ -243,7 +244,8 @@ else()# Not Windows and Apple
# Install desktop/icon files.
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/../../assets/linphone.desktop.cmake" "${CMAKE_CURRENT_BINARY_DIR}/../../${EXECUTABLE_NAME}.desktop" @ONLY)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/../../${EXECUTABLE_NAME}.desktop" DESTINATION "${CMAKE_INSTALL_DATADIR}/applications")
- set(APP_QT_CONF_PATH "")
+ set(APP_QT_CONF_PATH "")
+
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/../../assets/qt.conf.in" "${CMAKE_CURRENT_BINARY_DIR}/../../qt.conf" @ONLY)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/../../qt.conf" DESTINATION "${CMAKE_INSTALL_BINDIR}")
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/../../assets/images/linphone_logo.svg" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/scalable/apps/" RENAME "${EXECUTABLE_NAME}.svg")
diff --git a/linphone-app/resources.qrc b/linphone-app/resources.qrc
index aac0c7fd2..f07913057 100644
--- a/linphone-app/resources.qrc
+++ b/linphone-app/resources.qrc
@@ -481,5 +481,11 @@
ui/dev-modules/Colors/Colors.qml
ui/dev-modules/Units/Units.qml
assets/icon.ico
+ assets/fonts/NotoSans-hinted/NotoSansCJKjp-Regular.otf
+ assets/fonts/NotoSans-hinted/NotoSansCJKjp-Bold.otf
+ assets/fonts/NotoSans-hinted/NotoColorEmoji.ttf
+ assets/fonts/NotoSans-hinted/NotoEmoji-Regular.ttf
+ assets/fonts/NotoSans-hinted/NotoSansSC-Bold.otf
+ assets/fonts/NotoSans-hinted/NotoSansSC-Regular.otf
diff --git a/linphone-app/src/app/AppController.cpp b/linphone-app/src/app/AppController.cpp
index 6126d71de..e502d9fdf 100644
--- a/linphone-app/src/app/AppController.cpp
+++ b/linphone-app/src/app/AppController.cpp
@@ -80,12 +80,14 @@ AppController::AppController (int &argc, char *argv[]) {
while (it.hasNext()) {
QFileInfo info(it.next());
- if (info.suffix() == QLatin1String("ttf")) {
+ if (info.suffix() == QLatin1String("ttf") || info.suffix() == QLatin1String("otf")) {
QString path = info.absoluteFilePath();
if (path.startsWith(":/assets/fonts/"))
- QFontDatabase::addApplicationFont(path);
+ if(QFontDatabase::addApplicationFont(path)<0)
+ qWarning() << "Font cannot load : " << path;
}
}
+ qInfo() << "Available fonts : " << QFontDatabase().families();
mApp->setFont(QFont(DefaultFont));
}
diff --git a/linphone-app/src/components/call/CallModel.cpp b/linphone-app/src/components/call/CallModel.cpp
index eebb6a0c2..75895ffb9 100644
--- a/linphone-app/src/components/call/CallModel.cpp
+++ b/linphone-app/src/components/call/CallModel.cpp
@@ -208,15 +208,17 @@ bool CallModel::transferTo (const QString &sipAddress) {
// -----------------------------------------------------------------------------
void CallModel::acceptVideoRequest () {
- shared_ptr core = CoreManager::getInstance()->getCore();
- shared_ptr params = core->createCallParams(mCall);
+ shared_ptr params = CoreManager::getInstance()->getCore()->createCallParams(mCall);
params->enableVideo(true);
mCall->acceptUpdate(params);
}
void CallModel::rejectVideoRequest () {
- mCall->acceptUpdate(mCall->getCurrentParams());
+ shared_ptr params = CoreManager::getInstance()->getCore()->createCallParams(mCall);
+ params->enableVideo(false);
+
+ mCall->acceptUpdate(params);
}
void CallModel::takeSnapshot () {
diff --git a/linphone-app/src/components/chat/ChatModel.cpp b/linphone-app/src/components/chat/ChatModel.cpp
index 37a6344ce..08f6bdfc6 100644
--- a/linphone-app/src/components/chat/ChatModel.cpp
+++ b/linphone-app/src/components/chat/ChatModel.cpp
@@ -191,7 +191,13 @@ static inline void removeFileMessageThumbnail (const shared_ptr &message) {
- dest["content"] = Utils::coreStringToAppString(message->getTextContent());
+ std::list> contents = message->getContents();
+ QString txt;
+ foreach(auto content, contents){
+ if(content->isText())
+ txt += content->getStringBuffer().c_str();
+ }
+ dest["content"] = txt;
dest["isOutgoing"] = message->isOutgoing() || message->getState() == linphone::ChatMessage::State::Idle;
// Old workaround.
@@ -481,7 +487,8 @@ void ChatModel::removeAllEntries () {
// -----------------------------------------------------------------------------
void ChatModel::sendMessage (const QString &message) {
- shared_ptr _message = mChatRoom->createMessage(Utils::appStringToCoreString(message));
+ shared_ptr _message = mChatRoom->createMessage("");
+ _message->getContents().begin()->get()->setStringBuffer(message.toUtf8().toStdString());
_message->removeListener(mMessageHandlers);// Remove old listener if already exists
_message->addListener(mMessageHandlers);
diff --git a/linphone-app/src/components/notifier/Notifier.cpp b/linphone-app/src/components/notifier/Notifier.cpp
index 77fd6d4da..91c0c09b9 100644
--- a/linphone-app/src/components/notifier/Notifier.cpp
+++ b/linphone-app/src/components/notifier/Notifier.cpp
@@ -262,10 +262,15 @@ void Notifier::deleteNotification (QVariant notification) {
void Notifier::notifyReceivedMessage (const shared_ptr &message) {
QVariantMap map;
- map["message"] = message->getFileTransferInformation()
- ? tr("newFileMessage")
- : Utils::coreStringToAppString(message->getText());
-
+ QString txt;
+ if(! message->getFileTransferInformation() ){
+ foreach(auto content, message->getContents()){
+ if(content->isText())
+ txt += content->getStringBuffer().c_str();
+ }
+ }else
+ txt = tr("newFileMessage");
+ map["message"] = txt;
shared_ptr chatRoom(message->getChatRoom());
map["peerAddress"] = Utils::coreStringToAppString(chatRoom->getPeerAddress()->asStringUriOnly());
map["localAddress"] = Utils::coreStringToAppString(chatRoom->getLocalAddress()->asStringUriOnly());
diff --git a/linphone-app/ui/modules/Common/Image/Icon.qml b/linphone-app/ui/modules/Common/Image/Icon.qml
index fdc6c5e5e..8dd24b2ff 100644
--- a/linphone-app/ui/modules/Common/Image/Icon.qml
+++ b/linphone-app/ui/modules/Common/Image/Icon.qml
@@ -15,6 +15,7 @@ Item {
width: iconSize
Image {
+ mipmap: Qt.platform.os === 'osx'
function getIconSize () {
Utils.assert(
iconSize != null && iconSize >= 0,
diff --git a/linphone-app/ui/modules/Common/Image/RoundedImage.qml b/linphone-app/ui/modules/Common/Image/RoundedImage.qml
index 4e73b2b55..6edcb3c9c 100644
--- a/linphone-app/ui/modules/Common/Image/RoundedImage.qml
+++ b/linphone-app/ui/modules/Common/Image/RoundedImage.qml
@@ -19,7 +19,7 @@ Item {
Image {
id: image
-
+ mipmap: Qt.platform.os === 'osx'
anchors.fill: parent
fillMode: Image.PreserveAspectCrop
sourceSize.width: parent.width
diff --git a/linphone-app/ui/modules/Common/Tooltip/Tooltip.qml b/linphone-app/ui/modules/Common/Tooltip/Tooltip.qml
index ca8016cd4..1bac788e0 100644
--- a/linphone-app/ui/modules/Common/Tooltip/Tooltip.qml
+++ b/linphone-app/ui/modules/Common/Tooltip/Tooltip.qml
@@ -99,7 +99,7 @@ Core.ToolTip {
// and `implicitWidth`.
Core.Image {
id: icon
-
+ mipmap: Qt.platform.os === 'osx'
fillMode: Core.Image.PreserveAspectFit
height: TooltipStyle.arrowSize
source: _edge
diff --git a/linphone-app/ui/modules/Linphone/Chat/FileMessage.qml b/linphone-app/ui/modules/Linphone/Chat/FileMessage.qml
index 4f1a39744..4a544e612 100644
--- a/linphone-app/ui/modules/Linphone/Chat/FileMessage.qml
+++ b/linphone-app/ui/modules/Linphone/Chat/FileMessage.qml
@@ -80,6 +80,7 @@ Row {
id: thumbnail
Image {
+ mipmap: Qt.platform.os === 'osx'
source: $chatEntry.thumbnail
}
}
diff --git a/linphone-app/ui/modules/Linphone/Contact/ContactDescription.qml b/linphone-app/ui/modules/Linphone/Contact/ContactDescription.qml
index 4351a8ba8..ff0476e6d 100644
--- a/linphone-app/ui/modules/Linphone/Contact/ContactDescription.qml
+++ b/linphone-app/ui/modules/Linphone/Contact/ContactDescription.qml
@@ -22,21 +22,20 @@ Column {
elide: Text.ElideRight
font.bold: true
font.pointSize: ContactDescriptionStyle.username.pointSize
- height: parent.height / 2
horizontalAlignment: horizontalTextAlignment
verticalAlignment: Text.AlignBottom
width: parent.width
+ height: (parent.height-parent.topPadding-parent.bottomPadding)/parent.visibleChildren.length
}
Text {
text: SipAddressesModel.cleanSipAddress(sipAddress)
-
color: sipAddressColor
elide: Text.ElideRight
font.pointSize: ContactDescriptionStyle.sipAddress.pointSize
- height: parent.height / 2
horizontalAlignment: horizontalTextAlignment
verticalAlignment: Text.AlignTop
width: parent.width
+ height: (parent.height-parent.topPadding-parent.bottomPadding)/parent.visibleChildren.length
}
}
diff --git a/linphone-app/ui/modules/Linphone/Notifications/NotificationReceivedFileMessage.qml b/linphone-app/ui/modules/Linphone/Notifications/NotificationReceivedFileMessage.qml
index a35661038..d1a381218 100644
--- a/linphone-app/ui/modules/Linphone/Notifications/NotificationReceivedFileMessage.qml
+++ b/linphone-app/ui/modules/Linphone/Notifications/NotificationReceivedFileMessage.qml
@@ -44,6 +44,7 @@ Notification {
}
Image{
id:image
+ mipmap: Qt.platform.os === 'osx'
Layout.fillHeight: true
Layout.fillWidth: true
fillMode: Image.PreserveAspectFit
diff --git a/linphone-app/ui/views/App/Calls/CallsWindow.qml b/linphone-app/ui/views/App/Calls/CallsWindow.qml
index ce2d7d6a9..785251b18 100644
--- a/linphone-app/ui/views/App/Calls/CallsWindow.qml
+++ b/linphone-app/ui/views/App/Calls/CallsWindow.qml
@@ -47,7 +47,7 @@ Window {
function setHeight (height) {
window.height = (Window.screen && height > Window.screen.desktopAvailableHeight)
- ? Winodw.screen.desktopAvailableHeight
+ ? Window.screen.desktopAvailableHeight
: height
}
diff --git a/linphone-app/ui/views/App/Calls/Incall.qml b/linphone-app/ui/views/App/Calls/Incall.qml
index 13d52fb0a..0c778c905 100644
--- a/linphone-app/ui/views/App/Calls/Incall.qml
+++ b/linphone-app/ui/views/App/Calls/Incall.qml
@@ -64,25 +64,6 @@ Rectangle {
Layout.rightMargin: CallStyle.header.rightMargin
Layout.preferredHeight: CallStyle.header.contactDescription.height
- Text {
- id: elapsedTime
-
- anchors.bottom: parent.bottom
- color: CallStyle.header.elapsedTime.color
- font.pointSize: CallStyle.header.elapsedTime.pointSize
- horizontalAlignment: Text.AlignHCenter
- width: parent.width
-
- Timer {
- interval: 1000
- repeat: true
- running: true
- triggeredOnStart: true
-
- onTriggered: {elapsedTime.text = Utils.formatElapsedTime(call.duration);}
- }
- }
-
ActionBar {
id: leftActions
@@ -144,11 +125,27 @@ Rectangle {
anchors.centerIn: parent
horizontalTextAlignment: Text.AlignHCenter
- sipAddress: ''
+ sipAddress: _sipAddressObserver.peerAddress
username: LinphoneUtils.getContactUsername(_sipAddressObserver)
height: parent.height
- width: parent.width - rightActions.width - leftActions.width - CallStyle.header.contactDescription.width
+ width: parent.width - rightActions.width - leftActions.width
+ Text {
+ id: elapsedTime
+ color: CallStyle.header.elapsedTime.color
+ font.pointSize: CallStyle.header.elapsedTime.pointSize
+ horizontalAlignment: Text.AlignHCenter
+ width: parent.width
+
+ Timer {
+ interval: 1000
+ repeat: true
+ running: true
+ triggeredOnStart: true
+
+ onTriggered: {elapsedTime.text = Utils.formatElapsedTime(call.duration);}
+ }
+ }
}
// -----------------------------------------------------------------------