-
-
Save arndo/c629eac09d7137e281ff to your computer and use it in GitHub Desktop.
CutyCapt.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -aur CutyCapt/CutyCapt.cpp CutyCapt.1/CutyCapt.cpp | |
--- CutyCapt/CutyCapt.cpp 2014-11-12 16:41:30.354714781 +0100 | |
+++ CutyCapt.1/CutyCapt.cpp 2014-11-12 16:41:30.354714781 +0100 | |
@@ -27,11 +27,7 @@ | |
#include <QtWebKit> | |
#include <QtGui> | |
#include <QSvgGenerator> | |
- | |
-#if QT_VERSION < 0x050000 | |
#include <QPrinter> | |
-#endif | |
- | |
#include <QTimer> | |
#include <QByteArray> | |
#include <QNetworkRequest> | |
diff -aur CutyCapt/CutyCapt.pro CutyCapt.1/CutyCapt.pro | |
--- CutyCapt/CutyCapt.pro 2014-11-12 16:31:34.476193204 +0100 | |
+++ CutyCapt.1/CutyCapt.pro 2014-11-12 16:41:30.354714781 +0100 | |
@@ -4,7 +4,7 @@ | |
CONFIG += qt console | |
greaterThan(QT_MAJOR_VERSION, 4): { | |
- QT += webkitwidgets | |
+ QT += webkitwidgets printsupport | |
} | |
contains(CONFIG, static): { |
wonderful! it work for me too. but let me explain details for beginner person like me to be more clear!
you should change two file: CutyCapt.pro and CutyCapt.cpp.
in CutyCapt.pro: change "QT += webkitwidgets" to "QT += webkitwidgets printsupport"
in CutyCapt.cpp: remove "#if QT_VERSION < 0x050000" and "#endif" from before and aftet of "#include "
and finally run "make" command.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can confirm this worked for me