remove deprecated setWindowToPreview methods
This commit is contained in:
parent
38004e0f9c
commit
628b80809f
@ -308,18 +308,11 @@ void ToolTip::setContent(QObject *tipper, const ToolTipContent &data)
|
|||||||
d->text->setContent(data);
|
d->text->setContent(data);
|
||||||
d->imageLabel->setPixmap(data.image());
|
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());
|
WindowEffects::highlightWindows(winId(), QList<WId>() << winId() << data.windowsToPreview());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data.windowsToPreview().size() > 1) {
|
d->preview->setWindowIds(data.windowsToPreview());
|
||||||
d->preview->setWindowIds(data.windowsToPreview());
|
|
||||||
} else {
|
|
||||||
QList<WId>ids;
|
|
||||||
ids.append(data.windowToPreview());
|
|
||||||
d->preview->setWindowIds(ids);
|
|
||||||
}
|
|
||||||
|
|
||||||
d->preview->setHighlightWindows(data.highlightWindows());
|
d->preview->setHighlightWindows(data.highlightWindows());
|
||||||
|
|
||||||
d->autohide = data.autohide();
|
d->autohide = data.autohide();
|
||||||
|
@ -157,21 +157,6 @@ QPixmap ToolTipContent::image() const
|
|||||||
return d->image;
|
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)
|
void ToolTipContent::setWindowsToPreview(const QList<WId> & ids)
|
||||||
{
|
{
|
||||||
d->windowsToPreview = ids;
|
d->windowsToPreview = ids;
|
||||||
|
@ -117,20 +117,6 @@ public:
|
|||||||
*/
|
*/
|
||||||
QPixmap image() const;
|
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
|
* Sets the IDS of the windows to show a preview for
|
||||||
* @since 4.3
|
* @since 4.3
|
||||||
|
Loading…
Reference in New Issue
Block a user