mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 03:18:07 +00:00
- Update minor translations and fix TX settings - Fix order Application settings to avoid using wrong data - More detailled debug on sending log - Set sending log feedback to be copyable in order to be allowing to use the link without using a mailer - Remove feedback text when chaging tabs
69 lines
1.3 KiB
QML
69 lines
1.3 KiB
QML
import QtQuick 2.7
|
|
|
|
import Common 1.0
|
|
import Linphone.Styles 1.0
|
|
|
|
// =============================================================================
|
|
|
|
Item {
|
|
id: block
|
|
|
|
property var action
|
|
readonly property alias loading: block._loading
|
|
|
|
property bool _loading: false
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
function execute () {
|
|
block._loading = true
|
|
action()
|
|
}
|
|
function setText(txt){
|
|
errorBlock.text = txt
|
|
}
|
|
|
|
|
|
function stop (error) {
|
|
errorBlock.text = error
|
|
block._loading = false
|
|
}
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
height: RequestBlockStyle.height
|
|
|
|
TextEdit {
|
|
id: errorBlock
|
|
readOnly: true
|
|
selectByMouse: true
|
|
|
|
color: RequestBlockStyle.error.color
|
|
|
|
font {
|
|
italic: true
|
|
pointSize: RequestBlockStyle.error.pointSize
|
|
}
|
|
|
|
height: parent.height
|
|
width: parent.width
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
padding: RequestBlockStyle.error.padding
|
|
wrapMode: Text.WordWrap
|
|
|
|
visible: !block.loading
|
|
}
|
|
|
|
BusyIndicator {
|
|
anchors {
|
|
horizontalCenter: parent.horizontalCenter
|
|
top: parent.top
|
|
}
|
|
|
|
height: RequestBlockStyle.loadingIndicator.height
|
|
width: RequestBlockStyle.loadingIndicator.width
|
|
|
|
running: block.loading
|
|
}
|
|
}
|