commit b9dbabc117bcd550877ae60f956705287e7f2139
parent 8f84a90ab513ab07fd411279e0a24dd0faf47ede
Author: ThomasV <electrumdev@gmail.com>
Date: Thu, 30 Apr 2015 11:49:04 +0200
Merge pull request #1178 from kyuupichan/editable_cols
Make stretch column editable again.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gui/qt/util.py b/gui/qt/util.py
@@ -260,7 +260,7 @@ def filename_field(parent, config, defaultname, select_msg):
class MyTreeWidget(QTreeWidget):
- def __init__(self, parent, create_menu, headers, stretch_column=0):
+ def __init__(self, parent, create_menu, headers, stretch_column=None):
QTreeWidget.__init__(self, parent)
self.parent = parent
self.setColumnCount(len(headers))
@@ -274,7 +274,7 @@ class MyTreeWidget(QTreeWidget):
self.insertChild = self.insertTopLevelItem
# editable column
self.is_edit = False
- self.edit_column = None
+ self.edit_column = stretch_column
self.itemDoubleClicked.connect(self.edit_label)
self.itemChanged.connect(self.label_changed)
# stretch