154 if (event->type() == QEvent::ChildPolished) {
155 QComboBox *cb =
static_cast<QComboBox*>(watched);
156 if (QLineEdit *le = cb->lineEdit()) {
157 le->setFocusPolicy(Qt::NoFocus);
158 le->setCursor(Qt::ArrowCursor);
161 return QObject::eventFilter(watched, event);
187
188
189 QWizard *wizard =
static_cast<QWizard *>(parent());
190 QDesignerFormWindowInterface *fw = QDesignerFormWindowInterface::findFormWindow(wizard);
193 QDesignerFormWindowCursorInterface *cursor = fw->cursor();
194 const int selCount = cursor->selectedWidgetCount();
195 for (
int i = 0; i < selCount; i++) {
196 if (!cursor->selectedWidget(i)->isVisible()) {
197 fw->clearSelection(
false);
198 fw->selectWidget(wizard,
true);
252 if (isAxWidget(created))
255 const char *createdClassNameC = created->metaObject()->className();
256 const QByteArray classNameB = className.toUtf8();
257 const char *classNameC = classNameB.constData();
258 if (qstrcmp(createdClassNameC, classNameC) == 0 || created->inherits(classNameC))
261 if (classNameB ==
"QWebEngineView" && qstrcmp(createdClassNameC,
"fake::QWebEngineView") == 0)
782 if (qobject_cast<
const QTabWidget*>(tabBar->parentWidget()))
787 const int count = tabBar->count();
792 const int currentIndex = tabBar->currentIndex();
793 const QPoint pos = tabBar->mapFromGlobal(QCursor::pos());
794 if (tabBar->tabRect(currentIndex).contains(pos))
798 const QRect geometry = QRect(QPoint(0, 0), tabBar->size());
799 if (!geometry.contains(pos))
802 for (
int i = 0; i < count; i++)
803 if (tabBar->tabRect(i).contains(pos))
810 if (qobject_cast<
const QMenuBar*>(widget)
811#if QT_CONFIG(sizegrip)
812 || qobject_cast<
const QSizeGrip*>(widget)
814 || qobject_cast<
const QMdiSubWindow*>(widget)
815 || qobject_cast<
const QToolBar*>(widget)) {
819 if (qobject_cast<
const QAbstractButton*>(widget)) {
820 auto parent = widget->parent();
821 if (qobject_cast<
const QTabBar*>(parent) || qobject_cast<
const QToolBox*>(parent))
823 }
else if (
const auto tabBar = qobject_cast<
const QTabBar*>(widget)) {
824 if (isTabBarInteractor(tabBar))
826 }
else if (qobject_cast<
const QScrollBar*>(widget)) {
828 if (
auto parent = widget->parentWidget()) {
829 const QString &objectName = parent->objectName();
830 if (objectName ==
"qt_scrollarea_vcontainer"_L1 || objectName ==
"qt_scrollarea_hcontainer"_L1)
833 }
else if (qstrcmp(widget->metaObject()->className(),
"QDockWidgetTitle") == 0) {
835 }
else if (qstrcmp(widget->metaObject()->className(),
"QWorkspaceTitleBar") == 0) {
838 const QString &name = widget->objectName();
839 return name.startsWith(
"__qt__passive_"_L1)
840 || name ==
"qt_qmainwindow_extended_splitter"_L1;