Commit graph

443 commits

Author SHA1 Message Date
l10n daemon script dcb51a7f26 SVN_SILENT made messages (after extraction) 2016-11-07 07:22:48 +00:00
l10n daemon script 466a6ae8c2 SVN_SILENT made messages (after extraction) 2016-11-06 07:17:39 +00:00
Burkhard Lück 8666cacb92 add appdata file + metadata for chm, comicbook, djvu, dvi, epub, fax, fictionbook
REVIEW:128404
2016-11-04 14:56:55 +01:00
l10n daemon script 191e10300d 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"
2016-11-04 09:43:54 +00:00
Albert Astals Cid 3c8464a4a0 Kill pre-release warning 2016-11-03 22:29:05 +01:00
Albert Vaca c71f308252 Fixes suggested by Clazy 2016-10-29 16:33:05 +02:00
Albert Astals Cid 62eea3336b Merge remote-tracking branch 'origin/master' into frameworks 2016-10-29 11:13:24 +02:00
Martin T. H. Sandsmark 57fd20e90e Stop leaking qfiledialogs 2016-08-13 22:20:43 +02:00
Martin T. H. Sandsmark 1cd0bb2697 Ignore mimetypes without known globbing patterns 2016-08-13 21:59:17 +02:00
Martin T. H. Sandsmark 2eb0e01796 Merge mimetypes with same name, sort by name 2016-08-13 21:57:04 +02:00
Martin T. H. Sandsmark e6e0d90a84 Fix typo in previous commit 2016-08-13 21:50:37 +02:00
Martin T. H. Sandsmark 8f86818b5c Make the open dialog a bit more usable without the Plasma QPA
Without the Plasma QPA now the file open dialog just lets you select a
single random filetype to view at the time.

REVIEW: 128435
2016-08-13 21:28:30 +02:00
Martin T. H. Sandsmark ba1aeef06f Remove dead and unused code after porting to Qt5 QUrl 2016-07-24 19:14:29 +02:00
cjacker Jianzhong Huang e90b836fee Fix i18n issue missing setApplicationDomain
REVIEW: 126445
2016-07-22 00:35:53 +02:00
Luigi Toscano c3d2c8e1c4 Revert "Fix i18n issue missing setApplicationDomain"
This reverts commit 71950016aa.
Wrong authorship.
2016-07-22 00:34:04 +02:00
Martin T. H. Sandsmark 99b5688725 Make querying for KPart supported mimetypes a bit less broken 2016-07-13 01:43:30 +02:00
Olivier CHURLAUD e3e2b7c6e3 Register Okular to DBus to get back the "open in new tab" feature.
REVIEW: 128424
2016-07-12 21:14:55 +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 48d52d9bd1 Add missing override declarations 2016-07-11 22:40:15 +02:00
Martin T. H. Sandsmark 67e7ada311 Fix build without implicit cast to/from ascii
See the previous commits for details. This is the last part.
2016-07-11 22:11:43 +02:00
Martin T. H. Sandsmark 439ced872d Port away from signal/slot keyword
When building okular without kdelibs4support it apparently builds with
-DQT_NO_SIGNALS_SLOTS_KEYWORDS.
2016-07-11 19:34:08 +02:00
l10n daemon script bae370462c 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"
2016-06-25 03:22:57 +00:00
Aleix Pol 32b62e919a Remove most KDELibs4Support linking
Ports away from KFileDialog.
Stops linking to KDELibs4Support from objects that don't need it.

REVIEW: 127021
2016-05-31 00:13:36 +02:00
Albert Astals Cid 18b4cababc Change kf5-warning text
Makes Thomas happier
2016-05-17 23:50:55 +02:00
Albert Astals Cid f9917aa9fe Mark this as not official release 2016-05-04 22:54:23 +02:00
Aleix Pol 154c98fdaa Fix QUrl string encoding issue
Don't go through QUrl -> QString -> QUrl when opening files from the
argument list.
Don't be strict when opening URLs that come from the dbus interface.

REVIEW: 127042
2016-02-26 17:04:40 +01:00
Albert Vaca 67f69c8871 Merge branch 'master' into frameworks
# Conflicts:
#	CMakeLists.txt
#	active/app/package/metadata.desktop
#	conf/widgetannottools.cpp
#	core/version.h
#	generators/poppler/libokularGenerator_poppler.desktop
#	generators/txt/libokularGenerator_txt.desktop
#	generators/xps/libokularGenerator_xps.desktop
#	ui/annotationwidgets.cpp
#	ui/presentationwidget.cpp
2016-02-22 03:50:54 -08:00
Aleix Pol a704fbce94 Fix porting QUrl issues
Reviewed by Albert Astals
2016-01-30 20:00:25 +01:00
Aleix Pol cbf47d1bb8 Fix KTabWidget porting issue
Restore drop on tabs

