mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +01:00
VerticalTabs: Show tooltips for tabs
This commit is contained in:
parent
e9f3679bb1
commit
68c30781bb
@ -114,6 +114,10 @@ bool TabListView::viewportEvent(QEvent *event)
|
|||||||
QToolTip::showText(he->globalPos(), muted ? tr("Unmute Tab") : tr("Mute Tab"), this, visualRect(index));
|
QToolTip::showText(he->globalPos(), muted ? tr("Unmute Tab") : tr("Mute Tab"), this, visualRect(index));
|
||||||
he->accept();
|
he->accept();
|
||||||
return true;
|
return true;
|
||||||
|
} else if (button == NoButton) {
|
||||||
|
QToolTip::showText(he->globalPos(), index.data().toString(), this, visualRect(index));
|
||||||
|
he->accept();
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -174,6 +174,10 @@ bool TabTreeView::viewportEvent(QEvent *event)
|
|||||||
QToolTip::showText(he->globalPos(), tr("Close Tab"), this, visualRect(index));
|
QToolTip::showText(he->globalPos(), tr("Close Tab"), this, visualRect(index));
|
||||||
he->accept();
|
he->accept();
|
||||||
return true;
|
return true;
|
||||||
|
} else if (button == NoButton) {
|
||||||
|
QToolTip::showText(he->globalPos(), index.data().toString(), this, visualRect(index));
|
||||||
|
he->accept();
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user