1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2025-01-03 05:36:19 +00:00

Add tooltip containing path name. By @XXXBold (#1072)

This commit is contained in:
XXXBold 2021-10-13 14:40:19 +00:00 committed by GitHub
parent 54d8bbe6b1
commit 9919070e49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(""))