Skip to content
Permalink
Browse files

Enable webview tools and fix some minor dox issues

  • Loading branch information
elpaso committed Mar 25, 2019
1 parent 90ea199 commit 0aa326b9f9285623b7a6497cf3d918f007b4a591
@@ -395,9 +395,7 @@ The QML code that will be represented within this widget.

void setQmlCode( const QString &qmlCode );
%Docstring
The QML code that will be represented within this widget.

@param qmlCode
Sets the QML code that will be represented within this widget to ``qmlCode``.
%End

};
@@ -436,9 +434,7 @@ The QML code that will be represented within this widget.

void setHtmlCode( const QString &htmlCode );
%Docstring
The HTML code that will be represented within this widget.

@param htmlCode
Sets the HTML code that will be represented within this widget to ``htmlCode``.
%End

};
@@ -459,9 +459,7 @@ class CORE_EXPORT QgsAttributeEditorQmlElement : public QgsAttributeEditorElemen
QString qmlCode() const;

/**
* The QML code that will be represented within this widget.
*
* @param qmlCode
* Sets the QML code that will be represented within this widget to \a qmlCode.
*/
void setQmlCode( const QString &qmlCode );

@@ -502,9 +500,7 @@ class CORE_EXPORT QgsAttributeEditorHtmlElement : public QgsAttributeEditorEleme
QString htmlCode() const;

/**
* The HTML code that will be represented within this widget.
*
* @param htmlCode
* Sets the HTML code that will be represented within this widget to \a htmlCode.
*/
void setHtmlCode( const QString &htmlCode );

@@ -83,11 +83,7 @@ void QgsHtmlWidgetWrapper::setHtmlContext( )

HtmlExpression *htmlExpression = new HtmlExpression();
htmlExpression->setExpressionContext( expressionContext );

#ifdef QGISDEBUG
mWidget->page()->settings()->setAttribute( QWebSettings::DeveloperExtrasEnabled, true );
#endif

auto frame = mWidget->page()->mainFrame();
connect( frame, &QWebFrame::javaScriptWindowObjectCleared, [ = ]
{
@@ -58,7 +58,7 @@ class GUI_EXPORT QgsHtmlWidgetWrapper : public QgsWidgetWrapper

private slots:
//! sets the html context with the current values
void setHtmlContext();
void setHtmlContext( );

private:
QString mHtmlCode;

0 comments on commit 0aa326b

Please sign in to comment.
You can’t perform that action at this time.