Commit 5640d2d4 authored by Ronan's avatar Ronan
Browse files

refactoring (in progress)

parent ee86c545
......@@ -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.
}
......
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