> In VerticalJournal::setModel and VerticalJournal::setDelegate:
>
> if (!m_delegateModel) {
> [...]
> }
> [...]
> for (int i = 0; i < m_columnVisibleItems.count(); ++i)
> {
> [...]
> }
>
> coding style: Let's be consistent with the placement of {}.
>
> Seeing that you have the same code snippet in two functions makes me think
> that you could at least have a cleanupExistingItems() helper function with
> that chunk of code:
>
> for (int i = 0; i < m_columnVisibleItems.count(); ++i) {
> QList<ViewItem> &column = m_columnVisibleItems[i];
> Q_FOREACH(const ViewItem &item, column)
> releaseItem(item);
> column.clear();
> }
> m_indexColumnMap.clear();
>
>
> ---------------------------
> In VerticalJournal ::setModel and VerticalJournal ::setDelegate: Items.count( ); ++i) Items() helper function with Items.count( ); ++i) { Items[i] ; p.clear( ); ------- ------- ------
>
> if (!m_delegateModel) {
> [...]
> }
> [...]
> for (int i = 0; i < m_columnVisible
> {
> [...]
> }
>
> coding style: Let's be consistent with the placement of {}.
>
> Seeing that you have the same code snippet in two functions makes me think
> that you could at least have a cleanupExisting
> that chunk of code:
>
> for (int i = 0; i < m_columnVisible
> QList<ViewItem> &column = m_columnVisible
> Q_FOREACH(const ViewItem &item, column)
> releaseItem(item);
> column.clear();
> }
> m_indexColumnMa
>
>
> -------
Done