* Signal is emitted when the global progress status changes.
* It accumulates changes from all the child frames.
*/
- void loadProgressChanged(double progress);
+ void loadProgressChanged(int progress);
/**
* Signal is emitted when load has been finished on one of
* the child frames of the page. The frame on which the
+2007-05-18 Simon Hausmann <hausmann@kde.org>
+
+ Reviewed by Nikolas.
+
+ * Api/qwebpage.h: Changed the loadProgressChanged API to use an
+ percent integer instead of a double precision floating pointer number.
+ * WebCoreSupport/FrameLoaderClientQt.cpp:
+ (WebCore::FrameLoaderClientQt::setFrame):
+ (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
+ * WebCoreSupport/FrameLoaderClientQt.h:
+
2007-05-18 Marius Bugge Monsen <mbm@trolltech.com>
Reviewed by Zack Rusin.
connect(this, SIGNAL(loadStarted(QWebFrame*)),
m_webFrame->page(), SIGNAL(loadStarted(QWebFrame *)));
- connect(this, SIGNAL(loadProgressChanged(double)),
- m_webFrame->page(), SIGNAL(loadProgressChanged(double)));
+ connect(this, SIGNAL(loadProgressChanged(int)),
+ m_webFrame->page(), SIGNAL(loadProgressChanged(int)));
connect(this, SIGNAL(loadFinished(QWebFrame*)),
m_webFrame->page(), SIGNAL(loadFinished(QWebFrame *)));
connect(this, SIGNAL(titleChanged(const QString&)),
void FrameLoaderClientQt::postProgressEstimateChangedNotification()
{
if (m_webFrame && m_frame->page())
- emit loadProgressChanged(m_frame->page()->progress()->estimatedProgress());
+ emit loadProgressChanged(m_frame->page()->progress()->estimatedProgress() * 100);
}
void FrameLoaderClientQt::postProgressFinishedNotification()
signals:
void sigCallPolicyFunction(int);
void loadStarted(QWebFrame *frame);
- void loadProgressChanged(double d);
+ void loadProgressChanged(int d);
void loadFinished(QWebFrame *frame);
void titleChanged(const QString& title);