MCPcopy Create free account
hub / github.com/KDE/kdevelop / eventFilter

Method eventFilter

kdevplatform/shell/areadisplay.cpp:88–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88bool AreaDisplay::eventFilter(QObject* obj, QEvent* event)
89{
90 if (event->type() == QEvent::Show) {
91 m_separator->setVisible(true);
92 // Recalculate menu bar widget sizes after showing the working set button (not done automatically)
93 QMetaObject::invokeMethod(m_mainWindow->menuBar(), &QMenuBar::adjustSize, Qt::QueuedConnection);
94 } else if (event->type() == QEvent::Hide) {
95 m_separator->setVisible(false);
96 QMetaObject::invokeMethod(m_mainWindow->menuBar(), &QMenuBar::adjustSize, Qt::QueuedConnection);
97 }
98
99 return QObject::eventFilter(obj, event);
100}
101
102void AreaDisplay::backToCode()
103{

Callers

nothing calls this directly

Calls 3

eventFilterFunction · 0.50
typeMethod · 0.45
setVisibleMethod · 0.45

Tested by

no test coverage detected