Reviewed by Albert
2016-01-30 19:28:41 +01:00
Alex Richardson 1b2de0d1d0 Fix mainshelltest (and as a side-effect docdata saving)
Try fixing mainshelltest: one more passes now

QUrl is not automatically exposed to DBus so the DBus call would fail.
Changed the parameter to QString instead so that DBus invocation works.

mainshelltest: set QStandardPaths to test mode

Parse command line flags with a single dash as a long option

Unlike KCmdLineArgs QCommandLineParser treats options starting with a
single minus as multiple short options by default.

Previously okular -unique would fail with the following error:
Unknown options: u, n, i, q, u, e.

Also changed mainshelltest to use two dashes in case this behaviour
should change in the future.

mainshelltest failures have been reduced from 15 to 4 by this commit.

Fix docdata saving and added a warning message if it fails

If the ~/.local/okular/docdata directory didn't exist previously
creating the docdata file would fail as there are missing paths.

It seems that KStandardDirs used to create the okular/docdata directory
automatically, with QStandardPaths we have to create it manually.

mainshelltest is down to one failed test now

Fix final test case in mainshelltest

as we call QProcess::terminate the exit code will not be 0

REVIEW: 126192
2016-01-30 17:31:57 +01:00
l10n daemon script 119bb0ecd2 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"
2016-01-18 04:45:59 +00:00
l10n daemon script 57c5cbfde0 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"
2016-01-09 03:25:47 +00:00
l10n daemon script a2fd918ad9 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"
2016-01-05 04:07:32 +00:00
Leslie Zhai 71950016aa Fix i18n issue missing setApplicationDomain
REVIEW: 126445
2016-01-04 15:12:45 +08:00
l10n daemon script 2fee136339 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"
2015-12-08 03:41:42 +00:00
Alex Richardson ab1d3a36cc Set the KXMLGUI component name to okular
Without this the .rc files will not be found by the unit tests or other
programs that use okularpart
2015-11-28 16:04:57 +00:00
l10n daemon script 16f0780688 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"
2015-11-22 03:43:12 +00:00
l10n daemon script 9a5c82a411 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"
2015-11-05 04:21:47 +00:00
David Rosca c793fb2703 Fix crash on close
Delete m_tabwidget in destructor

REVIEW: 125890
2015-11-04 12:16:08 +01:00
Montel Laurent 466eb79615 Use QStringLiteral 2015-10-29 13:37:11 +01:00
Gleb Popov f8870e60f4 Revert "Use QFileDialog from Qt 5 for "File -> Open" dialog."
Unlike KFileDialog, QFileDialog doesn't add special "All supported types" filter.
2015-10-21 14:33:49 +03:00
Gleb Popov 2bbdb762eb Use QFileDialog from Qt 5 for "File -> Open" dialog.
REVIEW: 125683
2015-10-21 08:57:35 +03:00
Albert Astals Cid 8445660539 Merge remote-tracking branch 'origin/master' into frameworks 2015-10-18 22:29:00 +02:00
l10n daemon script 98ac941316 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"
2015-10-18 04:25:21 +00:00
l10n daemon script 8c141cc2fc 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"
2015-10-12 04:04:13 +00:00
l10n daemon script cd34059f53 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"
2015-10-08 04:21:25 +00:00
l10n daemon script 7b8f0a7459 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"
2015-09-26 04:04:15 +00:00
l10n daemon script 22ba4596fa 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"
2015-09-21 03:49:52 +00:00
l10n daemon script 558b4bb765 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"
2015-09-15 05:00:52 +00:00
l10n daemon script dde68921b6 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"
2015-09-13 04:04:10 +00:00
l10n daemon script f6d4b45650 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"
2015-09-10 05:23:01 +00:00
l10n daemon script 2669a2f354 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"
2015-09-08 05:32:59 +00:00
l10n daemon script 2b1cf29728 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"
2015-09-06 04:39:34 +00:00
l10n daemon script 6a2b5fc7b8 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"
2015-09-04 03:59:45 +00:00
l10n daemon script 79fa933c73 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"
2015-09-03 04:18:26 +00:00
l10n daemon script ef99f17efb 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"
2015-09-02 03:58:51 +00:00
l10n daemon script 8703484e63 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"
2015-09-01 05:00:47 +00:00
l10n daemon script 7be388fa0f 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"
2015-08-31 04:47:52 +00:00
Albert Astals Cid ab8944dcce Add Comment
BUGS: 351973
2015-08-30 16:43:39 +02:00
Alex Richardson ab700b2453 Restore the URL parsing behaviour in from before the KF5 port
This fixes shelltest

REVIEW: 124738
2015-08-28 19:03:59 +02:00
Montel Laurent e03e6f6863 Use Q_DECL_OVERRIDE 2015-08-04 15:22:41 +02:00
David Faure d5bad89a51 Fix crash on startup when okularpart can't be found 2015-08-03 15:30:05 +02:00
David Faure ba28b64ab6 Fix crash on startup when okularpart can't be found 2015-08-03 12:58:30 +02:00
Ivan Čukić c46b08c23f Make KActivities a required dependency
Our goal is better integration with Plasma and other KDE components.

