| 80 | Widget3DWidget::~Widget3DWidget() = default; |
| 81 | |
| 82 | bool Widget3DWidget::isWindow() const |
| 83 | { |
| 84 | if (!mQWidget->isWindow()) { |
| 85 | return false; |
| 86 | } |
| 87 | |
| 88 | // Those are technically windows, but we don't want them listed in the window |
| 89 | // list |
| 90 | // TODO: any more exceptions? |
| 91 | if (qobject_cast<QMenu *>(mQWidget) |
| 92 | || qstrcmp(mQWidget->metaObject()->className(), "QTipLabel") == 0) { |
| 93 | return false; |
| 94 | } |
| 95 | |
| 96 | return true; |
| 97 | } |
| 98 | |
| 99 | bool Widget3DWidget::eventFilter(QObject *obj, QEvent *ev) |
| 100 | { |
no test coverage detected