void QtFallbackWebPopupCombo::hidePopup() { #ifndef QT_NO_IM QWidget* activeFocus = QApplication::focusWidget(); if (activeFocus && activeFocus == QComboBox::view() && activeFocus->testAttribute(Qt::WA_InputMethodEnabled)) { QInputContext* qic = activeFocus->inputContext(); if (qic) { qic->reset(); qic->setFocusWidget(0); } } #endif // QT_NO_IM QComboBox::hidePopup(); if (QGraphicsProxyWidget* proxy = graphicsProxyWidget()) proxy->setVisible(false); if (!m_ownerPopup.m_popupVisible) return; m_ownerPopup.m_popupVisible = false; m_ownerPopup.popupDidHide(); }
HGWidget* HGView::parentGWidget() const { QObject* p = parent(); if (p) return NULL; QGraphicsProxyWidget* proxy = graphicsProxyWidget(); if (!proxy || !proxy->parent()) return NULL; p = proxy->parent(); return (p->property("isHGWidget").toBool()) ? static_cast<HGWidget*>(p) : NULL; }
void OverlayEditor::leaveEvent(QEvent *event) { QGraphicsProxyWidget *qgpw = g.mw->graphicsProxyWidget(); if (qgpw) qgpw->setOpacity(0.3f); qgpw = graphicsProxyWidget(); if (qgpw) qgpw->setOpacity(0.3f); if (qgiPromote) qgiPromote->setZValue(1.0f); QDialog::leaveEvent(event); }
void HGView::setAlignment(Qt::Alignment align) { HGWidget* widget = parentGWidget(); if (widget) { QObject* p = NULL; QGraphicsProxyWidget* proxy = graphicsProxyWidget(); if (!proxy || !(p = proxy->parent())) return; if (p->property("isHGWidget").toBool()) static_cast<HGWidget*>(p)->layout()->setAlignment(proxy,align); } else { QObject* p = parent(); if (p->property("isHQWidget").toBool()) { static_cast<HQWidget*>(p)->layout()->setAlignment(this,align); } else if(p->property("isHGView").toBool()) { static_cast<HGView*>(p)->layout()->setAlignment(this,align); } } }
void QWebPopup::hidePopup() { QWidget* activeFocus = QApplication::focusWidget(); if (activeFocus && activeFocus == view() && activeFocus->testAttribute(Qt::WA_InputMethodEnabled)) { QInputContext* qic = activeFocus->inputContext(); if (qic) { qic->reset(); qic->setFocusWidget(0); } } QComboBox::hidePopup(); if (QGraphicsProxyWidget* proxy = graphicsProxyWidget()) proxy->setVisible(false); if (!m_popupVisible) return; m_popupVisible = false; m_client->popupDidHide(); }
OverlayEditor::OverlayEditor(QWidget *p, QGraphicsItem *qgi, OverlaySettings *osptr) : QDialog(p), qgiPromote(qgi), oes(g.s.os) { setupUi(this); os = osptr ? osptr : &g.s.os; connect(qdbbBox->button(QDialogButtonBox::Apply), SIGNAL(clicked()), this, SLOT(apply())); connect(qdbbBox->button(QDialogButtonBox::Reset), SIGNAL(clicked()), this, SLOT(reset())); QGraphicsProxyWidget *qgpw = graphicsProxyWidget(); if (qgpw) { qgpw->setFlag(QGraphicsItem::ItemIgnoresParentOpacity); if (g.ocIntercept) { qgpw->setPos(iroundf(g.ocIntercept->uiWidth / 16.0f + 0.5f), iroundf(g.ocIntercept->uiHeight / 16.0f + 0.5f)); qgpw->resize(iroundf(g.ocIntercept->uiWidth * 14.0f / 16.0f + 0.5f), iroundf(g.ocIntercept->uiHeight * 14.0f / 16.0f + 0.5f)); } } qgvView->setScene(&oes); reset(); }
void FileAttachmentAnnotationWidget::on_aboutToHide() { graphicsProxyWidget()->setZValue(0.0); }
void ComboBoxChoiceFieldWidget::hidePopup() { QComboBox::hidePopup(); graphicsProxyWidget()->setZValue(0.0); }