MCPcopy Create free account
hub / github.com/Kitware/CMake / eventFilter

Method eventFilter

Source/QtDialog/QCMakeCacheView.cxx:649–660  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

647}
648
649bool QCMakeCacheModelDelegate::eventFilter(QObject* object, QEvent* evt)
650{
651 // FIXME: This filter avoids a crash when opening a file dialog
652 // with the '...' button on a cache entry line in the GUI.
653 // Previously this filter was commented as a workaround for Qt issue 205903,
654 // but that was fixed in Qt 4.5.0 and the crash still occurs as of Qt 5.14
655 // without this filter. This needs further investigation.
656 if (evt->type() == QEvent::FocusOut && this->FileDialogFlag) {
657 return false;
658 }
659 return QItemDelegate::eventFilter(object, evt);
660}
661
662void QCMakeCacheModelDelegate::setModelData(QWidget* editor,
663 QAbstractItemModel* model,

Callers

nothing calls this directly

Calls 1

typeMethod · 0.45

Tested by

no test coverage detected