1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-19 18:26:34 +01:00

Added support for printing page through javascript window.print()

This commit is contained in:
nowrep 2012-01-04 19:02:33 +01:00
parent ab5555d913
commit 9e7e0285bb
5 changed files with 9 additions and 3 deletions

4
FAQ
View File

@ -2,7 +2,7 @@ FAQ
Q: Profile data storage location
Q: Cannot find page bookmarked with clicking on star icon.
Q: Errors when visiting secured (https) sites.
Q: Errors when visiting secured (https) sites or downloading EasyList.
Q: Cannot save bookmarks and history.
Q: Using a lot of % CPU.
Q: Search engines are not saved through restarts.
@ -27,7 +27,7 @@ A: When you add a bookmark from the star icon, it is automatically added
Q: I am getting a lot of SSL errors when visiting secured (https) pages.
Why does this happen?
Also I cannot update EasyList. Why does this happen?
----------------------------------------------------------------------------------
A: Your system CA certificates list is probably too small or even missing.
You can check this in SSL Manager (Tools ->Preferences -> Privacy -> SSL Manager).

Binary file not shown.

View File

@ -7,7 +7,6 @@
QT += core gui webkit sql network script
TARGET = qupzilla
TEMPLATE = app
VERSION = 1.00.rc1
DESTDIR = ../bin
OBJECTS_DIR = ../build

View File

@ -56,6 +56,7 @@ WebPage::WebPage(WebView* parent, QupZilla* mainClass)
connect(m_view, SIGNAL(urlChanged(QUrl)), this, SLOT(urlChanged(QUrl)));
connect(mainFrame(), SIGNAL(javaScriptWindowObjectCleared()), this, SLOT(addJavaScriptObject()));
connect(this, SIGNAL(printRequested(QWebFrame*)), this, SLOT(printFrame(QWebFrame*)));
m_runningLoop = 0;
}
@ -126,6 +127,11 @@ void WebPage::watchedFileChanged(const QString &file)
}
}
void WebPage::printFrame(QWebFrame *frame)
{
p_QupZilla->printPage(frame);
}
//void WebPage::loadingStarted()
//{
// m_adBlockedEntries.clear();

View File

@ -88,6 +88,7 @@ private slots:
void addJavaScriptObject();
void watchedFileChanged(const QString &file);
void printFrame(QWebFrame* frame);
private:
virtual bool supportsExtension(Extension extension) const { return (extension == ErrorPageExtension); }