mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
add resources file belledonne image Revert "belledonne image" This reverts commit 4f7ea04c16aaec1ed321590620c61fad6010a148. image add images resources new images Welcome page images add resources file belledonne image Revert "belledonne image" This reverts commit 4f7ea04c16aaec1ed321590620c61fad6010a148. image add images resources new images image image cmake providers Constants Constants start welcome page start welcome page Welcome page welcome and login pages default text item Item : default input cell for any form qml items welcome/login template add resources files to macro cmake LoginPage : get username/pwd and call login make welcome page temporary icons main stack view Add final text + anims welcome page fix previous register constants in initCppInterfaces unify images names MR thread : clean move login pages use styling qml file mr threads: unify colors remove anchors warnings custom combobox + modify custom textinput mr thread : indent mr thread : pointsize in style mr thread : default style singleton icons as style change login base layout name mr thread : color in style
77 lines
No EOL
1.7 KiB
QML
77 lines
No EOL
1.7 KiB
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts 1.0
|
|
import Linphone
|
|
|
|
ColumnLayout {
|
|
id: cellLayout
|
|
property string label: ""
|
|
property int backgroundWidth: 200
|
|
property variant modelList: []
|
|
|
|
Layout.bottomMargin: 8
|
|
Text {
|
|
verticalAlignment: Text.AlignVCenter
|
|
text: cellLayout.label
|
|
color: DefaultStyle.formItemLabelColor
|
|
font {
|
|
pointSize: DefaultStyle.formItemLabelSize
|
|
bold: true
|
|
}
|
|
}
|
|
|
|
ComboBox {
|
|
id: combobox
|
|
model: cellLayout.modelList
|
|
background: Loader {
|
|
sourceComponent: backgroundRectangle
|
|
}
|
|
contentItem: Text {
|
|
leftPadding: 10
|
|
text: combobox.displayText
|
|
font.family: DefaultStyle.defaultFont
|
|
font.pointSize: DefaultStyle.formItemLabelSize
|
|
color: DefaultStyle.formItemLabelColor
|
|
verticalAlignment: Text.AlignVCenter
|
|
elide: Text.ElideRight
|
|
}
|
|
|
|
indicator: Image {
|
|
x: combobox.width - width - combobox.rightPadding
|
|
y: combobox.topPadding + (combobox.availableHeight - height) / 2
|
|
source: AppIcons.downArrow
|
|
// width: 12
|
|
// height: 8
|
|
}
|
|
|
|
popup: Popup {
|
|
y: combobox.height - 1
|
|
width: combobox.width
|
|
implicitHeight: contentItem.implicitHeight
|
|
padding: 1
|
|
|
|
contentItem: ListView {
|
|
clip: true
|
|
implicitHeight: contentHeight
|
|
model: combobox.popup.visible ? combobox.delegateModel : null
|
|
currentIndex: combobox.highlightedIndex
|
|
|
|
ScrollIndicator.vertical: ScrollIndicator { }
|
|
}
|
|
|
|
background: Loader {
|
|
sourceComponent: backgroundRectangle
|
|
}
|
|
}
|
|
Component {
|
|
id: backgroundRectangle
|
|
Rectangle {
|
|
implicitWidth: cellLayout.backgroundWidth
|
|
implicitHeight: 30
|
|
radius: 20
|
|
color: DefaultStyle.formItemBackgroundColor
|
|
opacity: 0.7
|
|
}
|
|
}
|
|
}
|
|
} |