Okular::BrowseAction

Search for usage in LXR

Okular::BrowseAction Class Reference

#include <action.h>

Inheritance diagram for Okular::BrowseAction:

Public Member Functions

 BrowseAction (const QUrl &url)
 
 ~BrowseAction () override
 
QString actionTip () const override
 
ActionType actionType () const override
 
QUrl url () const
 
- Public Member Functions inherited from Okular::Action
virtual ~Action ()
 
const void * nativeHandle () const
 
OKULARCORE_DEPRECATED QVariant nativeId () const
 
QVector< Action * > nextActions () const
 
void setNativeHandle (std::shared_ptr< const void > handle)
 
OKULARCORE_DEPRECATED void setNativeId (const QVariant &id)
 
void setNextActions (const QVector< Action * > &actions)
 

Additional Inherited Members

- Public Types inherited from Okular::Action
enum  ActionType {
  Goto , Execute , Browse , DocAction ,
  Sound , Movie , Script , Rendition ,
  BackendOpaque
}
 

Detailed Description

The Browse action browses an url by opening a web browser or email client, depending on the url protocol (e.g.

http, mailto, etc.).

Definition at line 261 of file action.h.

Constructor & Destructor Documentation

◆ BrowseAction()

BrowseAction::BrowseAction ( const QUrl & url)
explicit

Creates a new browse action.

Parameters
urlThe url to browse.

Definition at line 226 of file action.cpp.

◆ ~BrowseAction()

BrowseAction::~BrowseAction ( )
override

Destroys the browse action.

Definition at line 231 of file action.cpp.

Member Function Documentation

◆ actionTip()

QString BrowseAction::actionTip ( ) const
overridevirtual

Returns the action tip.

Reimplemented from Okular::Action.

Definition at line 240 of file action.cpp.

◆ actionType()

Action::ActionType BrowseAction::actionType ( ) const
overridevirtual

Returns the action type.

Implements Okular::Action.

Definition at line 235 of file action.cpp.

◆ url()

QUrl BrowseAction::url ( ) const

Returns the url to browse.

Definition at line 251 of file action.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:47:54 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.