mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-03 22:56:49 +00:00
refactoring (in progress)
This commit is contained in:
parent
ee86c54537
commit
5640d2d410
5 changed files with 9 additions and 3 deletions
|
|
@ -25,8 +25,8 @@ Item {
|
|||
|
||||
// -----------------------------------------------------------------
|
||||
|
||||
implicitWidth: button.iconSize
|
||||
implicitHeight: button.iconSize
|
||||
implicitWidth: button.iconSize
|
||||
|
||||
ActionButton {
|
||||
id: button
|
||||
|
|
@ -43,7 +43,6 @@ Item {
|
|||
// -----------------------------------------------------------------
|
||||
|
||||
states: State {
|
||||
name: 'collapsed'
|
||||
when: _collapsed
|
||||
|
||||
PropertyChanges {
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@ import Utils 1.0
|
|||
// ===================================================================
|
||||
|
||||
AbstractDropDownMenu {
|
||||
// Can be computed, but for performance usage, it must be given
|
||||
// in attribute.
|
||||
property int entryHeight
|
||||
property int maxMenuHeight
|
||||
|
||||
|
|
|
|||
|
|
@ -50,6 +50,10 @@ Item {
|
|||
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
cursorShape: containsMouse
|
||||
? Qt.PointingHandCursor
|
||||
: Qt.ArrowCursor
|
||||
onClicked: Utils.openWindow('ManageAccounts', this)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ ApplicationWindow {
|
|||
id: searchBox
|
||||
|
||||
Layout.fillWidth: true
|
||||
entryHeight: 50 // TODO: Remove.
|
||||
entryHeight: MainWindowStyle.searchBox.entryHeight
|
||||
maxMenuHeight: MainWindowStyle.searchBox.maxHeight
|
||||
placeholderText: qsTr('mainSearchBarPlaceholder')
|
||||
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ QtObject {
|
|||
}
|
||||
|
||||
property QtObject searchBox: QtObject {
|
||||
property int entryHeight: 50
|
||||
property int maxHeight: 300 // See Hick's law for good choice.
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue