diff options
Diffstat (limited to 'src/webview.cpp')
-rw-r--r-- | src/webview.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/webview.cpp b/src/webview.cpp index fec96edc..654efc29 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -65,13 +65,10 @@ WebView::WebView(QWidget* parent) : QWebView(parent) , m_page(new WebPage(this)) - , m_progress(0) { setPage(m_page); connect(page(), SIGNAL(statusBarMessage(const QString&)), this, SLOT(setStatusBarText(const QString&))); - connect(this, SIGNAL(loadProgress(int)), this, SLOT(setProgress(int))); - connect(this, SIGNAL(loadFinished(bool)), this, SLOT(loadFinished())); } @@ -98,18 +95,6 @@ QString WebView::lastStatusBarText() const } -int WebView::progress() const -{ - return m_progress; -} - - -void WebView::setProgress(int progress) -{ - m_progress = progress; -} - - void WebView::setStatusBarText(const QString &string) { m_statusBarText = string; @@ -286,17 +271,6 @@ void WebView::contextMenuEvent(QContextMenuEvent *event) } -void WebView::loadFinished() -{ - if (m_progress != 100) - { - kWarning() << "Received finished signal while progress is still:" << progress() - << "Url:" << url(); - } - m_progress = 0; -} - - void WebView::keyPressEvent(QKeyEvent *event) { if ((event->modifiers() == Qt::ControlModifier) && (event->key() == Qt::Key_Tab)) |