simplify
This commit is contained in:
parent
45e428dec5
commit
ef6b65c2b1
@ -321,12 +321,8 @@ void ToolTip::setContent(QObject *tipper, const ToolTipContent &data)
|
||||
|
||||
void ToolTip::prepareShowing()
|
||||
{
|
||||
if (!d->preview->isEmpty()) {
|
||||
// show/hide the preview area
|
||||
d->preview->show();
|
||||
} else {
|
||||
d->preview->hide();
|
||||
}
|
||||
// show/hide the preview area
|
||||
d->preview->setVisible(!d->preview->isEmpty());
|
||||
|
||||
layout()->activate();
|
||||
d->preview->setInfo();
|
||||
|
Loading…
x
Reference in New Issue
Block a user