Commit graph

812 commits

Author SHA1 Message Date
Sune Vuorela 88fc4032ac Random collection of cppcheck fixes
- missing consts
 - shadowing of variable names
 - superflous code
 - tighter scoping of some variables
 and other such bits
2023-08-10 22:47:57 +00:00
l10n daemon script 54a72d01ad 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"
2023-08-07 01:48:35 +00:00
l10n daemon script 22c6f90398 GIT_SILENT made messages (after extraction) 2023-08-07 00:45:24 +00:00
Sune Vuorela 22550bbc05 Improve cppcheck configuration
- Ignore autotests sources
- Teach cppcheck about a okular specific define
- Keep the default options from the KDE setup

This at least for me brings the cppcheck entries from "unusable" to "something that probably should be looked into"
2023-08-05 08:25:36 +00:00
l10n daemon script 5d1ee8a268 GIT_SILENT made messages (after extraction) 2023-07-24 07:29:59 +00:00
Sune Vuorela 720e08220d Allow dbus to be disabled
In certain usecases, especially for non-linux desktop builds, the
advantage of of dbus is often limited. Provide a way to disable
building with dbus.

Note that this also disables the related functionalities of having a
second okular launch open the document in the first okular.

This also disables the unit tests that tests those features.
2023-07-18 07:53:42 +00:00
Sune Vuorela e6b3a1167f Fix ui file to not give weird code
The previous xml got generated c++ code that under certain conditions
did

QIcon.addFile(QString::fromUtf8("."), ...); which is kind of not
helpful.
2023-07-17 12:27:26 +00:00
Heiko Becker c593aa5866 GIT_SILENT Update Appstream for new release
(cherry picked from commit 4b90f55cb6)
2023-06-30 00:22:01 +02:00
l10n daemon script 56c0407bcd 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"
2023-06-12 01:50:14 +00:00
l10n daemon script 08a1631a34 GIT_SILENT made messages (after extraction) 2023-06-12 00:48:27 +00:00
Friedrich W. H. Kossebau 725155b29d Include only needed headers instead of QtDBus module header
GIT_SILENT
2023-06-07 22:41:22 +00:00
Heiko Becker 34f99b2094 GIT_SILENT Update Appstream for new release
(cherry picked from commit 01906f8fd9)
2023-06-02 20:56:30 +02:00
Albert Astals Cid 137cfec205 Fix icon not showing on Windows
For some reason QIcon::fromTheme(QStringLiteral("okular")) doesn't
return the proper icon on WelcomeScreen construction, i'm guessing
that's a bit too early, though haven't investigated why
2023-05-13 10:52:00 +00:00
Heiko Becker 1b5803a699 GIT_SILENT Update Appstream for new release
(cherry picked from commit 1e405ebc4c)
2023-05-06 10:22:13 +02:00
l10n daemon script 251ca60e90 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"
2023-04-24 01:43:52 +00:00
l10n daemon script 657272ea04 GIT_SILENT made messages (after extraction) 2023-04-24 00:46:04 +00:00
Eugene Popov a25e37e6f7 Reuse an existing action to toggle sidebar visibility
BUG: 468317
2023-04-23 14:39:51 +00:00
Heiko Becker 7c2c9a1231 GIT_SILENT Update Appstream for new release
(cherry picked from commit bcaeb7566a)
2023-04-12 18:13:21 +02:00
l10n daemon script ccf631de78 GIT_SILENT made messages (after extraction) 2023-04-07 00:45:06 +00:00
l10n daemon script 9e171856a5 GIT_SILENT made messages (after extraction) 2023-03-31 00:45:15 +00:00
l10n daemon script dccedf6159 GIT_SILENT made messages (after extraction) 2023-03-27 00:47:35 +00:00
l10n daemon script 8fe4a4bd48 GIT_SILENT made messages (after extraction) 2023-03-05 00:47:31 +00:00
Heiko Becker c400b675b6 GIT_SILENT Update Appstream for new release
(cherry picked from commit 5138c6ceae)
2023-02-24 22:39:10 +01:00
l10n daemon script 94fb67d2e6 GIT_SILENT made messages (after extraction) 2023-02-22 00:56:43 +00:00
l10n daemon script 9ef28fffec 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"
2023-02-20 02:01:39 +00:00
l10n daemon script e91c6cf0cf GIT_SILENT made messages (after extraction) 2023-02-20 00:55:34 +00:00
l10n daemon script 864c623f28 GIT_SILENT made messages (after extraction) 2023-02-16 00:56:26 +00:00
Nicolas Fella 0501c5d8c4 Fix raising window when attaching to an existing instance on Wayland
When the second instance is launched it receives an activation token per environment variable

We need to pass that token to the first instance so that it can use it to raise itself

Also properly use startup ids for this on X11 instead of relying on forceActiveWindow, which is a hack
2023-02-09 12:26:52 +00:00
Heiko Becker c3c0d8d528 GIT_SILENT Update Appstream for new release
(cherry picked from commit cffa20eeae)
2023-01-30 01:08:40 +01:00
Albert Astals Cid 743888b809 New Windows package 2023-01-15 19:36:10 +01:00
Albert Astals Cid 3165771409 GIT_SILENT Update Appstream for new release
(cherry picked from commit 54faf31823)
2023-01-03 01:18:33 +01:00
l10n daemon script 6f315be79c GIT_SILENT made messages (after extraction) 2022-12-29 00:50:47 +00:00
Eugene Popov 2fbab13e1f Port sidebar to QDockWidget
With this MR, the sidebar can now be (if not locked):
* docked to the left or right side
* undocked and floated as an independent window
* closed with the close button in the header

BUG: 455013
2022-12-22 22:50:55 +00:00
Nicholas Omann f0e3581bab Enable Support for Dark Theme for Titlebar in Windows
When using the windows dark theme it's annoying to have white titlebars on some apps. I noticed that this app which and I would like to use on Windows but the lack of dark theme on the titlebar makes it not fit in well. I did some research on this and found that the best way to set it seems to be using the darkmode toggle on the platform. That can be set as a parameter or environment variable. This seems to be the easiest way to set it. I tested this locally on a Win11 VM and it looks to work the same as setting -platform windows:darkmode=1 or setting QT_QPA_PLATFORM=windows:darkmode=1. Note this does need to be set before the QApplication is originally created and so I think it has to be done per app to work. If I missed some other way to set this that would be better I would be interested to know more.

QT Docs: https://doc.qt.io/qt-5/qguiapplication.html#platform-specific-arguments
2022-12-17 00:00:36 +00:00
Albert Astals Cid f0fe7aacb5 Add 22.08.1 Windows binary to appstream data 2022-12-01 22:24:41 +01:00
Phu Nguyen 57ea4a0be3 Remove leftover of a release element which made the syntax invalid 2022-12-01 09:14:53 +00:00
Heiko Becker 95846eaf4e GIT_SILENT Update Appstream for new release
(cherry picked from commit 6076431f4b)
2022-11-30 09:03:22 +01:00
Heiko Becker 7a27483063 GIT_SILENT Update Appstream for new release
(cherry picked from commit cf4777477c)
2022-11-30 09:03:22 +01:00
Albert Astals Cid 91afa74342 Set minimum requirement to Ubuntu 22.04 2022-11-19 09:48:15 +00:00
l10n daemon script 3c4d8cbfd3 GIT_SILENT made messages (after extraction) 2022-11-11 00:43:49 +00:00
l10n daemon script 9f1300c115 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"
2022-11-10 01:51:04 +00:00
l10n daemon script 547a0e2f76 GIT_SILENT made messages (after extraction) 2022-11-01 00:45:28 +00:00
l10n daemon script 9579a4540f 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"
2022-10-28 01:51:08 +00:00
l10n daemon script 5426a0c8af GIT_SILENT made messages (after extraction) 2022-10-25 00:45:15 +00:00
Heiko Becker 8119d903a3 GIT_SILENT Update Appstream for new release
(cherry picked from commit b39a4d7fe2)
2022-10-10 21:58:46 +02:00
Eugene Popov f2db7b5288 [WelcomeView] Improve locating a file in the file manager
Use KIO::highlightInFileManager to highlight a file in the file manager.
2022-10-04 21:05:39 +00:00
l10n daemon script 804cadfb53 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"
2022-09-18 01:41:53 +00:00
l10n daemon script 5fcb59011b GIT_SILENT made messages (after extraction) 2022-09-18 00:43:16 +00:00
l10n daemon script 04059bae4b 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"
2022-09-08 01:47:47 +00:00
l10n daemon script 1ffc9514a5 GIT_SILENT made messages (after extraction) 2022-09-08 00:45:24 +00:00