mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-02-07 15:08:24 +00:00
Change date and time pickers into datetime popup. Upgrade date picker design. Fix time picker design to follow popup layout. Fix audio video conference URI migration in linphonerc and avoid to replace it if it already exists (same for conference URI). Remove binding loop warning on combobox. In meeting creation, format dates to system and fix combobox display.
64 lines
1.6 KiB
QML
64 lines
1.6 KiB
QML
import QtQuick 2.7
|
|
import QtQuick.Controls 2.7
|
|
import QtQuick.Layouts 1.3
|
|
|
|
import Common 1.0
|
|
import Common.Styles 1.0
|
|
import Linphone 1.0
|
|
import Linphone.Styles 1.0
|
|
import Utils 1.0
|
|
|
|
// =============================================================================
|
|
|
|
DialogPlus {
|
|
id: mainItem
|
|
height: 550
|
|
width: 500
|
|
|
|
property alias showDatePicker : datePicker.visible
|
|
property alias showTimePicker: timePicker.visible
|
|
|
|
property alias selectedDate: datePicker.selectedDate
|
|
property alias selectedTime: timePicker.selectedTime
|
|
|
|
// ---------------------------------------------------------------------------
|
|
buttons: [
|
|
TextButtonB {
|
|
text: 'ok'
|
|
|
|
onClicked: {
|
|
exit({selectedDate: mainItem.selectedDate, selectedTime: mainItem.selectedTime})
|
|
}
|
|
}
|
|
]
|
|
|
|
buttonsAlignment: Qt.AlignCenter
|
|
|
|
//: 'Select date' : Menu title to show select date.
|
|
property string dateTitle: qsTr('dateTimeDialogDate')
|
|
//: 'Select time' : Menu title to show select time.
|
|
property string timeTitle: qsTr('dateTimeDialogTime')
|
|
//: 'Select date and time' : Menu title to show select date and time.
|
|
property string dateTimeTitle: qsTr('dateTimeDialogDateTime')
|
|
title: showDatePicker
|
|
? showTimePicker
|
|
? dateTimeTitle
|
|
: timeTitle
|
|
: timeTitle
|
|
// ---------------------------------------------------------------------------
|
|
RowLayout{
|
|
anchors.fill: parent
|
|
DatePicker{
|
|
id: datePicker
|
|
visible: false
|
|
Layout.fillHeight: true
|
|
Layout.fillWidth: true
|
|
}
|
|
TimePicker{
|
|
id: timePicker
|
|
visible: false
|
|
Layout.fillHeight: true
|
|
Layout.fillWidth: true
|
|
}
|
|
}
|
|
}
|