mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-28 03:21:56 +00:00
PlacesPanel: tooltip, use toLocalFile instead of path
To avoid Windows compatiblity issues.
This commit is contained in:
parent
8999580e2a
commit
f2d2f325b6
|
@ -486,7 +486,7 @@ void PlacesPanel::slotStorageSetupDone(int index, bool success)
|
||||||
void PlacesPanel::slotShowTooltip()
|
void PlacesPanel::slotShowTooltip()
|
||||||
{
|
{
|
||||||
const QUrl url = m_model->data(m_hoveredIndex).value("url").value<QUrl>();
|
const QUrl url = m_model->data(m_hoveredIndex).value("url").value<QUrl>();
|
||||||
const QString text = url.isLocalFile() ? url.path() : url.toString();
|
const QString text = url.toDisplayString(QUrl::PreferLocalFile);
|
||||||
QToolTip::showText(m_hoverPos, text);
|
QToolTip::showText(m_hoverPos, text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue