From 086c669d47b98fcbd588680ceef65c904478d2f2 Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Sat, 3 Dec 2011 18:09:13 +0100 Subject: [PATCH] m_corona does not exist in the libplasma2 version of tooltipmanager --- tooltipmanager.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/tooltipmanager.cpp b/tooltipmanager.cpp index e5839a498..00cce9da5 100644 --- a/tooltipmanager.cpp +++ b/tooltipmanager.cpp @@ -248,11 +248,6 @@ void ToolTipManager::setContent(QGraphicsWidget *widget, const ToolTipContent &d //look if the data prefers aother graphicswidget, otherwise use the one used as event catcher QGraphicsWidget *referenceWidget = data.graphicsWidget() ? data.graphicsWidget() : widget; Corona *corona = qobject_cast(referenceWidget->scene()); - if (!corona) { - // fallback to the corona we were given - corona = m_corona; - } - if (corona) { d->tipWidget->moveTo(corona->popupPosition(referenceWidget, d->tipWidget->size(), Qt::AlignCenter)); } @@ -408,11 +403,6 @@ void ToolTipManagerPrivate::showToolTip() tipWidget->prepareShowing(); QGraphicsWidget *referenceWidget = tooltip.value().graphicsWidget() ? tooltip.value().graphicsWidget() : currentWidget; Corona *corona = qobject_cast(referenceWidget->scene()); - if (!corona) { - // fallback to the corona we were given - corona = q->m_corona; - } - if (corona) { tipWidget->moveTo(corona->popupPosition(referenceWidget, tipWidget->size(), Qt::AlignCenter)); }