Search for usage in LXR

KParts::PartActivateEvent Class Reference

#include <KParts/PartActivateEvent>

Inheritance diagram for KParts::PartActivateEvent:

Public Member Functions

 PartActivateEvent (bool activated, Part *part, QWidget *widget)
bool activated () const
Partpart () const
QWidgetwidget () const
- Public Member Functions inherited from QEvent
 QEvent (Type type)
void accept ()
virtual QEventclone () const const
void ignore ()
bool isAccepted () const const
bool isInputEvent () const const
bool isPointerEvent () const const
bool isSinglePointEvent () const const
virtual void setAccepted (bool accepted)
bool spontaneous () const const
Type type () const const

Static Public Member Functions

static bool test (const QEvent *event)
- Static Public Member Functions inherited from QEvent
int registerEventType (int hint)

Additional Inherited Members

- Public Types inherited from QEvent
enum  Type
- Properties inherited from QEvent
- Public Attributes inherited from QEvent

Detailed Description

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

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

Definition at line 32 of file partactivateevent.h.

Constructor & Destructor Documentation

◆ PartActivateEvent()

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

Definition at line 29 of file partactivateevent.cpp.

Member Function Documentation

◆ activated()

bool PartActivateEvent::activated ( ) const

Definition at line 37 of file partactivateevent.cpp.

◆ part()

Part * PartActivateEvent::part ( ) const

Definition at line 42 of file partactivateevent.cpp.

◆ test()

bool PartActivateEvent::test ( const QEvent * event)

Definition at line 52 of file partactivateevent.cpp.

◆ widget()

QWidget * PartActivateEvent::widget ( ) const

Definition at line 47 of file partactivateevent.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 Jun 21 2024 12:05:37 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.