mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-22 14:18:09 +00:00
Long pressed event feature on action buttons (default to 500ms). ChatRoom peer/local addresses debug in conversations (long pressed on dots menu with debug traces enabled).
33 lines
831 B
QML
33 lines
831 B
QML
import QtQuick.Layouts 1.3
|
|
|
|
import Common 1.0
|
|
import Common.Styles 1.0
|
|
|
|
|
|
// =============================================================================
|
|
// A dialog with OK/Cancel buttons.
|
|
// =============================================================================
|
|
|
|
DialogPlus {
|
|
id: mainItem
|
|
property int showButtonOnly : -1
|
|
property var buttonTexts : [qsTr('cancel')
|
|
, qsTr('confirm')]
|
|
buttons: [
|
|
TextButtonA {
|
|
text: mainItem.buttonTexts[0]
|
|
visible: mainItem.showButtonOnly<0 || mainItem.showButtonOnly == 0
|
|
onClicked: exit(0)
|
|
},
|
|
TextButtonB {
|
|
text: mainItem.buttonTexts[1]
|
|
visible: mainItem.showButtonOnly<0 || mainItem.showButtonOnly == 1
|
|
onClicked: exit(1)
|
|
}
|
|
]
|
|
|
|
buttonsAlignment: Qt.AlignCenter
|
|
|
|
height: DialogStyle.confirmDialog.height + 30
|
|
width: DialogStyle.confirmDialog.width
|
|
}
|