129 const QRect r = contentsRect();
130 const int contentsWidth = r.width();
131 const int contentsHeight= r.height();
134 m_axobject->resize(size());
135 m_axobject->render(&p, pos());
138 static const QString loaded = tr(
"Control loaded");
139 QColor patternColor(Qt::green);
141 patternColor.setAlpha(80);
142 p.setBrush(QBrush(patternColor, Qt::BDiagPattern));
145 p.drawText(5,contentsHeight - 5, loaded);
149 p.drawRect(r.adjusted(0, 0, -1, -1));
152 if (contentsWidth > m_axImage.width() && contentsHeight > m_axImage.height())
153 p.drawPixmap((contentsWidth - m_axImage.width()) / 2,
154 (contentsHeight-m_axImage.height()) / 2, m_axImage);
194 return QDesignerAxWidget::qt_metacall(call,signal,argv);
197 const QMetaObject *mo = metaObject();
199 if (isInheritedCall(mo, call, signal)) {
201 return isInheritedCall(mo->superClass(), call, signal)
202 ? QDesignerAxWidget::qt_metacall(call, signal, argv) : -1;
206#ifndef QT_NO_EXCEPTIONS
210 if (call != QMetaObject::InvokeMetaMethod)
211 qDebug() << objectName() << call << signal << mo->property(signal).name();
213 case QMetaObject::ResetProperty:
214 rc = aw->qt_metacall(call, signal, argv);
216 m_propValues.remove(signal);
218 case QMetaObject::WriteProperty:
219 rc = aw->qt_metacall(call, signal, argv);
221 m_propValues.insert(signal,
true);
224 rc = aw->qt_metacall(call, signal, argv);
227#ifndef QT_NO_EXCEPTIONS
229 qWarning(msgComException(
this, call, signal).toUtf8());