linphone-desktop/Linphone/view/Item/CalendarComboBox.qml
Gaelle Braud e415033943 Meeting UI
Change meeting time set so a it can spread over two days without being an all day conf
2024-04-22 18:16:31 +02:00

47 lines
No EOL
1 KiB
QML

import QtQuick
import QtQuick.Controls as Control
import QtQuick.Effects
import Linphone
ComboBox {
id: mainItem
readonly property var selectedDate: calendar.selectedDate
property alias calendar: calendar
property alias contentText: contentText
contentItem: Text {
id: contentText
text: Qt.formatDate(calendar.selectedDate, "ddd d, MMMM")
anchors.fill: parent
anchors.leftMargin: 15 * DefaultStyle.dp
anchors.verticalCenter: parent.verticalCenter
verticalAlignment: Text.AlignVCenter
font {
pixelSize: 14 * DefaultStyle.dp
weight: 700 * DefaultStyle.dp
}
}
popup: Control.Popup {
y: mainItem.height
width: 321 * DefaultStyle.dp
height: 270 * DefaultStyle.dp
closePolicy: Popup.NoAutoClose
background: Item {
Rectangle {
id: calendarBg
anchors.fill: parent
color: DefaultStyle.grey_0
radius: 16 * DefaultStyle.dp
}
MultiEffect {
anchors.fill: calendarBg
source: calendarBg
shadowEnabled: true
shadowBlur: 1
shadowOpacity: 0.1
}
}
contentItem: Calendar {
id: calendar
}
}
}