Commit 5640d2d4 authored by Ronan Abhamon's avatar Ronan Abhamon

refactoring (in progress)

parent ee86c545
...@@ -25,8 +25,8 @@ Item { ...@@ -25,8 +25,8 @@ Item {
// ----------------------------------------------------------------- // -----------------------------------------------------------------
implicitWidth: button.iconSize
implicitHeight: button.iconSize implicitHeight: button.iconSize
implicitWidth: button.iconSize
ActionButton { ActionButton {
id: button id: button
...@@ -43,7 +43,6 @@ Item { ...@@ -43,7 +43,6 @@ Item {
// ----------------------------------------------------------------- // -----------------------------------------------------------------
states: State { states: State {
name: 'collapsed'
when: _collapsed when: _collapsed
PropertyChanges { PropertyChanges {
......
...@@ -5,6 +5,8 @@ import Utils 1.0 ...@@ -5,6 +5,8 @@ import Utils 1.0
// =================================================================== // ===================================================================
AbstractDropDownMenu { AbstractDropDownMenu {
// Can be computed, but for performance usage, it must be given
// in attribute.
property int entryHeight property int entryHeight
property int maxMenuHeight property int maxMenuHeight
......
...@@ -50,6 +50,10 @@ Item { ...@@ -50,6 +50,10 @@ Item {
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent
hoverEnabled: true
cursorShape: containsMouse
? Qt.PointingHandCursor
: Qt.ArrowCursor
onClicked: Utils.openWindow('ManageAccounts', this) onClicked: Utils.openWindow('ManageAccounts', this)
} }
} }
...@@ -61,7 +61,7 @@ ApplicationWindow { ...@@ -61,7 +61,7 @@ ApplicationWindow {
id: searchBox id: searchBox
Layout.fillWidth: true Layout.fillWidth: true
entryHeight: 50 // TODO: Remove. entryHeight: MainWindowStyle.searchBox.entryHeight
maxMenuHeight: MainWindowStyle.searchBox.maxHeight maxMenuHeight: MainWindowStyle.searchBox.maxHeight
placeholderText: qsTr('mainSearchBarPlaceholder') placeholderText: qsTr('mainSearchBarPlaceholder')
......
...@@ -19,6 +19,7 @@ QtObject { ...@@ -19,6 +19,7 @@ QtObject {
} }
property QtObject searchBox: QtObject { property QtObject searchBox: QtObject {
property int entryHeight: 50
property int maxHeight: 300 // See Hick's law for good choice. property int maxHeight: 300 // See Hick's law for good choice.
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment