Commit graph

6812 commits

Author SHA1 Message Date
Frederik Gladhorn be5af7304f Add missing debug_comicbook.h 2014-09-17 19:46:42 +02:00
Frederik Gladhorn 6c602bf0e7 Use categorized logging even more 2014-09-16 23:38:25 +02:00
Frederik Gladhorn 9d89739972 Use categorized logging 2014-09-16 23:24:36 +02:00
Frederik Gladhorn 50e3c1478a Use qApp instead of kapp 2014-09-16 23:22:30 +02:00
David Faure d98b4d9200 Make it possible to open URLs on the command-line again
by removing much cruft and using the shiny new QUrl::fromUserInput(2 args),
but since that requires Qt 5.4, also include a copy here if Qt is too "old".

Reviewed-By: Albert
Makes-Happy: Lukas
2014-09-11 18:26:10 +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
Lukáš Tinkl 33f6862a94 fix command line parsing and DBUS registration in effect
Okular still doesn't start tho when e.g. clicking on a PDF
in Dolphin and fails to open a file from command line
(QUrl porting bug)
2014-09-11 11:26:16 +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
Lukáš Tinkl c5819eec4d set translation domain 2014-09-10 22:30:50 +02:00
Frederik Gladhorn 34fbdf8c85 Some more kDebug->qDebug 2014-09-09 18:17:36 +02:00
Frederik Gladhorn 374592256a Use tabBar()->hide() instead of setTabBarHidden 2014-09-09 17:49:10 +02:00
Frederik Gladhorn 90e6f73e26 Fix a typo in docs 2014-09-09 17:36:37 +02:00
Fabio D'Urso 75c8acee60 Compile DVI, TIFF and XPS generators 2014-08-24 23:13:45 +02:00
Fabio D'Urso 0b662faf35 Assume Poppler 0.22 or newer (0.22 was the first one with qt5 support) 2014-08-24 21:47:08 +02:00
Fabio D'Urso e395735820 Port the kimgio generator
Note that the libkexiv2 "framework" branch is still work in progress and does
not work out of the box yet (it doesn't install some headers).
2014-08-23 21:49:25 +02:00
Fabio D'Urso 1fc4c747a6 Fix another rc install dir 2014-08-23 21:48:51 +02:00
Fabio D'Urso 559ba0f01e Remove unused/commented out code from kimgio generator 2014-08-23 21:48:50 +02:00
Fabio D'Urso 2a52e0c4e1 Ported tests to QtTest, added missing trailing / to KDESRCDIR
I've also added some extra checks so that tests fail early instead of
crashing later if a document fails to be opened
2014-08-23 21:40:01 +02:00
Fabio D'Urso 12810d361d Re-enable busyPixmap, so that tests don't crash
The dummy pixmap was being created before the QGuiApplication
2014-08-23 21:40:01 +02:00
Arnold Dumas 4298b6ebd5 Reenable doc generation.
REVIEW: 119804
2014-08-16 16:43:46 +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
Frederik Gladhorn 9350061dfc Do not add json for txt generator
This was an experiment early on in the porting. If QPluginLoader is the
way to go, then it should be applied to all generators.
2014-08-14 09:27:38 +02:00
Albert Astals Cid 13395f4740 Merge remote-tracking branch 'origin/KDE/4.14' 2014-08-13 23:58:13 +02:00
Albert Astals Cid fba90677fc Fine tune mime type detection used for opening files
If the argument mimetype and filepath mimetype disagree, first try to use the filepath mimetype and if that fails use the argument one. On top of that if text/plain is the first, first try with content mimetype since the text backend never fails to open a file

I can now open https://bugs.freedesktop.org/attachment.cgi?id=99508 (which is served as text/plain) and PS files with .txt extension (bug 325044)

REVIEW: 119737
BUGS: 325044
FIXED-IN: 4.14.0
2014-08-13 23:51:48 +02:00
Rohan Garg bd36521c36 Port away from KUrl, pretify headers 2014-08-13 23:03:23 +02:00
Rohan Garg d5b9a2e078 Port Shell away from KUrl to QUrl
REVIEWED-BY: Albert Astals Cid <aacid@kde.org>
2014-08-13 23:03:23 +02:00
Lukáš Tinkl f8b9546aff fix build
either generator_txt.json needs to be committed or one has to generate
the JSON metadata using kservice_desktop_to_json
2014-08-13 21:59:04 +02:00
Frederik Gladhorn 24f7054c9e Bring back txt generator 2014-08-13 21:09:19 +02:00
Albert Astals Cid f76184cb55 Revert e96dabc467
Diggory i think there was a misunderstanding in our discussion

The patch is unfinished (not goot to commit with a TODO)
and needs to be improved (need to find a way to not break ABI, QSize param should be const &) please
open a reviewrequest and we can discuss/finalize it there.

CCMAIL: diggory.hardy@unibas.ch
2014-08-13 21:07:32 +02:00
Diggory Hardy e96dabc467 Fix font size on high-DPI displays in ePub documents (but makes images small) 2014-08-13 18:54:30 +02:00
Vishesh Handa 46cf7e46a5 Port away from KUrl::List 2014-08-13 13:07:44 +02:00
Vishesh Handa 077689c4d3 Port KAction and KMenu 2014-08-13 12:45:40 +02:00
Vishesh Handa e038950f50 KIcon -> QIcon 2014-08-13 11:54:49 +02:00
Vishesh Handa fb330dd45c Port the EPubGenerator 2014-08-13 11:42:09 +02:00
Vishesh Handa eee26dd72f Port comicbook generator 2014-08-13 11:29:03 +02:00
Vishesh Handa a2e353d3cb kde4_add_ui_files -> ki18n_wrap_ui 2014-08-13 11:26:37 +02:00
Vishesh Handa 2bfa3ccff0 Port the CHM generator
Would be nice if I had some CHM files to test this on.
2014-08-13 11:24:15 +02:00
Vishesh Handa e4a4d400c3 Port the poppler generator 2014-08-13 11:16:28 +02:00
Vishesh Handa 7123b4d9d2 Port the tests 2014-08-12 23:36:11 +02:00
Vishesh Handa ead067d329 Okular Config: Use qWarning otherwise the compile will fail
Missing header as the file is being generted by kconfig
2014-08-12 21:58:43 +02:00
Frederik Gladhorn bf8f942bac Disable txt generator 2014-08-11 09:43:40 +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 08840a9168 Remove old KPart factory 2014-08-10 22:02:36 +02:00
Frederik Gladhorn 9398df0a06 Welcome back Okular::Part 2014-08-10 22:01:13 +02:00
Frederik Gladhorn ac15a7075e More QUrl porting 2014-08-10 20:36:41 +02:00
Frederik Gladhorn 56eb2ae952 Make cmake more kf5 compliant 2014-08-10 20:35:46 +02:00
Frederik Gladhorn 99db5d0157 Fix rc install dir 2014-08-10 19:27:47 +02:00
Frederik Gladhorn a2f6a136b2 Fix some typos 2014-08-10 19:27:31 +02:00
Lukáš Tinkl b32306463c look for KF5 versions of libkscreen and kactivities 2014-08-10 17:40:24 +02:00
Frederik Gladhorn 0c7a45c7a5 Disable lots of stuff and compile
The text generator is the only one compiled now.
This version links for me but then doesn't find its KPart on startup.

TTS has been completely disabled as well as some other things like the
about dialog.
2014-08-10 14:42:54 +02:00