4-21-2011 Short Description: Qt4 Port: RPL Display Dialog, "Line Breaks" Q3ListView Bug Number: n/a Release notes (y/n): no For Release Nums: 6.1 ---------------------------- RplDisplaySettingsDlg.hpp RplDisplaySettingsDlg.cpp RplDisplaySettingsWidgets.ui ---------------------------- OLD: Q3ListView* _ui._breaksListView NEW: QTreeWidget* _ui._breaksTreeView OLD: class RplDisplaySettingsDlg::LineBreakViewItem : public Q3ListViewItem NEW: class RplDisplaySettingsDlg::LineBreakItem : public QTreeWidgetItem This was a port to a (simple, item-based) QTreeWidget. The following features needed to be addressed in this port: (1) Three columns with in-cell numeric editing, with one having displayed text for two special values ("Always" and "Never"). (2) Two columns with icon-implemented checkboxes, manually implemented with mouse clicks. (3) Sortable columns (4) Centered column content. Special indented Red-X and Green-Check icons are dynamically constructed to implement those icons as centered. Additionally, the following behaviors were explicitly implemented: (1) Deferred (timer-based) scrolling to the CURRENT ITEM after operations (including incell-edits) which effect the list order (based on the current sort column). (2) Infinite recursion prevention on change notifications. (QTreeWidget doesn't provide a way of distinguishing use edits from programatic changes). (3) Custom item comparison operator to implement numeric and check-icon column sorting. ---