ratt-ru / purr

Data reduction logging tool, Useful for remembering reductions
GNU General Public License v2.0
1 stars 1 forks source link

Data products QTreeWidget annoyances #12

Closed gijzelaerr closed 10 years ago

gijzelaerr commented 10 years ago
at 2009-10-31 00:41:37 Oleg Smirnov reported:

Data products QTreeWidget annoyances

gijzelaerr commented 10 years ago

Original comment thread migrated from bugzilla

at 2009-10-31 00:41:38 Oleg Smirnov replied:

Two gripes with the Qt4 version. Minor, but extraordinarily irritating:

at 2009-11-03 19:33:45 Oleg Smirnov replied:

Fixed in r7324.

First problem: fixed by explicitly passing focus to the persistent editor widget, as openPersistentEditor() does not seem to do this. The magic words are:

self.openPersistentEditor(item,column); self.itemWidget(item,column).setFocus(Qt.OtherFocusReason);

Second problem: fixed by calling setAutoDefault(False) on all QPushButtons in the dialog. Otherwise one of them always ended up grabbing the Enter keystroke.