From 5660d38c99ef713a1b75b9ae90df3d4c98fe4f33 Mon Sep 17 00:00:00 2001 From: Vladimir Alyamkin Date: Wed, 9 Jul 2014 03:04:52 +0400 Subject: [PATCH] Loading process a bit speed upped --- ThirdParty/VaQuoleUI/Private/VaQuoleAppThread.cpp | 11 ----------- ThirdParty/VaQuoleUI/Private/VaQuoleWebView.cpp | 2 +- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/ThirdParty/VaQuoleUI/Private/VaQuoleAppThread.cpp b/ThirdParty/VaQuoleUI/Private/VaQuoleAppThread.cpp index 0ffb2ea..a72f071 100644 --- a/ThirdParty/VaQuoleUI/Private/VaQuoleAppThread.cpp +++ b/ThirdParty/VaQuoleUI/Private/VaQuoleAppThread.cpp @@ -181,17 +181,6 @@ void VaQuoleUIManager::run() { WebView->resize(NewWidth, NewHeight); } - - // Process events immediately - qApp->processEvents(); - - // Update external data - Page->mutex.lock(); - ExtComm->bTransparent = WebView->getTransparency(); - ExtComm->Width = WebView->width(); - ExtComm->Height = WebView->height(); - UpdateImageBuffer(ExtComm, WebView); - Page->mutex.unlock(); } // Check URL diff --git a/ThirdParty/VaQuoleUI/Private/VaQuoleWebView.cpp b/ThirdParty/VaQuoleUI/Private/VaQuoleWebView.cpp index d05285b..5c85248 100644 --- a/ThirdParty/VaQuoleUI/Private/VaQuoleWebView.cpp +++ b/ThirdParty/VaQuoleUI/Private/VaQuoleWebView.cpp @@ -26,7 +26,7 @@ VaQuoleWebView::VaQuoleWebView(QWidget *parent) : // Register us with JavaScript connect(this, SIGNAL(loadFinished(bool)), this, SLOT(registerJavaScriptWindowObject(bool))); - connect(page()->mainFrame(), SIGNAL(loadFinished(bool)), this, SLOT(markLoadFinished(bool))); + connect(this, SIGNAL(loadFinished(bool)), this, SLOT(markLoadFinished(bool))); } void VaQuoleWebView::updateImageCache(QSize ImageSize)