Qt/Symbian: QInputDialog layout and size are wrong
authorSami Merila <sami.merila@nokia.com>
Wed, 3 Nov 2010 07:40:16 +0000 (09:40 +0200)
committerSami Merila <sami.merila@nokia.com>
Wed, 3 Nov 2010 07:40:16 +0000 (09:40 +0200)
commit6382a038d6394135a4dc2d8e1e47133d9ea0b659
tree01fd0cfbfd3a19f20051732d91dfce5e718a45ce
parent8e2b95b1115bc07f81d0fa22cc2929bb28d3e9bb
Qt/Symbian: QInputDialog layout and size are wrong

The QInputDialog with anything but QLineEdit as the input widget,
will show up as minimal size on device/emulator. Also, the dialog
looks bad since the widgets are deployed very close to the dialog
borders.

As a fix, layout will not get the size policy set on Symbian, but
the dialog itself is stretched to occupy screen width and thus, layout
grows to occupy the available size. Additionally, style will set layout
pixel metrics for dialogs larger than for other widgets, to avoid
the layout from putting widgets very close to dialog border.

Task-number: QTBUG-14331
Reviewed-by: Janne Anttila
src/gui/dialogs/qdialog.cpp
src/gui/dialogs/qinputdialog.cpp
src/gui/styles/qs60style.cpp
src/gui/styles/qs60style_p.h