130 const QRect r = contentsRect();
131 const int contentsWidth = r.width();
132 const int contentsHeight= r.height();
135 m_axobject->resize(size());
136 m_axobject->render(&p, pos());
139 static const QString loaded = tr(
"Control loaded");
140 QColor patternColor(Qt::green);
142 patternColor.setAlpha(80);
143 p.setBrush(QBrush(patternColor, Qt::BDiagPattern));
146 p.drawText(5,contentsHeight - 5, loaded);
150 p.drawRect(r.adjusted(0, 0, -1, -1));
153 if (contentsWidth > m_axImage.width() && contentsHeight > m_axImage.height())
154 p.drawPixmap((contentsWidth - m_axImage.width()) / 2,
155 (contentsHeight-m_axImage.height()) / 2, m_axImage);
195 return QDesignerAxWidget::qt_metacall(call,signal,argv);
198 const QMetaObject *mo = metaObject();
200 if (isInheritedCall(mo, call, signal)) {
202 return isInheritedCall(mo->superClass(), call, signal)
203 ? QDesignerAxWidget::qt_metacall(call, signal, argv) : -1;
207#ifndef QT_NO_EXCEPTIONS
211 if (call != QMetaObject::InvokeMetaMethod)
212 qDebug() << objectName() << call << signal << mo->property(signal).name();
214 case QMetaObject::ResetProperty:
215 rc = aw->qt_metacall(call, signal, argv);
217 m_propValues.remove(signal);
219 case QMetaObject::WriteProperty:
220 rc = aw->qt_metacall(call, signal, argv);
222 m_propValues.insert(signal,
true);
225 rc = aw->qt_metacall(call, signal, argv);
228#ifndef QT_NO_EXCEPTIONS
230 qWarning(msgComException(
this, call, signal).toUtf8());