MCPcopy Create free account
hub / github.com/KDAB/GammaRay / isWindow

Method isWindow

plugins/widgetinspector/widget3dmodel.cpp:82–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80Widget3DWidget::~Widget3DWidget() = default;
81
82bool 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
99bool Widget3DWidget::eventFilter(QObject *obj, QEvent *ev)
100{

Callers 3

dataMethod · 0.80
itemDataMethod · 0.80
toplevelWidgetFunction · 0.80

Calls 2

classNameMethod · 0.45
metaObjectMethod · 0.45

Tested by

no test coverage detected