Revise and align ToolBar & StatusBar size calculation
authorJ-P Nurmi <jpnurmi@digia.com>
Thu, 5 Jun 2014 22:00:53 +0000 (00:00 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sat, 7 Jun 2014 10:11:44 +0000 (12:11 +0200)
commit8691849bbcb227997e69d85747b010ad69798004
tree9ad09efe57681236b1fa4cdc89d1474529432dba
parentefacf765b008571d8feeb3423e5af5bcb8426219
Revise and align ToolBar & StatusBar size calculation

Instead of preferring the layout size, and only using the panel size
as a fallback, take the maximum of the two. This way styles can provide
a default size that will be respected. Furthermore, replace unnecessary
function calls with declarative property bindings.

Change-Id: Iabc59c694ac8c8302cea72f53c9177462d7f146c
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
examples/quick/controls/gallery/main.qml
src/controls/StatusBar.qml
src/controls/ToolBar.qml