From 9919070e49449d2e89a4135d4d737d6dc2709b26 Mon Sep 17 00:00:00 2001 From: XXXBold <30773753+XXXBold@users.noreply.github.com> Date: Wed, 13 Oct 2021 14:40:19 +0000 Subject: [PATCH] Add tooltip containing path name. By @XXXBold (#1072) --- src/vorta/views/source_tab.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/vorta/views/source_tab.py b/src/vorta/views/source_tab.py index 21986302..0332f367 100644 --- a/src/vorta/views/source_tab.py +++ b/src/vorta/views/source_tab.py @@ -112,8 +112,10 @@ def add_source_to_table(self, source, update_data=None): index_row = self.sourceFilesWidget.rowCount() self.sourceFilesWidget.insertRow(index_row) - # Insert all items on current row - self.sourceFilesWidget.setItem(index_row, SourceColumn.Path, QTableWidgetItem(source.dir)) + # Insert all items on current row, add tooltip containg the path name + new_item = QTableWidgetItem(source.dir) + new_item.setToolTip(source.dir) + self.sourceFilesWidget.setItem(index_row, SourceColumn.Path, new_item) self.sourceFilesWidget.setItem(index_row, SourceColumn.Type, QTableWidgetItem("")) self.sourceFilesWidget.setItem(index_row, SourceColumn.Size, SizeItem("")) self.sourceFilesWidget.setItem(index_row, SourceColumn.FilesCount, FilesCount(""))