akregator
actions.cpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #include "actions.h"
00026
00027 #include <KIcon>
00028 #include <KLocalizedString>
00029 #include <KUrl>
00030
00031 #include <QAction>
00032
00033 QAction* Akregator::createOpenLinkInNewTabAction( const KUrl& url, QObject* receiver, const char* slot, QObject* parent )
00034 {
00035 QAction* action = new QAction( KIcon( "tab-new" ), i18n( "Open Link in New &Tab" ), parent );
00036 action->setData( url );
00037 if ( receiver && slot )
00038 QObject::connect( action, SIGNAL( triggered( bool ) ), receiver, slot );
00039 return action;
00040 }
00041
00042 QAction* Akregator::createOpenLinkInExternalBrowserAction( const KUrl& url, QObject* receiver, const char* slot, QObject* parent )
00043 {
00044 QAction* action = new QAction( KIcon( "window-new" ), i18n( "Open Link in External &Browser" ), parent );
00045 action->setData( url );
00046 if ( receiver && slot )
00047 QObject::connect( action, SIGNAL( triggered( bool ) ), receiver, slot );
00048 return action;
00049 }
00050