Commit 0645bc22 authored by hausmann's avatar hausmann
Browse files

Fix signal/slot connection for load progress.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21661 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent a0c15a43
2007-05-23 Simon Hausmann <hausmann@kde.org>
Reviewed by Zack.
* QtLauncher/main.cpp:
(MainWindow::MainWindow): Fix loading progress signal/slot connection.
2007-05-22 Simon Hausmann <hausmann@kde.org>
Reviewed by Lars.
......
......@@ -52,13 +52,13 @@ public:
public slots:
void startLoad()
{
setValue(int(m_progress*100));
setValue(m_progress);
show();
}
void changeLoad(double change)
void changeLoad(int change)
{
m_progress = change;
setValue(int(change*100));
setValue(change);
}
void endLoad()
{
......@@ -67,7 +67,7 @@ public slots:
}
protected:
qreal m_progress;
int m_progress;
};
class HoverLabel : public QWidget {
......@@ -277,8 +277,8 @@ public:
info->sizeHint().height());
connect(page, SIGNAL(loadStarted(QWebFrame*)),
info, SLOT(startLoad()));
connect(page, SIGNAL(loadProgressChanged(double)),
info, SLOT(changeLoad(double)));
connect(page, SIGNAL(loadProgressChanged(int)),
info, SLOT(changeLoad(int)));
connect(page, SIGNAL(loadFinished(QWebFrame*)),
info, SLOT(endLoad()));
connect(page, SIGNAL(loadFinished(QWebFrame*)),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment