[Bug 261957] [Regression] Article list column size isn't remembered

Yashin Anton fynjy-007 at yandex.ru
Wed May 23 15:13:05 BST 2012


https://bugs.kde.org/show_bug.cgi?id=261957

Yashin Anton <fynjy-007 at yandex.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fynjy-007 at yandex.ru

--- Comment #9 from Yashin Anton <fynjy-007 at yandex.ru> ---
(In reply to comment #8)
> Yashin,
> 
> I applied your patch.  but now I don't see the Date column at all, except on
> the feed group lists.
> 
> what did I miss?

Hi, Allen

I get similar behavior during debugging, when present in the functions
ArticleListView::setFeedMode() ArticleListView::setGroupMode() of the next
line.
header()->resizeSection( header()->logicalIndex( header()->count() - 1 ), 1 );
In fact, there is a column with a date, but its width is equal to one pixel.

Patched functions must be like this:

void ArticleListView::setGroupMode()
{
    if ( m_columnMode == GroupMode )
        return;

    if ( model() )
        m_feedHeaderState = header()->saveState();
    m_columnMode = GroupMode;
    restoreHeaderState();
}

void ArticleListView::setFeedMode()
{
    if ( m_columnMode == FeedMode )
        return;

    if ( model() )
        m_groupHeaderState = header()->saveState();
    m_columnMode = FeedMode;
    restoreHeaderState();
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.



More information about the Kdepim-bugs mailing list