diff options
author | Prasanth Ullattil <prasanth.ullattil@nokia.com> | 2010-01-19 11:49:12 (GMT) |
---|---|---|
committer | Prasanth Ullattil <prasanth.ullattil@nokia.com> | 2010-01-19 13:34:32 (GMT) |
commit | 00b3098906dd7d4cfe7be3448e4eb90506d27012 (patch) | |
tree | de45f72db40016b0cd9138810b803ed707492070 /src/xmlpatterns/parser/qquerytransformparser.cpp | |
parent | b997254ba37e3ccfaa26be7021e2b172bfd82691 (diff) | |
download | Qt-00b3098906dd7d4cfe7be3448e4eb90506d27012.zip Qt-00b3098906dd7d4cfe7be3448e4eb90506d27012.tar.gz Qt-00b3098906dd7d4cfe7be3448e4eb90506d27012.tar.bz2 |
Designer crashes when previewing QMainWindow with native Toolbar on Mac
The crash happens when a QMainWindow with a native toolbar is reparented.
While re-parenting, the QToolBar triggers a new setParent() with the
MacWindowToolBarButtonHint. This messes up the internal state, hence the
crash. To avoid re-entering setParent() for the QMainWindow, this hint
is set depending on the unifiedTitleAndToolBarOnMac property.
This patch also fixes a related issue in Cocoa, we need to remove the
reused NSToolbar from the old window while recreating the QMainWindow.
Task-number: QTBUG-7162
Reviewed-by: Richard Moe Gustavsen
Diffstat (limited to 'src/xmlpatterns/parser/qquerytransformparser.cpp')
0 files changed, 0 insertions, 0 deletions