We have made a conscious decision to reduce our code a bit by removing
the legacy #ifdefs. That way we do not have to support a build
configuration which is going to be used by just a tiny minority of our
users, and one that we are not terribly interested in. Without
KActivities, there is for example no support for recording and listing
of recent documents, PDF sharing etc etc, and we honestly believe that
the majority of our audience wants these features.

REVIEW: 123249
2015-05-05 00:19:28 +02:00
Montel Laurent 2708e9ce6d Merge remote-tracking branch 'origin/master' into frameworks 2015-04-01 19:46:00 +02:00
Albert Astals Cid 72ca504ce1 Merge remote-tracking branch 'origin/Applications/15.04' 2015-03-30 20:06:17 +02:00
Ronnie Thomas 0877dfd5f8 Fix error messags on cmdline arguments
The --print and the --page arguments were showing wrong error messages. This patch fixes it.

REVIEW: 123163
2015-03-30 20:05:40 +02:00
Montel Laurent ffbf0b82f6 Rename icons 2015-03-17 08:52:39 +01:00
Montel Laurent d780d15ea9 Merge remote-tracking branch 'origin/master' into frameworks
Conflicts:
	autotests/mainshelltest.cpp
	part.cpp
	part.h
	shell/shell.cpp
2015-03-17 08:47:52 +01:00
Saheb Preet Singh 1eafe4feb1 New shortcut to resize window to fit page
FIXED-IN: KDE Applications 15.08
BUGS: 326844
REVIEW: 115283
2015-03-17 00:20:11 +01:00
Jonathan Doman 1cfb007b63 Fix session restore/save with multiple tabs
BUGS: 335852
REVIEW: 122570
2015-03-16 23:55:57 +01:00
Montel Laurent 5e984303a4 Use new KDE_ macro 2015-03-04 07:52:20 +01:00
Montel Laurent 90b2f6c62c Fix install icons 2015-03-01 10:57:10 +01:00
Montel Laurent c4f224f1e8 Port to new connect api 2015-01-30 22:06:53 +01:00
Lukáš Tinkl fd6a35486e port KUrl -> QUrl 2015-01-29 20:55:57 +01:00
l10n daemon script 9a3672b255 SVN_SILENT made messages (.desktop file) 2014-12-26 04:18:45 +00:00
l10n daemon script e6ef3cb64b SVN_SILENT made messages (.desktop file) 2014-12-25 04:05:24 +00:00
Montel Laurent 5da7c5f77d port to qCDebug. Autogenerate export headers 2014-10-27 22:35:06 +01:00
Montel Laurent 603d8b19c9 Fix includes 2014-10-19 15:17:37 +02:00
Montel Laurent 16f13c04d2 kdelibs4support-- 2014-10-17 23:30:54 +02:00
Jeremy Whiting 83299b9532 Remove %i from .desktop files which added --icon to exec line.
Since Okular no longer uses KApplication it no longer handles --icon parameters.
2014-10-07 16:41:59 -06:00
Montel Laurent 4ec78fa5df Use modern macro 2014-10-07 13:16:16 +02:00
Montel Laurent 57adb81a03 Remove not necessary include moc 2014-10-05 07:28:09 +02:00
Lukáš Tinkl 48300404cb replace deprecated QAction::setShortcut with KStandardShortcut 2014-10-04 21:48:32 +02:00
Montel Laurent 47a278b5fd Merge remote-tracking branch 'origin/KDE/4.14' into frameworks
Conflicts:
	shell/shell.cpp
2014-10-02 13:44:32 +02:00
Montel Laurent 5b88e93891 reverse dns desktop 2014-10-02 09:21:18 +02:00
Sergio Martins 9ff5451f1f Merge branch 'KDE/4.14' into master 2014-10-01 23:57:42 +01:00
Sergio Martins cb4d52fb4c Fix infinit loop if component isn't found.
Shell's CTOR will fail if Okular component isn't found, leading
to i never being incremented.
2014-10-01 23:56:00 +01:00
Frederik Gladhorn 1e01a5cfc9 Use KSharedConfig::openConfig instead of KGlobal::config 2014-09-17 21:15:46 +02:00
Frederik Gladhorn f7d1dd9312 Remove -caption %c from .desktop files
BUGS: 338264
2014-09-17 20:16:49 +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 374592256a Use tabBar()->hide() instead of setTabBarHidden 2014-09-09 17:49:10 +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
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
Vishesh Handa 46cf7e46a5 Port away from KUrl::List 2014-08-13 13:07:44 +02:00
Vishesh Handa e038950f50 KIcon -> QIcon 2014-08-13 11:54:49 +02:00