Documenting that some code was borrowed from Phantom.js
This commit is contained in:
parent
17873240b1
commit
37b3d24fd8
|
@ -37,6 +37,8 @@ About
|
|||
|
||||
The capybara WebKit driver was written by Joe Ferris, Tristan Dunn, and Jason Morrison from [thoughtbot, inc](http://thoughtbot.com/community).
|
||||
|
||||
Code for rendering the current webpage to a PNG is borrowed from Phantom.js' implementation.
|
||||
|
||||
![thoughtbot](http://thoughtbot.com/images/tm/logo.png)
|
||||
|
||||
The names and logos for thoughtbot are trademarks of thoughtbot, inc.
|
||||
|
|
|
@ -106,12 +106,6 @@ QString WebPage::failureString() {
|
|||
return QString("Unable to load URL: ") + currentFrame()->requestedUrl().toString();
|
||||
}
|
||||
|
||||
/*
|
||||
* Swiped from Phantom.js, but removed code for rendering to PDFs and GIFs
|
||||
*
|
||||
* Takes a QString of the file path to save the image to
|
||||
* Returns true if it was able to save the file
|
||||
*/
|
||||
bool WebPage::render(const QString &fileName) {
|
||||
QFileInfo fileInfo(fileName);
|
||||
QDir dir;
|
||||
|
|
Loading…
Reference in New Issue