Commit graph

7691 commits

Author SHA1 Message Date
Albert Astals Cid
16fd5686cc Merge remote-tracking branch 'origin/Applications/17.08' 2017-08-27 13:19:55 +02:00
Albert Astals Cid
a8a79368c7 Fix memory leak in text document settings d-pointers 2017-08-27 13:19:16 +02:00
Albert Astals Cid
0eb2f227b0 Fix memory leak in text document settings d-pointers 2017-08-27 13:18:31 +02:00
Albert Astals Cid
39c76da6bf markdown: Obey the font size set in the settings 2017-08-27 12:04:47 +02:00
l10n daemon script
3349c9fff7 GIT_SILENT made messages (after extraction) 2017-08-27 05:21:29 +02:00
l10n daemon script
a6731c0ef4 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"
2017-08-27 04:42:43 +02:00
l10n daemon script
3422520a5c GIT_SILENT made messages (after extraction) 2017-08-27 03:08:01 +02:00
Yuri Chornoivan
f97cbaed86 Add Markdown to the list of formats in docs 2017-08-26 19:22:25 +03:00
l10n daemon script
0b85b7c138 GIT_SILENT made messages (after extraction) 2017-08-26 05:23:57 +02:00
l10n daemon script
92a08d9a7d 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"
2017-08-26 04:45:47 +02:00
l10n daemon script
e279e26b40 GIT_SILENT made messages (after extraction) 2017-08-26 03:18:37 +02:00
l10n daemon script
003d46e926 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"
2017-08-25 04:48:47 +02:00
Albert Astals Cid
afd3a1423a Make it clear that the caller to convert takes ownership 2017-08-25 01:17:31 +02:00
Albert Astals Cid
551f0b6271 Small rework for the markdown converter
Don't have the textdocument and dir as members, pass them along
This is to make clear that this is a "one off stateless conversion",
i.e. after convert returns the converter doesn't own the textdocument
anymore, so better don't keep a pointer to it
2017-08-25 01:14:58 +02:00
Julian Wolff
4931385777 add markdown support
Summary:
Adds support for Markdown documents

BUG: 360603

Test Plan: Open a Markdown (.md) document in Okular

Reviewers: #okular, aacid

Reviewed By: #okular, aacid

Subscribers: michaelweghorn, aacid

Tags: #okular

Differential Revision: https://phabricator.kde.org/D7382
2017-08-25 01:05:23 +02:00
Albert Astals Cid
37de97a030 Merge remote-tracking branch 'origin/Applications/17.08' 2017-08-21 00:11:28 +02:00
Albert Astals Cid
0919ad87d1 Fix width and height being switched when printing Custom size
BUGS: 383734
2017-08-21 00:09:27 +02:00
Oliver Sander
0c4c2ddbbc Print via QPrinter when rasterizing and printing annotations
When the user chooses to print with rasterization and annotations,
it is easy to print directly to a QPrinter, rather than converting
to PostScript and then using CUPS tools.  The code for it was
already there, but it was hidden behind an #ifdef Q_OS_WIN.
This patch enables it for all plattforms.  If nothing else,
it will make an interesting debugging tool, because it allows
to bypass the postscript & CUPS toolchain from the GUI.
This may allow to track down some of the numerous my-printer-settings-
are-getting-ignored bugs.

The previously windows-only rasterization code used printer.physicalDpiX()
as the rasterization resolution.  At least on my machine this resulted
in a dpi value of 1200, which means quite a lot of memory is used.
I left the windows code untouched, but on Unix I lowered that value
to 300dpi, which is what the postscript rasterizer uses.

Incidentally, this patch does fix at least one bug for me:
Without it, my printer will happily ignore the 'print in grayscale'
button.  With the patch, that button is suddenly honoured.

REVIEW: 130218
2017-08-10 17:27:27 +02:00
Andreas Sturmlechner
862fd4f3e1
Don't build kimgiotest unless BUILD_TESTING=ON
Summary:
In >=KF-5.38 target kimgiotest is only built if BUILD_TESTING=ON,
so subsequent target_compile_definitions will fail if OFF.

Reviewers: #okular

Subscribers: kfunk

Tags: #okular

Differential Revision: https://phabricator.kde.org/D7212
2017-08-09 00:47:12 +02:00
Albert Astals Cid
56849e7092 GIT_SILENT Upgrade KDE Applications version to 17.08.0. 2017-08-08 20:19:03 +02:00
Oliver Sander
024d25cdec Simplify the drawing of buffered highlight rectangles
Previously, they were drawn by modifying individual pixels
of the QImage.  With this patch we simply use a QPainter.

