Logo Search packages:      
Sourcecode: akregator version File versions

void View::slotFeedTreeContextMenu ( KListView *  ,
TreeNodeItem item,
const QPoint &  p 
) [slot]

Shows requested popup menu for feed tree

Definition at line 670 of file akregator_view.cpp.

References Akregator::TreeNode::isGroup(), m_tabs, and Akregator::TreeNodeItem::node().

Referenced by View().

{
    TreeNode* node = item ? item->node() : 0;

    if (!node)
        return;
    
    m_tabs->showPage(m_mainTab);
    
    QWidget *w;
    if (node->isGroup())
        w = m_part->factory()->container("feedgroup_popup", m_part);
    else
        w = m_part->factory()->container("feeds_popup", m_part);
    if (w)
        static_cast<QPopupMenu *>(w)->exec(p);
}


Generated by  Doxygen 1.6.0   Back to index