remove deprecated setWindowToPreview methods

This commit is contained in:
Aaron Seigo 2011-05-27 12:09:19 +02:00
parent 38004e0f9c
commit 628b80809f
3 changed files with 2 additions and 38 deletions

View File

@ -308,18 +308,11 @@ void ToolTip::setContent(QObject *tipper, const ToolTipContent &data)
d->text->setContent(data);
d->imageLabel->setPixmap(data.image());
if (data.highlightWindows() && (data.windowsToPreview().size() > 1 || data.windowToPreview() != 0)) {
if (data.highlightWindows() && !data.windowsToPreview().isEmpty()) {
WindowEffects::highlightWindows(winId(), QList<WId>() << winId() << data.windowsToPreview());
}
if (data.windowsToPreview().size() > 1) {
d->preview->setWindowIds(data.windowsToPreview());
} else {
QList<WId>ids;
ids.append(data.windowToPreview());
d->preview->setWindowIds(ids);
}
d->preview->setWindowIds(data.windowsToPreview());
d->preview->setHighlightWindows(data.highlightWindows());
d->autohide = data.autohide();

View File

@ -157,21 +157,6 @@ QPixmap ToolTipContent::image() const
return d->image;
}
void ToolTipContent::setWindowToPreview(WId id)
{
d->windowsToPreview.clear();
d->windowsToPreview.append(id);
}
WId ToolTipContent::windowToPreview() const
{
if (d->windowsToPreview.size() == 1) {
return d->windowsToPreview.first();
} else {
return 0;
}
}
void ToolTipContent::setWindowsToPreview(const QList<WId> & ids)
{
d->windowsToPreview = ids;

View File

@ -117,20 +117,6 @@ public:
*/
QPixmap image() const;
/**
* Sets the ID of the window to show a preview for.
* @deprecated
* @see setWindowsToPreview
*/
void setWindowToPreview(WId id);
/**
* Id of a window if you want to show a preview
* @deprecated
* @see windowsToPreview
*/
WId windowToPreview() const;
/**
* Sets the IDS of the windows to show a preview for
* @since 4.3