Commit graph

21 commits

Author SHA1 Message Date
Albert Astals Cid 0a2287be19 CI: Enable two readability clang-tidy checks
Use jq to filter compile_commands.json to not include the compilation of
autogenerated files, we don't want to check those

Also filter out the synctex folder, since that is imported code
2019-12-23 12:06:49 +01:00
Albert Astals Cid ec51b2f02f Remove QFontDatabase::supportsThreadedFontRendering checks
We require Qt 5.8 and there (and up) it returns true unconditionally and
it's now marked as deprecated
2019-07-04 00:09:04 +02:00
Yuri Chornoivan 614f580b79 Fix minor typos 2019-01-11 09:09:34 +02:00
Kevin Funk a53a2402ca clang-tidy: modernize-use-nullptr run
Semi-ACK'd by Albert :)
2017-09-06 00:19:48 +02:00
Martin T. H. Sandsmark b512e668e0 chm, dvi: Fix build with compiler flags after removing kdelibs4support
After removing kdelibs4support, these flags are enabled:
    -DQT_USE_FAST_OPERATOR_PLUS -DQT_NO_CAST_TO_ASCII
    -DQT_NO_CAST_FROM_ASCII -DQT_NO_URL_CAST_FROM_STRING
    -DQT_NO_CAST_FROM_BYTEARRAY

So wrap naked string and character literals in QStringLiteral,
QLatin1Char and QLatin1String as appropriate.

To more easily see the changes, use «git show --color-words».

Thank $DEITY for vim macros.
2016-07-11 21:54:08 +02:00
Patrick Spendrin d0ecab4736 Windows string fixes
This patch changes multiline QStringLiterals to QString::fromLatin1
as QStringLiterals doesn't understand multiline strings on windows.
Also, strncasecmp is replaced by the portable qstrnicmp function provided
by QByteArray header.

REVIEW: 126379
2015-12-28 22:48:25 +01:00
Montel Laurent 466eb79615 Use QStringLiteral 2015-10-29 13:37:11 +01:00
Montel Laurent 3b4ee788b8 Fix includes 2014-10-08 13:37:04 +02:00
Montel Laurent 927e7a9a19 Merge remote-tracking branch 'origin/KDE/4.14' into frameworks 2014-10-01 07:29:17 +02:00
Luigi Toscano 5e2d190ebf Guard drawText() when X-bitmap fonts are used
If the fonts are mapped for some reason to X bitmap fonts,
the call to drawText() in the non-GUI thread will produce a crash.
Ensure that the rendering of the text is performed only if
the threaded font rendering is available - a rare event nowadays,
but still possible.

CCBUG: 248852
2014-09-22 22:49:30 +02:00
Frederik Gladhorn 6c602bf0e7 Use categorized logging even more 2014-09-16 23:38:25 +02:00
Frederik Gladhorn e28dbc6c00 Port to QMime
compressedMimeFor now already does the inheritance check, so another
check was removed.
2014-09-11 16:32:43 +02:00
Frederik Gladhorn 83d3f1f6b7 Revert "Some more kDebug->qDebug"
Seems like kDebug doesn't spam the user, so this needs to use qCDebug.

This reverts commit 34fbdf8c85.
2014-09-11 02:03:46 +02:00
Frederik Gladhorn 34fbdf8c85 Some more kDebug->qDebug 2014-09-09 18:17:36 +02:00
Pino Toscano c08afdd0e6 use a per-dviRender-instance painter instead of a global (!) one, so different documents can be painted safely at the same time
BUG: 200409

svn path=/trunk/KDE/kdegraphics/okular/; revision=1002247
2009-07-25 13:59:37 +00:00
Laurent Montel d7193013e2 Adapt to new KWarning/kFatal/kDebug api
svn path=/trunk/KDE/kdegraphics/okular/; revision=695802
2007-08-02 23:54:14 +00:00
Laurent Montel 0d00255d64 Fix include
svn path=/trunk/KDE/kdegraphics/okular/; revision=675666
2007-06-14 16:57:55 +00:00
Pino Toscano aa109c9ef0 Port the recent changes to kdv, and remove some debug code
(Luigi Toscano)

svn path=/trunk/playground/graphics/okular/; revision=556901
2006-07-01 21:17:42 +00:00
Pino Toscano 9385667f6c now, really copy (hope so) the strictly necessary files from the dvi plugin of kviewshell, and applying our work to make it work
svn path=/trunk/playground/graphics/okular/; revision=556303
2006-06-29 21:12:47 +00:00
Pino Toscano 7d26d25bd2 delete the dupe files, and now really copying the good ones
svn path=/trunk/playground/graphics/okular/; revision=556294
2006-06-29 20:43:50 +00:00
Pino Toscano 2bfdb0f319 New backend: DVI.
Adapted from the DVI plugin of KViewShell.
It can:
- load documents
- generate correctly the pixmaps for the images
- rotate the pages
- extract the text from the pages (thus search and text selection are possible)
- extract the URL hyperlinks from the documents

Credits for this work goes to Luigi Toscano, thanks Luigi!

CCMAIL: Luigi Toscano <luigi.toscano@tiscali.it>

svn path=/trunk/playground/graphics/okular/; revision=555582
2006-06-27 22:17:35 +00:00