Logo Search packages:      
Sourcecode: akregator version File versions

void View::slotMouseButtonPressed ( int  button,
QListViewItem *  item,
const QPoint &  pos,
int  c 
) [slot]

special behaviour in article list view (TODO: move code there?)

Definition at line 1194 of file akregator_view.cpp.

References displayInExternalBrowser(), and slotOpenTab().

Referenced by View().

{
    ArticleListItem *i = static_cast<ArticleListItem *>(item);
    if (!i)
        return;
    
    if (button == Qt::MidButton)
    {
        switch (Settings::mMBBehaviour())
        {
            case Settings::EnumMMBBehaviour::OpenInExternalBrowser:
                displayInExternalBrowser(i->article().link());
                break;
            case Settings::EnumMMBBehaviour::OpenInBackground:
                slotOpenTab(i->article().link(),true);
                break;
            default:
                slotOpenTab(i->article().link());
        }
    }
}


Generated by  Doxygen 1.6.0   Back to index