20 #include <QCoreApplication>
26 mWebPage( 0 ), mLoaded( false ), mHtmlUnitsToMM( 1.0 )
30 QObject::connect(
mWebPage, SIGNAL( loadFinished(
bool ) ),
this, SLOT(
frameLoaded(
bool ) ) );
58 qApp->processEvents();
63 QSize contentsSize =
mWebPage->mainFrame()->contentsSize();
65 mWebPage->setViewportSize( contentsSize );
66 mWebPage->mainFrame()->setScrollBarPolicy( Qt::Horizontal, Qt::ScrollBarAlwaysOff );
67 mWebPage->mainFrame()->setScrollBarPolicy( Qt::Vertical, Qt::ScrollBarAlwaysOff );
118 if ( recalcFrameSizes )
126 QDomElement htmlElem = doc.createElement(
"ComposerHtml" );
127 htmlElem.setAttribute(
"url",
mUrl.toString() );
128 bool state =
_writeXML( htmlElem, doc, ignoreFrames );
129 elem.appendChild( htmlElem );
136 QString urlString = itemElem.attribute(
"url" );
137 if ( !urlString.isEmpty() )
139 setUrl( QUrl( urlString ) );
141 return _readXML( itemElem, doc, ignoreFrames );