Commit graph

177 commits

Author SHA1 Message Date
Albert Astals Cid 45702f2291 Port deprecated QFontMetrics::width -> horizontalAdvance 2020-09-30 16:09:57 +00:00
Albert Astals Cid 19d98d6a74 Run clang-format
find . \( -name "*.cpp" -or -name "*.h"  -or -name "*.c"  -or -name "*.cc" \) -exec clang-format -i {} \;

If you reached this file doing a git blame, please see README.clang-format (added 2 commits in the future of this one)
2020-07-11 09:17:33 +02:00
Laurent Montel 516fb89d94 Use camelcase include. (scripted) 2020-07-08 13:54:37 +02:00
Albert Astals Cid 93540ac16d Enable most of clazy level2 2020-02-21 14:57:48 +01:00
Albert Astals Cid 2da1cd736a CI: Enable clang-tidy modernize-loop-convert 2020-01-24 17:23:39 +01:00
Laurent Montel cea7d0fa28 Don't use endl at the end of qDebug as it already adds end line 2020-01-17 21:04:27 +01:00
Ahmad Samir 54494cc3d4 [generators/*] Replace deprecated foreach with range-for 2019-12-23 06:06:25 +00:00
Laurent Montel 8beef33c05 Port some deprecated methods 2019-09-18 13:41:19 +02:00
Albert Astals Cid 2e4212ad80 Partially revert "Fix two easy deprecation warnings"
QFontMetrincs::horizontalAdvance is only available in Qt 5.11

This reverts commit 69ec17554a.
2019-07-04 00:31:15 +02: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
Albert Astals Cid 69ec17554a Fix two easy deprecation warnings
width -> horizontalAdvance

background -> window
2019-07-04 00:06:19 +02:00
Laurent Montel 549c32e4be Port qStableSort 2019-03-12 13:15:34 +01:00
Laurent Montel 5a3a49c310 Port qSort to std::sort 2019-03-12 13:13:53 +01:00
Yuri Chornoivan 614f580b79 Fix minor typos 2019-01-11 09:09:34 +02:00
Yuri Chornoivan 2f014ccd20 Fix minor EBN issues 2018-10-18 22:04:49 +03:00
Albert Astals Cid 5ea455fe68 xps: fix file font unloading
Don't unload all fonts, only the ones this file loaded
2018-04-08 13:00:08 +02:00
Albert Astals Cid 985e06a2f5 Fix crash in some more xps files
Some more tweaks to path resolving.

Don't prepend a / in entryPath if path already starts with /
Fonts can also have relative paths, so use the absolutePath before
calling getFontByName

BUGS: 392826
2018-04-08 12:50:46 +02:00
Albert Astals Cid 5efba743cc Merge remote-tracking branch 'origin/Applications/17.12' 2018-02-14 01:42:32 +01:00
Albert Astals Cid 42d4710198 XPS: Fix crash opening some files
Yet another QUrl porting mistake, i think this time is the correct one,
at least i can open all the 6 xps files i have

BUGS: 390355
2018-02-14 01:40:42 +01:00
Albert Astals Cid 2d8b2c7e95 Add support for cancellable image rendering and text extraction
Summary:
Only supported by the pdf backend if using poppler >= 0.63

Sadly had to change the generator API

Text cancellation is a bit wobbly still since poppler has large parts
of the code where doesn't check for the cancellation flag, but that
is something that will get automagically fixed for us if the poppler
side is improved

Test Plan: Needs https://bugs.freedesktop.org/show_bug.cgi?id=104263

Reviewers: ervin, rkflx

Reviewed By: ervin, rkflx

Subscribers: #okular

Tags: #okular

Differential Revision: https://phabricator.kde.org/D9328
2018-02-01 22:53:28 +01: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 7f3eebd9f3 Only show warning messages by default
REVIEW: 129832
2017-01-16 18:41:33 +01:00
Albert Astals Cid f467807506 Remove #ifdefs for Qt we require in cmake anyway 2017-01-16 00:36:08 +01:00
Albert Astals Cid aa38e8d1b7 Fix xps url resolving porting regression 2016-10-29 18:39:50 +02:00
Albert Vaca c71f308252 Fixes suggested by Clazy 2016-10-29 16:33:05 +02:00
Martin T. H. Sandsmark d5bdca64d2 Fix low hanging unused parameters warnings 2016-07-11 22:57:11 +02:00
Martin T. H. Sandsmark 2b473fedbd generators: Fix build without implicit cast to/from ascii
See previous commit for details.
2016-07-11 21:59:14 +02:00
Alex Richardson 2f9246ae42 Port to new JSON plugin loading system
This means Okular can now work without ksycoca and KDELibs4Support.

REVIEW: 126193
2016-01-04 15:59:07 +01:00
Montel Laurent 466eb79615 Use QStringLiteral 2015-10-29 13:37:11 +01:00
Montel Laurent 5c85b83a8f Fix includes 2015-02-07 13:16:07 +01:00
Lukáš Tinkl e9ae1d99af port away from KLocale 2015-01-29 21:48:47 +01:00
Lukáš Tinkl fd6a35486e port KUrl -> QUrl 2015-01-29 20:55:57 +01:00
Montel Laurent f59383196d Fix debug, QStandardpath 2014-10-17 08:30:24 +02:00
Montel Laurent 3b4ee788b8 Fix includes 2014-10-08 13:37:04 +02:00
Montel Laurent 378f6847a2 Remove some deprecated kdelibs4support 2014-10-01 07:27:09 +02:00
Raymond Wooninck f4badbc117 Port the aboutData to the new methods. Next would be to bring back
to About Backend dialog
2014-09-18 22:17:10 +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
Fabio D'Urso 75c8acee60 Compile DVI, TIFF and XPS generators 2014-08-24 23:13:45 +02:00
Frederik Gladhorn b79e706e56 Merge remote-tracking branch 'origin/master' into frameworks
Conflicts:
	generators/dvi/generator_dvi.cpp
	generators/ooo/generator_ooo.cpp
	part.cpp
	shell/main.cpp
	shell/shell.cpp
	shell/shell.h
	shell/shellutils.h
	tests/CMakeLists.txt
	ui/propertiesdialog.cpp
2014-08-14 13:35:43 +02:00
Albert Astals Cid e9e3d4a435 Make documentInfo be Hash based instead of XML based 2014-08-10 22:38:13 +02:00
Frederik Gladhorn 7261d5d45a Generator porting (mostly kaboutdata) 2014-08-09 21:29:06 +02:00
Jan Binder aa6ed8afc0 Replace deprecated QMatrix by QTransform
REVIEW: 105737
2012-09-08 17:06:02 +02:00
Pino Toscano 8585bb70ec bump versions of comicbook and xps generators 2011-07-19 23:49:52 +02:00
Pino Toscano 89e7b03a3b xps: set the correct mimetype in the document properties 2011-06-05 00:06:05 +02:00
Pino Toscano 250abf31a0 xps: introduce parseRscRefPath()
use it to either parse an abbreviate path data or (in the future) read paths from resources;
call parseRscRefPath() instead of parseAbbreviatedPathData() directly
2011-06-04 23:32:52 +02:00
Pino Toscano eff172bddd xps: ignore more elements when extracting text 2011-06-04 23:05:04 +02:00
Pino Toscano f3799d700e xps: allow also 'e' when parsing numbers from path strings
it indicates the exponential part of a real number, e.g. "3.54824e-005"
2011-06-04 22:36:31 +02:00