33void QDesignerDialog::paintEvent(QPaintEvent *e)
38 p.fillRect(e->rect(), palette().brush(backgroundRole()));
39 style()->drawPrimitive(QStyle::PE_Widget, &opt, &p,
this);
40 if (m_formWindow && m_formWindow->gridVisible())
41 m_formWindow->designerGrid().paint(p,
this, e);
57void QDesignerWidget::paintEvent(QPaintEvent *e)
62 p.fillRect(e->rect(), palette().brush(backgroundRole()));
63 style()->drawPrimitive(QStyle::PE_Widget, &opt, &p,
this);
64 if (m_formWindow && m_formWindow->gridVisible())
65 m_formWindow->designerGrid().paint(p,
this, e);