1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

VerticalTabs: Show tooltips for tabs

This commit is contained in:
David Rosca 2018-02-02 16:45:46 +01:00
parent e9f3679bb1
commit 68c30781bb
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8
2 changed files with 8 additions and 0 deletions

View File

@ -114,6 +114,10 @@ bool TabListView::viewportEvent(QEvent *event)
QToolTip::showText(he->globalPos(), muted ? tr("Unmute Tab") : tr("Mute Tab"), this, visualRect(index));
he->accept();
return true;
} else if (button == NoButton) {
QToolTip::showText(he->globalPos(), index.data().toString(), this, visualRect(index));
he->accept();
return true;
}
break;
}

View File

@ -174,6 +174,10 @@ bool TabTreeView::viewportEvent(QEvent *event)
QToolTip::showText(he->globalPos(), tr("Close Tab"), this, visualRect(index));
he->accept();
return true;
} else if (button == NoButton) {
QToolTip::showText(he->globalPos(), index.data().toString(), this, visualRect(index));
he->accept();
return true;
}
break;
}