KParts::OpenUrlEvent Class

class KParts::OpenUrlEvent

The KParts::OpenUrlEvent event informs that a given part has opened a given URL. More...

Header: #include <KParts/OpenUrlEvent>
CMake: find_package(KF6 REQUIRED COMPONENTS Parts)
target_link_libraries(mytarget PRIVATE KF6::Parts)
Inherits: QEvent

Public Functions

OpenUrlEvent(KParts::ReadOnlyPart *part, const QUrl &url, const KParts::OpenUrlArguments &args = OpenUrlArguments())
KParts::OpenUrlArguments arguments() const
KParts::ReadOnlyPart *part() const
QUrl url() const

Static Public Members

bool test(const QEvent *event)

Detailed Description

Applications can use this event to send this information to interested plugins.

The event should be sent before opening the URL in the part, so that the plugins can use part()->url() to get the old URL.

Member Function Documentation

OpenUrlEvent::OpenUrlEvent(KParts::ReadOnlyPart *part, const QUrl &url, const KParts::OpenUrlArguments &args = OpenUrlArguments())

KParts::OpenUrlArguments OpenUrlEvent::arguments() const

KParts::ReadOnlyPart *OpenUrlEvent::part() const

[static] bool OpenUrlEvent::test(const QEvent *event)

QUrl OpenUrlEvent::url() const