KParts::PartActivateEvent Class

class KParts::PartActivateEvent

This event is sent by the part manager when the active part changes. More...

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

Public Functions

PartActivateEvent(bool activated, KParts::Part *part, QWidget *widget)
bool activated() const
KParts::Part *part() const
QWidget *widget() const

Static Public Members

bool test(const QEvent *event)

Detailed Description

Each time the active part changes, it will send first a PartActivateEvent with activated=false, part=oldActivePart, widget=oldActiveWidget and then another PartActivateEvent with activated=true, part=newPart, widget=newWidget.

See also KParts::Part::partActivateEvent.

Member Function Documentation

PartActivateEvent::PartActivateEvent(bool activated, KParts::Part *part, QWidget *widget)

bool PartActivateEvent::activated() const

KParts::Part *PartActivateEvent::part() const

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

QWidget *PartActivateEvent::widget() const