Logo Search packages:      
Sourcecode: akregator version File versions

void View::displayInExternalBrowser ( const KURL &  url  )  [protected, slot]

Display article in external browser.

Display article in external browser.

Definition at line 1073 of file akregator_view.cpp.

Referenced by slotMouseButtonPressed(), slotOpenArticleExternal(), and slotOpenHomepage().

{
    if (!url.isValid()) return;
    if (Settings::externalBrowserUseKdeDefault())
        kapp->invokeBrowser(url.url(), "0");
    else
    {
        QString cmd = Settings::externalBrowserCustomCommand();
        QString urlStr = url.url();
        cmd.replace(QRegExp("%u"), urlStr);
        KProcess *proc = new KProcess;
        QStringList cmdAndArgs = KShell::splitArgs(cmd);
        *proc << cmdAndArgs;
        proc->start(KProcess::DontCare);
        delete proc;
    }
}


Generated by  Doxygen 1.6.0   Back to index