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

Method eventFilter

src/frontend/widgets/TreeViewComboBox.cpp:239–246  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

237 catches the MouseButtonPress-event and hides the tree view on mouse clicking.
238*/
239bool TreeViewComboBox::eventFilter(QObject* object, QEvent* event) {
240 if ((object == m_groupBox) && event->type() == QEvent::MouseButtonPress) {
241 m_groupBox->hide();
242 this->setFocus();
243 return true;
244 }
245 return QComboBox::eventFilter(object, event);
246}
247
248// SLOTs
249void TreeViewComboBox::treeViewIndexActivated(const QModelIndex& index) {

Callers

nothing calls this directly

Calls 2

typeMethod · 0.45
setFocusMethod · 0.45

Tested by

no test coverage detected