Logo Search packages:      
Sourcecode: akregator version File versions

void View::slotFeedAdd (  )  [slot]

adds a new feed to the feed tree

Definition at line 843 of file akregator_view.cpp.

References Akregator::FeedGroup::children(), m_feedList, m_tree, and Akregator::FeedList::rootNode().

{
    FeedGroup* group = 0;
    if (!m_tree->selectedNode())
        group = m_feedList->rootNode(); // all feeds
    else
    {
        if ( m_tree->selectedNode()->isGroup())
            group = static_cast<FeedGroup*>(m_tree->selectedNode());
        else 
            group= m_tree->selectedNode()->parent(); 
            
    }

    TreeNode* lastChild = group->children().last();
    
    addFeed(QString::null, lastChild, group, false);
}


Generated by  Doxygen 1.6.0   Back to index