KParts
partmanager.cpp
184 if (ev->type() != QEvent::MouseButtonPress && ev->type() != QEvent::MouseButtonDblClick && ev->type() != QEvent::FocusIn) {
194 if (((w->windowFlags().testFlag(Qt::Dialog)) && w->isModal()) || (w->windowFlags().testFlag(Qt::Popup)) || (w->windowFlags().testFlag(Qt::Tool))) {
202 qCDebug(KPARTSLOG) << "PartManager::eventFilter button:" << mev->button() << "d->m_activationButtonMask=" << d->m_activationButtonMask;
258 qCDebug(KPARTSLOG) << "Part" << part << "(non-selectable) made active because" << w->metaObject()->className() << "got event" << evType;
270 qCDebug(KPARTSLOG) << "Part" << part << "made active (from selected) because" << w->metaObject()->className() << "got event" << evType;
287 qCDebug(KPARTSLOG) << "Part" << part << "made active because" << w->metaObject()->className() << "got event" << evType;
299 if (w && (((w->windowFlags() & Qt::Dialog) && w->isModal()) || (w->windowFlags() & Qt::Popup) || (w->windowFlags() & Qt::Tool))) {
300 qCDebug(KPARTSLOG) << "No part made active although" << obj->objectName() << "/" << obj->metaObject()->className() << "got event - loop aborted";
306 qCDebug(KPARTSLOG) << "No part made active although" << obj->objectName() << "/" << obj->metaObject()->className() << "got event - loop aborted";
393 // qCDebug(KPARTSLOG) << "replacePart" << oldPart->name() << "->" << newPart->name() << "setActive=" << setActive;
394 // This methods does exactly removePart + addPart but without calling setActivePart(0) in between
396 qFatal("Can't remove part %s, not in KPartManager's list.", oldPart->objectName().toLocal8Bit().constData());
415 // check whether nested parts are disallowed and activate the top parent part then, by traversing the
426 qCDebug(KPARTSLOG) << "PartManager::setActivePart d->m_activePart=" << d->m_activePart << "<->part=" << part << "d->m_activeWidget=" << d->m_activeWidget
430 if (d->m_activePart && part && d->m_activePart == part && (!widget || d->m_activeWidget == widget)) {
short int activationButtonMask() const
Definition: partmanager.cpp:177
This event is sent when a part is selected or deselected.
Definition: partselectevent.h:24
QWidget * topLevelWidget() const const
void partRemoved(KParts::Part *part)
Emitted when a part has been removed.
MouseButtonPress
bool eventFilter(QObject *obj, QEvent *ev) override
Definition: partmanager.cpp:182
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
void partAdded(KParts::Part *part)
Emitted when a new part has been added.
focusPolicy
Q_EMITQ_EMIT
Qt::MouseButton button() const const
void setIgnoreScrollBars(bool ignore)
Specifies whether the partmanager should ignore mouse click events for scrollbars or not.
Definition: partmanager.cpp:162
bool isModal() const const
QObject * sender() const const
virtual QWidget * activeWidget() const
Returns the active widget of the current active part (see activePart ).
Definition: partmanager.cpp:484
void addManagedTopLevelWidget(const QWidget *topLevel)
Adds the topLevel widget to the list of managed toplevel widgets.
Definition: partmanager.cpp:554
virtual void removePart(Part *part)
Removes a part from the manager (this does not delete the object) .
Definition: partmanager.cpp:368
LeftButton
Definition: browserextension.h:25
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void destroyed(QObject *obj)
void removeManagedTopLevelWidget(const QWidget *topLevel)
Removes the topLevel widget from the list of managed toplevel widgets.
Definition: partmanager.cpp:568
Dialog
void activePartChanged(KParts::Part *newPart)
Emitted when the active part has changed.
windowFlags
OtherFocusReason
bool sendEvent(QObject *receiver, QEvent *event)
virtual QWidget * selectedWidget() const
Returns the selected widget of the current selected part (see selectedPart ).
Definition: partmanager.cpp:528
void installEventFilter(QObject *filterObj)
void setActivationButtonMask(short int buttonMask)
Specifies which mouse buttons the partmanager should react upon.
Definition: partmanager.cpp:172
virtual void setSelectedPart(Part *part, QWidget *widget=nullptr)
Sets the selected part.
Definition: partmanager.cpp:490
Qt::FocusReason reason() const const
bool isTopLevel() const const
virtual Part * hitTest(QWidget *widget, const QPoint &globalPos)
Returns the part (this, or a child part) at the given global position.
Definition: part.cpp:127
virtual void setActivePart(Part *part, QWidget *widget=nullptr)
Sets the active part.
Definition: partmanager.cpp:408
virtual const QMetaObject * metaObject() const const
const char * className() const const
SelectionPolicy
Selection policy. The default policy of a PartManager is Direct.
Definition: partmanager.h:44
virtual Part * selectedPart() const
Returns the current selected part.
Definition: partmanager.cpp:521
bool isWidgetType() const const
QEvent::Type type() const const
objectName
QPoint globalPos() const const
void slotManagedTopLevelWidgetDestroyed()
Definition: partmanager.cpp:573
void setSelectionPolicy(SelectionPolicy policy)
Sets the selection policy of the partmanager.
Definition: partmanager.cpp:142
NoFocus
This event is sent by the part manager when the active part changes. Each time the active part change...
Definition: partactivateevent.h:28
virtual void addPart(Part *part, bool setActive=true)
Adds a part to the manager.
Definition: partmanager.cpp:332
QWidget * parentWidget() const const
QObject * parent() const const
virtual void replacePart(Part *oldPart, Part *newPart, bool setActive=true)
Replaces oldPart with newPart, and sets newPart as active if setActive is true.
Definition: partmanager.cpp:391
void setIgnoreExplictFocusRequests(bool)
Sets whether the PartManager ignores explicit set focus requests from the part.
Definition: partmanager.cpp:584
void setAllowNestedParts(bool allow)
Specifies whether the partmanager should handle/allow nested parts or not.
Definition: partmanager.cpp:152
const QList< Part * > parts() const
Returns the list of parts being managed by the partmanager.
Definition: partmanager.cpp:549
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Aug 11 2022 03:55:25 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Aug 11 2022 03:55:25 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.