mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-25 03:12:56 +00:00
mark the warning case in QTipLabel::setTipRect() as unlikely
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
f3e4528b7a
commit
6b180ea618
1 changed files with 2 additions and 2 deletions
|
@ -214,9 +214,9 @@ void QTipLabel::hideTipImmediately()
|
||||||
|
|
||||||
void QTipLabel::setTipRect(QWidget *w, const QRect &r)
|
void QTipLabel::setTipRect(QWidget *w, const QRect &r)
|
||||||
{
|
{
|
||||||
if (!rect.isNull() && !w)
|
if (Q_UNLIKELY(!rect.isNull() && !w)) {
|
||||||
qWarning("QToolTip::setTipRect: Cannot pass null widget if rect is set");
|
qWarning("QToolTip::setTipRect: Cannot pass null widget if rect is set");
|
||||||
else{
|
} else {
|
||||||
widget = w;
|
widget = w;
|
||||||
rect = r;
|
rect = r;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue