Logo Search packages:      
Sourcecode: akregator version File versions

void View::slotArticleToggleKeepFlag (  )  [slot]

toggles the keep flag of the currently selected article

Definition at line 1453 of file akregator_view.cpp.

References m_articles.

{
    ArticleListItem* ali = m_articles->selectedItem();

    if (!ali)
        return;

    bool keep = !ali->article().keep();
    
    if (keep)
        ali->setPixmap(0, m_keepFlagIcon);
    else
        ali->setPixmap(0, QPixmap() );
    KToggleAction* ka = static_cast<KToggleAction*>    (m_part->actionCollection()->action("article_toggle_keep"));
    if (ka)
        ka->setChecked( keep );
    
    ali->article().setKeep(keep);
    Archive::save( ali->article().feed() );
}


Generated by  Doxygen 1.6.0   Back to index