From c29e9bb68d0a5909f3f1f4a322413f294594095f Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Mon, 25 Jan 2021 11:28:18 +0100 Subject: [PATCH] Project Details Content tree should not have selectable rows --- nw/gui/projdetails.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nw/gui/projdetails.py b/nw/gui/projdetails.py index 7b46b39d..496f0208 100644 --- a/nw/gui/projdetails.py +++ b/nw/gui/projdetails.py @@ -33,7 +33,7 @@ from PyQt5.QtCore import Qt, QSize from PyQt5.QtGui import QFont from PyQt5.QtWidgets import ( QWidget, QDialogButtonBox, QVBoxLayout, QTreeWidget, QTreeWidgetItem, - QLabel, QSpinBox, QGridLayout, QHBoxLayout, QLineEdit + QLabel, QSpinBox, QGridLayout, QHBoxLayout, QLineEdit, QAbstractItemView ) from nw.gui.custom import PagedDialog, QSwitch @@ -271,6 +271,7 @@ class GuiProjectDetailsContents(QWidget): self.tocTree.setIconSize(QSize(iPx, iPx)) self.tocTree.setIndentation(0) self.tocTree.setColumnCount(6) + self.tocTree.setSelectionMode(QAbstractItemView.NoSelection) self.tocTree.setHeaderLabels(["Title", "Words", "Pages", "Page", "Progress", ""]) treeHeadItem = self.tocTree.headerItem()