summaryrefslogtreecommitdiff
path: root/tools/designer
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2010-01-04 12:39:25 +0100
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2010-01-04 12:42:23 +0100
commit5b0945acef6895d4147b81dcda7cdce89c3a981a (patch)
tree2010338e78f3868ca7a6c32f27a6039fa9f46802 /tools/designer
parentf46115cb9ea10ee9abdbebff71cf8d6694f9fde9 (diff)
downloadqt4-tools-5b0945acef6895d4147b81dcda7cdce89c3a981a.tar.gz
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/designer')
-rw-r--r--tools/designer/src/components/formeditor/widgetselection.cpp4
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 484e3a9675..35f1509c0f 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;