diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2010-01-04 11:39:25 (GMT) |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2010-01-04 11:42:23 (GMT) |
commit | 5b0945acef6895d4147b81dcda7cdce89c3a981a (patch) | |
tree | 2010338e78f3868ca7a6c32f27a6039fa9f46802 /tools | |
parent | f46115cb9ea10ee9abdbebff71cf8d6694f9fde9 (diff) | |
download | Qt-5b0945acef6895d4147b81dcda7cdce89c3a981a.zip Qt-5b0945acef6895d4147b81dcda7cdce89c3a981a.tar.gz Qt-5b0945acef6895d4147b81dcda7cdce89c3a981a.tar.bz2 |
Designer: Selection handles disappear when using style sheet on form.
... that has a white background color.
The selection handles inherited the form's stylesheet. Fix by parenting
them on the (internal) form container widget.
Reviewed-by: Jarek Kobus <jkobus@trolltech.com>
Task-number: QTBUG-6757
Diffstat (limited to 'tools')
-rw-r--r-- | tools/designer/src/components/formeditor/widgetselection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/designer/src/components/formeditor/widgetselection.cpp b/tools/designer/src/components/formeditor/widgetselection.cpp index 484e3a9..35f1509 100644 --- a/tools/designer/src/components/formeditor/widgetselection.cpp +++ b/tools/designer/src/components/formeditor/widgetselection.cpp @@ -86,7 +86,7 @@ static inline Layout *managedLayoutOf(const QDesignerFormEditorInterface *core, // ----------- WidgetHandle WidgetHandle::WidgetHandle(FormWindow *parent, WidgetHandle::Type t, WidgetSelection *s) : - InvisibleWidget(parent->mainContainer()), + InvisibleWidget(parent->formContainer()), m_widget(0), m_type(t), m_formWindow( parent), @@ -638,7 +638,7 @@ void WidgetSelection::updateGeometry() return; QPoint p = m_widget->parentWidget()->mapToGlobal(m_widget->pos()); - p = m_formWindow->mapFromGlobal(p); + p = m_formWindow->formContainer()->mapFromGlobal(p); const QRect r(p, m_widget->size()); const int w = 6; |