Alexander Lohnau
41d383a8fc
baloo runner: Remove custom handling of possible duplicates
...
This is now done on the frameworks side using the X-Plasma-Runner-Unique-Results
property and the id of the matches. Consequently we can drop this workaround.
5 years ago
Alexander Lohnau
f7efe4ea24
baloo runner: Clean up unneeded usage of QTimer and QDBusContext
...
The min letter count property is set to 3, which means that shorter queries will not be
sent to the runner. Consequently we can remove all of the code which has worked around
the issue of short queries taking much CPU power and delaying the runner.
5 years ago
l10n daemon script
9cffc2cf0a
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"
5 years ago
l10n daemon script
faad339db5
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"
5 years ago
l10n daemon script
96355cd03a
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"
5 years ago
Alexander Lohnau
2f0eb07038
runners: Use K_PLUGIN_CLASS_WITH_JSON directly
...
Task: https://phabricator.kde.org/T14542
5 years ago
Alexander Lohnau
f82e4f1dcf
shellrunner: Simplify handling of invalid result using std::optional
...
See also https://phabricator.kde.org/T14311 .
5 years ago
Alexander Lohnau
3d03606302
Use kcoreaddons_add_plugin to allow loading plugins from build dir
...
Task: https://phabricator.kde.org/T14528
5 years ago
Nicolas Fella
178a4f8756
Use version-less qt DBus macros
...
They work with both Qt5 and Qt6
5 years ago
Alexander Lohnau
d20d25357a
runners: Take arguments into account when setting match id
5 years ago
Felipe Kinoshita
c52df1e792
Use ellipses instead of triple period
...
A real ellipsis character is better for accessibility, as screen readers
will describe it appropriately.
5 years ago
Alexander Lohnau
9baeb9f51f
Recent Documents: Fix missing actions for results
...
BUG: 437462
FIXED-IN: 5.22
5 years ago
Alexander Lohnau
0e4405622c
GIT_SILENT Add missing copyright statements
5 years ago
David Redondo
9dc1307997
PowerDevilRunner: Set screen brightness values
...
powerdevil expects the brightness to be in absolute values not
percentages.
I know this is a blocking call, but we use QDBusInterfaces and
other blocking calls in here so it's not great but is a reasonable
fix for now.
BUG: 437408
5 years ago
Alexander Lohnau
512135a650
runners: Prevent duplicate results among bookmarks and locations runner
...
CCBUG: 406292
5 years ago
Alexander Lohnau
0305762301
GIT_SILENT Remove obsolete KRunner property
5 years ago
Alexander Lohnau
bf9003b0c6
powerdevil runner: Remove unneeded DBus signal listener
...
The capabilities come from upower, the powerdevil config reloaded event does
not change these capabilities.
5 years ago
Alexander Lohnau
f7b556dddf
GIT_SILENT Re-run clang-format
5 years ago
Alexander Lohnau
fd9c790b8e
GIT_SILENT Make small adjustment before running clang-format
5 years ago
Alexander Lohnau
989d9b17c5
Set new KRunner property to reduce duplicates and make IDs comparable
...
CCBUG: 406292
5 years ago
Alexander Lohnau
a00f96ef5e
bookmarksrunner: Remove quotes in profile name
...
Otherwise interpreting it as a path will fail.
5 years ago
Alexander Lohnau
094100187d
bookmarksrunner: Choose less confusing folder name for cache
...
BUG: 436347
FIXED-IN: 5.22
5 years ago
l10n daemon script
9f02b43f3f
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"
5 years ago
l10n daemon script
4c03101ac9
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"
5 years ago
Alexander Lohnau
6a1bab19af
calculatorrunner: Fix superscripted numbers
...
Use toLocal8Bit instead of toLatin1 see https://doc.qt.io/qt-5/qstring.html#toLatin1 .
Otherwise the superscripted numbers would not be correctly converted.
BUG: 435932
5 years ago
l10n daemon script
7fb5605b5d
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"
5 years ago
Alexander Lohnau
952d70c5dc
GIT_SILENT Explicitly link calculator runner to Qt::Widgets
5 years ago
Alexander Lohnau
eb9245a20c
GIT_SILENT Also set urls for match in other code path
5 years ago
Alexander Lohnau
d5c144dbd4
runners: Instanciate QActions directry
...
The current KRunner utility methods have some issues:
- The runner id is kindof useless, especially when we only have one
action
- We basically create a bunch of temporaries whenever we use the utility
methods
- If one really has more actions and more complex logic one is better of
using QHash with the actions and an enum as the key
5 years ago
Alexander Lohnau
ac7054366d
runners: Set urls for matches
...
This saves us the custom implementation of mimeDataForMatch and
allows us to get the urls for example in milou, just like we already can
with the DBus runners.
5 years ago
l10n daemon script
89d7161b1c
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"
5 years ago
Alexander Lohnau
494ed4047d
GIT_SILENT Remove unused variable in powerdevil runner
5 years ago
Alexander Lohnau
538ba58db1
runners: Allow runners to be loaded from build directory
5 years ago
Alexander Lohnau
1144064701
baloo runner: Do not show matches for under 3 character long query
...
This is also what a lot of other runners do, with such short
queries the user does not get many useful results or they are
immediately removed if additional letters get typed.
5 years ago
Nicolas Fella
78f04b5813
Port from QString::SkipEmptyParts to Qt::SkipEmptyParts
5 years ago
l10n daemon script
c83cfd2f5b
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"
5 years ago
Peter Hoeg
3b83619300
Comment was interpreted as part of Restart
5 years ago
Alexander Lohnau
d4cc5fe12a
GIT_SILENT bookmarksrunner: Simplify bookmarksmatchtest
...
- Use constant values instead of parameter if value is always the same
- Define lambda to add new test, this works around
https://bugs.llvm.org/show_bug.cgi?id=45018 and gives useful hints in an
IDE
5 years ago
Ahmad Samir
d608432c34
Port away from KDELibs4Support
...
Add explicit find_package() and #include's that are required and were
pulled in by KDELibs4Support.
krdb: remove one redundant #include, KColorUtils
kcm_fonts: send dbus message directly to org.kde.KDEPlatformTheme to
'refreshFonts'
kcm_style:
- use KToolBar::emitToolbarStyleChanged() to notify of toolbar style changes
For the rest use the notifyKcmChange() private method to send the dbus
signal.
[1] https://invent.kde.org/frameworks/kdelibs4support/-/blob/master/src/kdeui/kglobalsettings.cpp#L860
5 years ago
Alexander Lohnau
9c97ee51e6
bookmarksrunner: Let clang-format format QTest::newRow calls
5 years ago
Alexander Lohnau
465d160f90
bookmarksrunner: Move Firefox::init logic to constructor
5 years ago
Alexander Lohnau
dd717dd3b0
bookmarksrunner: Clean up unneeded CMake code
5 years ago
Alexander Lohnau
35eb251d7c
bookmarksrunner: Apply improvements based on review
5 years ago
Alexander Lohnau
ab2776f147
GIT_SILENT bookmarksrunner: Add SPDX license statements
5 years ago
Alexander Lohnau
43817a13c4
bookmarksrunner: Clean up chrome bookmarks test
...
The test should make sure the chrome bookmarks and profile reading
works properly and not test the conversion logic.
In the previous commit a dedicated test has been added
for the conversion and relevance logic.
5 years ago
Alexander Lohnau
39d1d7af7c
bookmarksrunner: Add test for BookmarkMatch class
...
This tests the relevance and conversion logic for this class.
5 years ago
Alexander Lohnau
aa5d629913
bookmarksrunner: Use static lib to avoid recompiling classes for tests
5 years ago
Alexander Lohnau
f82b0a9593
bookmarksrunner: Make Firefox::init method non-virtual
...
There is no class which extends from it and is silences a warning about
calling virtual methods from the constructor
5 years ago
Alexander Lohnau
f4cee9b65c
bookmarksrunner: Add tests for firefox bookmarks
5 years ago
Alexander Lohnau
bbfab7a05b
bookmarksrunner: Rename KDEBrowser to Konqueror
...
This matches the naming conventions of the other browsers
and makes the meaning more clear
5 years ago