REVIEW: 130214
2017-08-08 14:55:53 +02:00
Christoph Feck
2df84c4cb4 GIT_SILENT Upgrade KDE Applications version to 17.07.90. 2017-07-31 01:56:45 +02:00
l10n daemon script
36c60741fb 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"
2017-07-30 04:54:11 +02:00
l10n daemon script
19406fdf57 GIT_SILENT made messages (after extraction) 2017-07-30 03:25:35 +02:00
Albert Astals Cid
ef3f9e0199 Merge remote-tracking branch 'origin/Applications/17.08' 2017-07-28 12:45:15 +02:00
Albert Astals Cid
5e9d751c63 plucker: Comment code to reduce warnings
upstream plucker is dead so no need to maitain code unchanged to ease merges
the variables were set but never used so for now commented them out
2017-07-28 12:41:24 +02:00
Albert Astals Cid
f712504f6e Add a few make gcc lines
It is needed because EOLCnt is set inside a macro used from various functions but the EOLCnt value
is then not really used in all of the functions so for those that are not used creates a "set but not used warning"
2017-07-28 11:28:32 +02:00
Albert Astals Cid
026d3d104d Fix small warning 2017-07-28 11:21:56 +02:00
Albert Astals Cid
a44b015761 Make newer gcc happier about fallthrough 2017-07-28 11:21:52 +02:00
Albert Astals Cid
18cb1e5659 Add missing break to switch case
May potentially cause a crash
2017-07-28 11:11:50 +02:00
Albert Astals Cid
59ea8ed8ef Merge remote-tracking branch 'origin/Applications/17.08' 2017-07-27 16:58:57 +02:00
Albert Astals Cid
fd5cc83e85 Fix warning in newer gcc versions 2017-07-27 16:57:40 +02:00
Albert Astals Cid
8ecba7f6c9 GIT_SILENT Upgrade KDE Applications version to 17.07.80. 2017-07-17 22:16:44 +02:00
Albert Astals Cid
6f758f7477 1.3.x for master 2017-07-17 20:38:34 +02:00
Albert Astals Cid
bb547c5eed 1.2.x for KDE Applications 17.08.x 2017-07-17 20:37:44 +02:00
Albert Astals Cid
73e71ec383 GIT_SILENT Upgrade KDE Applications version to 17.11.70. 2017-07-17 20:35:15 +02:00
Luigi Toscano
4808f2b7d5 Merge remote-tracking branch 'origin/Applications/17.04' 2017-07-15 15:21:16 +02:00
Marco Martin
caf8820cf7 port to Kirigami 2
port kirigami 1 usage to kirigami 2
partially port to QQC2 when possible
(will need to wait newer qt versions for a full port waiting on
icons on toolbuttons and the new ScrollView
2017-07-13 18:48:18 +02:00
Albert Astals Cid
fbc36ed009 GIT_SILENT Upgrade KDE Applications version to 17.04.3. 2017-07-10 00:44:56 +02:00
Alexander Schlarb
a2b7ce74b2 Support Forward and Backward mouse buttons in presentation mode
REVIEW: 130172
2017-07-08 12:27:46 +02:00
Oliver Sander
5fdbecf446 Simplify method FilePrinter::psPaperSize
The method FilePrinter::psPaperSize used to contain a long
list of hard-coded paper sizes for the different paper formats.
This patch makes the method get the same information
from QPrinter directly, which is much simpler and more
robust, too.

Note that the method is not actually used anywhere in okular,
though, so this change is purely cosmetic.

REVIEW: 130043
2017-07-05 20:37:36 +02:00
Albert Astals Cid
1a5e20e22b Merge remote-tracking branch 'origin/Applications/17.04' 2017-07-02 18:01:14 +02:00
Albert Astals Cid
3b5f19fd9d Shell: Fix sync "Show menubar" action status
No need to sync it when Shell uses a native menubar
2017-07-02 18:00:04 +02:00
l10n daemon script
1658d3b64e GIT_SILENT made messages (after extraction) 2017-06-30 03:08:40 +02:00
l10n daemon script
451bb151c2 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"
2017-06-20 05:47:44 +02:00
l10n daemon script
5af987dac0 GIT_SILENT made messages (after extraction) 2017-06-20 05:05:53 +02:00
Albert Astals Cid
515410c055 GIT_SILENT Upgrade KDE Applications version to 17.04.2. 2017-06-05 21:00:09 +02:00
Montel Laurent
c1e60e5539 Minor 2017-06-02 07:47:56 +02:00
Gilbert Assaf
786ec88526 Bug 236688 - Sort pages according to TOC in CHM Files
All pages in a CHM File are now ordered accordingly to TOC Data. If a page is not in TOC, it will be added at the end.

Testing Done:
I created a small example chm file to test this. I can provide the file, if someone would like to have it.

Bugs closed: 236688

Reviewed at https://git.reviewboard.kde.org/r/130078/
2017-05-31 13:13:48 +02:00
Gilbert Assaf
ff1647ce68 CHM: zooming changes the font size
Transfers zoom handling from KHTML to KHTMLView and QImage.
This way the font now actually increases when you zoom in and zoom handling is more in line with the other generators.

Bugs closed: 164198

Reviewed at https://git.reviewboard.kde.org/r/130127/
2017-05-31 13:12:41 +02:00