summaryrefslogtreecommitdiffstats
path: root/src/sql
diff options
context:
space:
mode:
authorAlexander Volkov <a.volkov@rusbitech.ru>2015-02-10 17:43:03 +0300
committerTimur Pocheptsov <Timur.Pocheptsov@digia.com>2015-06-06 17:48:46 +0000
commit6468cf4e79cca74fa3704c1a1c03fc5da3778416 (patch)
treee24d0d49da34e39d0009572a59a526338f52615e /src/sql
parent2d8c7087fb9ab747e9cae4a246685a6563db1d78 (diff)
Fix centering dialogs
QDialog::setVisible() tries to adjusts the dialog position, but it's not really possible if the dialog size is not defined yet. Besides, if the dialog window is not created, QWidget::move() will not really move it and will set WA_PendingMoveEvent flag. And QWidget::setVisible() also will not change the position, because we reset WA_Moved flag. Thus it may break adjusting the position in QDialog::showEvent(). So adjust the position only in QDialog::showEvent(). Task-number: QTBUG-36185 Task-number: QTBUG-39259 Task-number: QTBUG-41844 Change-Id: I015a19f2e533f68178f4ee7519b17f5e9b5def7b Reviewed-by: Timur Pocheptsov <Timur.Pocheptsov@digia.com>
Diffstat (limited to 'src/sql')
0 files changed, 0 insertions, 0 deletions