mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-18 11:58:11 +00:00
42 lines
1,009 B
QML
42 lines
1,009 B
QML
import QtQuick 2.7
|
|
import QtQuick.Layouts 1.3
|
|
|
|
import Common.Styles 1.0
|
|
|
|
// =============================================================================
|
|
// Responsive flat menu with visual indicators.
|
|
// =============================================================================
|
|
|
|
Rectangle {
|
|
id: menu
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
property var defaultSelectedEntry: null
|
|
|
|
property int entryHeight
|
|
property int entryWidth
|
|
|
|
property var _selected: defaultSelectedEntry
|
|
|
|
default property alias _content: content.data
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
function resetSelectedEntry () {
|
|
_selected = null
|
|
}
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
color: ApplicationMenuStyle.backgroundColor
|
|
implicitHeight: content.height
|
|
width: entryWidth
|
|
|
|
Column {
|
|
id: content
|
|
|
|
width: parent.width
|
|
spacing: ApplicationMenuStyle.spacing
|
|
}
|
|
}
|