From c529b14babb4a9c339b53cdcfc02d222db7b6d27 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Sat, 1 May 2010 02:17:01 +0000 Subject: [PATCH] SVN_SILENT: tidy svn path=/trunk/KDE/kdelibs/; revision=1121283 --- private/tooltip.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/private/tooltip.cpp b/private/tooltip.cpp index c826c71e1..a8a5d3f0d 100644 --- a/private/tooltip.cpp +++ b/private/tooltip.cpp @@ -199,9 +199,9 @@ ToolTip::ToolTip(QWidget *parent) previewHBoxLayout->addWidget(d->preview); QHBoxLayout *iconTextHBoxLayout = new QHBoxLayout; - iconTextHBoxLayout->addWidget(d->imageLabel); + iconTextHBoxLayout->addWidget(d->imageLabel); iconTextHBoxLayout->setAlignment(d->imageLabel, Qt::AlignCenter); - iconTextHBoxLayout->addWidget(d->text); + iconTextHBoxLayout->addWidget(d->text); iconTextHBoxLayout->setAlignment(d->text, Qt::AlignLeft | Qt::AlignVCenter); iconTextHBoxLayout->setStretchFactor(d->text, 1); @@ -301,8 +301,9 @@ void ToolTip::setContent(QObject *tipper, const ToolTipContent &data) d->imageLabel->setPixmap(data.image()); if (data.highlightWindows() && (data.windowsToPreview().size() > 1 || data.windowToPreview() != 0)) { - WindowEffects::highlightWindows(winId(), QList()<() << winId() << data.windowsToPreview()); } + if (data.windowsToPreview().size() > 1) { d->preview->setWindowIds(data.windowsToPreview()); } else { @@ -310,6 +311,7 @@ void ToolTip::setContent(QObject *tipper, const ToolTipContent &data) ids.append(data.windowToPreview()); d->preview->setWindowIds(ids); } + d->preview->setHighlightWindows(data.highlightWindows()); d->autohide = data.autohide();