From 8695c1753964eeb06b5d9306010b56be5fc151c0 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Mon, 21 Jan 2013 13:41:56 +0100 Subject: ActiveQt Designer plugin: Load control string correctly. Task-number: QTBUG-29234 Change-Id: I5762c75efc24bf5322ff767a9dbecfdfc02c3377 Reviewed-by: Jarek Kobus --- src/designer/src/plugins/activeqt/qaxwidgetpropertysheet.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/designer/src/plugins/activeqt/qaxwidgetpropertysheet.cpp b/src/designer/src/plugins/activeqt/qaxwidgetpropertysheet.cpp index 39a5c5614..354943ff5 100644 --- a/src/designer/src/plugins/activeqt/qaxwidgetpropertysheet.cpp +++ b/src/designer/src/plugins/activeqt/qaxwidgetpropertysheet.cpp @@ -48,6 +48,7 @@ #include #include +#include #include #include @@ -111,7 +112,8 @@ void QAxWidgetPropertySheet::setProperty(int index, const QVariant &value) } // Loading forms: Reload if (name == m_controlProperty) { - const QString clsid = value.toString(); + const qdesigner_internal::PropertySheetStringValue sv = qvariant_cast(value); + const QString clsid = sv.value(); if (clsid.isEmpty() || !axWidget()->loadControl(clsid)) reset(index); else -- cgit v1.2.1