Skip to content

Commit 6b7de9b

Browse files
committed
show full path in tooltip for Files > Location
1 parent e718efa commit 6b7de9b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/docks/filesdock.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,7 @@ FilesDock::FilesDock(QWidget *parent)
550550
m_filesModel->setFilter(QDir::Dirs | QDir::Files | QDir::NoDotAndDotDot);
551551
m_filesModel->setReadOnly(true);
552552
m_filesModel->setRootPath(Settings.filesCurrentDir());
553+
ui->locationsCombo->setToolTip(Settings.filesCurrentDir());
553554
m_filesProxyModel = new FilesProxyModel(this);
554555
m_filesProxyModel->setFilterCaseSensitivity(Qt::CaseInsensitive);
555556
m_filesProxyModel->setSourceModel(m_filesModel);
@@ -1097,6 +1098,7 @@ void FilesDock::changeDirectory(const QString &filePath, bool resetLocations)
10971098
ui->treeView->setCurrentIndex(index);
10981099
index = m_filesModel->setRootPath(path);
10991100
Settings.setFilesCurrentDir(path);
1101+
ui->locationsCombo->setToolTip(path);
11001102
m_view->setRootIndex(m_filesProxyModel->mapFromSource(index));
11011103
m_iconsView->updateSizes();
11021104
if (resetLocations)
@@ -1118,6 +1120,7 @@ void FilesDock::changeFilesDirectory(const QModelIndex &index)
11181120
m_iconsView->updateSizes();
11191121
auto path = QDir::toNativeSeparators(m_filesModel->rootPath());
11201122
ui->locationsCombo->setCurrentText(path);
1123+
ui->locationsCombo->setToolTip(path);
11211124
m_view->scrollToTop();
11221125
clearStatus();
11231126
}

0 commit comments

Comments
 (0)