Albert Astals Cid
3b4dd35c9f
Enable clazy lambda-in-connect
6 years ago
Albert Astals Cid
eddbe03128
enable clazy strict-iterators
6 years ago
Albert Astals Cid
468f4b64c2
CI: Enable clazy inefficient-qlist-soft
6 years ago
Albert Astals Cid
e2a1705703
CI: Enable clazy connect-not-normalized
6 years ago
Albert Astals Cid
3af705b3d7
CI: Enable clazy qdeleteall
6 years ago
Albert Astals Cid
a23709b097
CI: Enable clazy range-loop
6 years ago
Albert Astals Cid
82d5810493
CI: Enable clazy detaching-temporary
6 years ago
Albert Astals Cid
6ddb7e6cc9
CI: Enable clazy qhash-namespace
6 years ago
Albert Astals Cid
96f00a4d29
CI: Enable clazy qstring-arg check
6 years ago
Yuri Chornoivan
5c6a297feb
Fix minor EBN issues
6 years ago
Harri Porten
c1afa356c0
Restrict time given for JavaScript evaluation to max. 2 seconds.
...
Possible improvement: alert the user of the timeout and offer
the option to continue or abort execution.
6 years ago
Albert Astals Cid
99b4f276e1
Clear m_openError before opening
6 years ago
Albert Astals Cid
18873d18a2
Document the since for Document::openError
6 years ago
Albert Astals Cid
987abf54d7
Move the private slot to a lambda
...
This way we don't need a private function in a public class
6 years ago
Andi Sardina Ramos
c549d28f7f
Solving the creation of an additional tab for a deleted file.
...
BUG: 412978
BUG: 412979
6 years ago
l10n daemon script
a26dd5118a
SVN_SILENT made messages (.desktop file) - always resolve ours
...
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
6 years ago
l10n daemon script
0d5bd0bc43
SVN_SILENT made messages (.desktop file) - always resolve ours
...
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
6 years ago
Tobias Deiminger
378e99d719
Fix race condition in generator.cpp
...
The check whether to allocate a new QMutex was unprotected.
Two threads may check and allocate concurrently, but only one pointer gets
remembered, the other one will leak. In worst case the returned
mutex is different for two threads, so that two threads try to
synchronize by using two different mutexes.
6 years ago
Tobias Deiminger
593803b0a1
Fix render stop and high load due to timing issue
...
Text generation is connected to pixmap generation thread started signal.
However the signal may have been emitted faster than the connect could took place,
and because started is fired only once, the connected lambda never got executed.
generatePixmap tried to sync up with that never happening text generation anyway
by means of scheduling itself. This lead to a infinite loop via a no more sleeping QEventLoop.
Fixed by moving the connect in front of starting the thread.
BUG: 396137
BUG: 396087
CCBUG: 403643
6 years ago
Ahmad Samir
4a4456abd7
Port QRegExp to QRegularExpression in a couple of locations
...
Some instances of QRegExp are still left:
generators/mobipocket and generators/epub
6 years ago
Albert Astals Cid
2da1cd736a
CI: Enable clang-tidy modernize-loop-convert
6 years ago
Laurent Montel
932cec415e
Don't use nullptr as flags
6 years ago
Albert Astals Cid
2e46cf22f5
CI: enable clang tidy performance checks
6 years ago
Albert Astals Cid
b001ea2019
CI: Enable a bunch of bugprone- clang-tidy warnings
6 years ago
Albert Astals Cid
c81392a71c
Remove wrong forward declarations
...
They are not needed and clang-tidy says they are on the wrong namespace
anyway
6 years ago
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
6 years ago
Albert Astals Cid
c549acaab0
Move the Q_PRIVATE_SLOTS to lambda connections
...
Some of the invokeMethods with a queued connection get changed with a
QTimer::SingleShot with 0 which has the same behaviour
6 years ago
Albert Astals Cid
78cf6bd910
CI: enable more modernize checks
...
Since unfortunately some of the autogenerated includes don't pass the
checks we do a trick of building out of source and then specifying the
.*/okular/.* path as the only includes we care about
6 years ago
Albert Astals Cid
a2ac42b9c7
CI: Enable modernize-use-bool-literals
6 years ago
Ahmad Samir
ccf3a384c3
[core/*] replace foreach, deprecated, with range-for
...
The code compiles and okular seems to load and work as before, all unit
tests pass except (parttest and epubgeneratortest, but they fail on master
too).
6 years ago
Albert Astals Cid
b588989dba
Make AnnotationPrivate::distanceSqr const
6 years ago
Abby Berkers
c56a924ab4
Add TeXiFy IDEA support
6 years ago
l10n daemon script
2d90b6210c
SVN_SILENT made messages (.desktop file) - always resolve ours
...
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
6 years ago
Yuri Chornoivan
793d06c95d
Fix minor issues found by EBN
7 years ago
Albert Astals Cid
da21543a50
Small performance improvements
7 years ago
Oliver Sander
8611cd775a
Add @since markers for the new ViewCapability values
7 years ago
Felix Mauch
bd25d17e70
Save view information per file
...
Adds the functionality to save the view mode (single page, facing...),
continuous scrolling, and margin trimming to the document information,
as it is already done with the zoom information.
7 years ago
Laurent Montel
8beef33c05
Port some deprecated methods
7 years ago
Laurent Montel
db0f477119
Port deprecated QLayout::setMargin
7 years ago
João Netto
f31eb3cb68
Created private functions to avoid duplicated code in Document
7 years ago
João Netto
17814fc304
Implemented validate actions and made formwidgets leave these actions to QLineEdit::Event
7 years ago
João Netto
3081358836
Added support for Form Focus Events
7 years ago
Tobias Deiminger
b5b273ad64
Enhance bounds check in TextDocumentGenerator
...
There's too much upstream / logic involved to statically prove
info.pages is always >= 0. Better check it at runtime.
CCBUG: 410844
7 years ago
João Netto
3eb6a91e25
Changed util.printd to use the default locale on case 2. Also made kjsfunctionstest to be in a consistent locale
7 years ago
João Netto
24fc9defe3
Changed AFTime_Format to work with user locale PM strings
7 years ago
João Netto
f54d65ca86
Changed util.printd to work with the default locale set on QLocale::setDefault to allow consistent results in tests
7 years ago
João Netto
e7b7f9bd48
Fixed wrong version in description of function
7 years ago
João Netto
c7432cdae6
Implemented support for AFSpecial_Format and AFSpecial_Keystroke
7 years ago
João Netto
052662d78d
Implemented support for AFTime_Format and AFTime_Keystroke
7 years ago
l10n daemon script
b16dcf41aa
SVN_SILENT made messages (.desktop file) - always resolve ours
...
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
7 years ago