diff --git a/generators/epub/converter.cpp b/generators/epub/converter.cpp index 11bd8c1bb..f6cc85d5c 100644 --- a/generators/epub/converter.cpp +++ b/generators/epub/converter.cpp @@ -201,6 +201,14 @@ QTextDocument* Converter::convert( const QString &fileName ) bool firstPage = true; QVector movieAnnots; QVector soundActions; + + // HACK BEGIN Get the links without CSS to be blue + // Remove if Qt ever gets fixed and the code in textdocumentgenerator.cpp works + const QPalette orig = qApp->palette(); + QPalette p = orig; + p.setColor(QPalette::Link, Qt::blue); + // HACK END + const QSize videoSize(320, 240); do{ if(!epub_it_get_curr(it)) { @@ -289,11 +297,7 @@ QTextDocument* Converter::convert( const QString &fileName ) htmlContent = dom.toString(); } - // HACK BEGIN Get the links without CSS to be blue - // Remove if Qt ever gets fixed and the code in textdocumentgenerator.cpp works - const QPalette orig = qApp->palette(); - QPalette p = orig; - p.setColor(QPalette::Link, Qt::blue); + // HACK BEGIN qApp->setPalette(p); // HACK END