mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-28 17:29:19 +00:00
- Process GUI events before accepting a call in order to be synchronized with Call objects - Revert window variable naming - Change open window order when receive call Fix : Show Notifications while in fullscreen Fix : show settings in fullscreen QuickFix: - Set Minimum Width on Tooltips - Show full path on log folder selection - Add Conference participant filter to show only users that are in conference - Add test on Player to avoid crash if it cannot be instanciated before - Window position when opening in fullscreen
71 lines
2.4 KiB
QML
71 lines
2.4 KiB
QML
import QtQuick 2.7
|
|
|
|
import Common.Styles 1.0
|
|
import 'Window.js' as Logic
|
|
|
|
// =============================================================================
|
|
|
|
Loader {
|
|
id:mainLoader
|
|
active:false
|
|
property var sourceUrl
|
|
property var sourceProperties
|
|
property var exitStatusHandler
|
|
property bool setData : false // USe this flag to update source data
|
|
anchors.fill: parent
|
|
|
|
function setContent (url, properties, exitStatusHandler) {
|
|
mainLoader.sourceUrl=url;
|
|
mainLoader.sourceProperties=properties;
|
|
mainLoader.exitStatusHandler=exitStatusHandler;
|
|
setData=true;
|
|
active=true;
|
|
}
|
|
|
|
function unsetContent () {
|
|
active=false
|
|
setData=false;
|
|
}
|
|
|
|
// ---------------------------------------------------------------------------
|
|
sourceComponent:Component{
|
|
id:mainComponent
|
|
|
|
Item{
|
|
id:rootContent
|
|
property alias contentLoader:content.contentLoader
|
|
anchors.fill: parent
|
|
MouseArea {
|
|
anchors.fill: parent
|
|
hoverEnabled: true
|
|
onWheel: wheel.accepted = true
|
|
}
|
|
|
|
Rectangle {
|
|
id: content
|
|
property alias contentLoader:contentLoader
|
|
|
|
anchors.fill: parent
|
|
color: WindowStyle.transientWindow.color
|
|
Loader{
|
|
id:contentLoader
|
|
anchors.centerIn: parent
|
|
property var setSourceData : setData
|
|
onSetSourceDataChanged: if( setData) {// SetData is true : assign source with properties using QML functions
|
|
if(sourceProperties)
|
|
setSource(sourceUrl, sourceProperties);
|
|
else
|
|
setSource(sourceUrl);
|
|
}else{source=undefined}// SetData is false : clean memory
|
|
active:mainLoader.active
|
|
onLoaded:{// When loaded, attache handlers to content
|
|
item.exitStatus.connect(Logic.detachVirtualWindow)
|
|
if (exitStatusHandler) {
|
|
item.exitStatus.connect(exitStatusHandler)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|