refactoring (in progress)

This commit is contained in:
Ronan Abhamon 2016-10-31 11:38:48 +01:00
parent ee86c54537
commit 5640d2d410
5 changed files with 9 additions and 3 deletions

View file

@ -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 {

View file

@ -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

View file

@ -50,6 +50,10 @@ Item {
MouseArea {
anchors.fill: parent
hoverEnabled: true
cursorShape: containsMouse
? Qt.PointingHandCursor
: Qt.ArrowCursor
onClicked: Utils.openWindow('ManageAccounts', this)
}
}

View file

@ -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')

View file

@ -19,6 +19,7 @@ QtObject {
}
property QtObject searchBox: QtObject {
property int entryHeight: 50
property int maxHeight: 300 // See Hick's law for good choice.
}