From 32f95d57a52fc31170028f590a7ca97162d0c889 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Fri, 17 May 2013 15:30:55 +0200 Subject: Fix gcc warning about unused code Change-Id: I88bef60bb272319229a92481deec4ac9de9a0547 Reviewed-by: Friedemann Kleint --- src/designer/src/plugins/activeqt/qdesigneraxwidget.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/designer') diff --git a/src/designer/src/plugins/activeqt/qdesigneraxwidget.cpp b/src/designer/src/plugins/activeqt/qdesigneraxwidget.cpp index 31ecda035..4c08dcefc 100644 --- a/src/designer/src/plugins/activeqt/qdesigneraxwidget.cpp +++ b/src/designer/src/plugins/activeqt/qdesigneraxwidget.cpp @@ -215,12 +215,16 @@ const QMetaObject *QDesignerAxPluginWidget::metaObject() const return QDesignerAxWidget::metaObject(); } +#ifndef QT_NO_EXCEPTIONS + static QString msgComException(const QObject *o, const QMetaObject::Call call, int index) { return QDesignerAxWidget::tr("A COM exception occurred when executing a meta call of type %1, index %2 of \"%3\"."). arg(call).arg(index).arg(o->objectName()); } +#endif // QT_NO_EXCEPTIONS + int QDesignerAxPluginWidget::qt_metacall(QMetaObject::Call call, int signal, void **argv) { QAxWidget *aw = axobject(); -- cgit v1.2.1