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

Method eventFilter

src/frontend/widgets/ThemesComboBox.cpp:59–67  ·  view source on GitHub ↗

! catches the MouseButtonPress-event and hides the tree view on mouse clicking. */

Source from the content-addressed store, hash-verified

57 catches the MouseButtonPress-event and hides the tree view on mouse clicking.
58*/
59bool ThemesComboBox::eventFilter(QObject* object, QEvent* event) {
60 if ((object == m_groupBox) && event->type() == QEvent::MouseButtonPress) {
61 m_groupBox->hide();
62 this->setFocus();
63 return true;
64 }
65
66 return QComboBox::eventFilter(object, event);
67}
68
69void ThemesComboBox::handleThemeChanged(const QString& theme) {
70 if (theme != currentText()) {

Callers

nothing calls this directly

Calls 2

typeMethod · 0.45
setFocusMethod · 0.45

Tested by

no test coverage detected