Skip to content

Commit

Permalink
Mark overlay widget interactions as probe-internal.
Browse files Browse the repository at this point in the history
This prevents the overlay widget to show up in the widget tree, and more
importantly prevents its reparenting to trigger layoutChange signals.

Inspired by pull request #123.
  • Loading branch information
vkrause committed Jun 16, 2015
1 parent 048b384 commit cedf07c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/widgetinspector/widgetinspectorserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#include "core/probesettings.h"
#include "core/objecttypefilterproxymodel.h"
#include "core/probeinterface.h"
#include "core/probeguard.h"

#include "common/objectbroker.h"
#include "common/settempvalue.h"
Expand Down Expand Up @@ -145,6 +146,8 @@ void WidgetInspectorServer::selectDefaultItem()

void WidgetInspectorServer::widgetSelected(const QItemSelection &selection)
{
ProbeGuard guard;

m_propertyController->setObject(0);

if (selection.isEmpty())
Expand Down Expand Up @@ -251,6 +254,7 @@ QPixmap WidgetInspectorServer::pixmapForWidget(QWidget *widget)

void WidgetInspectorServer::recreateOverlayWidget()
{
ProbeGuard guard;
m_overlayWidget = new OverlayWidget;
m_overlayWidget->hide();

Expand Down

0 comments on commit cedf07c

Please sign in to comment.