Alexander Lohnau
c11051955d
Convert license headers to SPDX
5 years ago
Adrien Faveraux
42515d22cb
Move include guard to Pragma Once
5 years ago
Ahmad Samir
104fea4ec3
kfontinst: less macros; use logging categories
...
And comment out the qDebug() calls (the ones without a logging category),
useful for debugging but they spam the terminal output if you e.g. start
systemsettings from terminal.
Also don't print time with debug statements, useful for benchmarking, but
too much output in terminal otherwise.
GIT_SILENT
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
3d03606302
Use kcoreaddons_add_plugin to allow loading plugins from build dir
...
Task: https://phabricator.kde.org/T14528
5 years ago
Alexander Lohnau
fd9c790b8e
GIT_SILENT Make small adjustment before running clang-format
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
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
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
538ba58db1
runners: Allow runners to be loaded from build directory
5 years ago
Alexander Lohnau
5a2d973e04
calculatorrunner: Do not delay matching
...
There are no performance issues with this runner, consequently it does
not make sense to delay the matching for 400ms.
5 years ago
Alexander Lohnau
e464054937
calculatorrunner: Fix autotests if Qalculate is not found
...
This is the case on the BSD CI build. You can try this out with the
`-DCMAKE_DISABLE_FIND_PACKAGE_Qalculate=1` cmake flag and the tests
still pass.
5 years ago
Alexander Lohnau
ec751bf1b3
calculatorrunner: License headers
...
GIT_SILENT
5 years ago
Alexander Lohnau
4c29d17a88
calculatorrunner: Only define help functions for JS evaluation when Qalculate is not available
5 years ago
Alexander Lohnau
df48864314
calculatorrunner: Add autotests
5 years ago
Alexander Lohnau
ef4d5d0f68
calculatorrunner: Fix mixed hex+decimal calculations
...
BUG: 431362
FIXED-IN: 5.21.1
5 years ago
Nicolas Fella
1a07220843
Use versionless Qt cmake target
...
This makes it easier to build against both Qt5 and Qt6
5 years ago
Alexander Lohnau
823d2106ec
Run clang-format
...
If you want git blame to ignore formatting revisions run:
git config blame.ignoreRevsFile .git-blame-ignore-revs
5 years ago
Alexander Lohnau
292d9d1925
calculator runner: Fix handling of hexadecimal input/output
...
- In case our query starts with 0x123abc we do not call
the `userFriendlyMultiplication` method which replaces the
x sign with the multiplication operator.
We can be sure that the user wants to parse a hex
value. Also the `=` is not mandatory anymore.
- The hex=mydecimalnumber functionality was broken.
The conversion of the hex value is only done inside of the
if statement and before the values will be the same, unless we do some math operation.
Test Plan:
`=0xf` returns 15
`0xf` return 15
`7x7` returns 49
`hex=15` returns 0xF
`hex=14+1` returns 0xF
BUG: 431362
FIXED-IN: 5.21
5 years ago
Alexander Lohnau
2fbdc187d5
Evaluate single digit factorial
...
BUG: 429272
FIXED-IN: 5.21
5 years ago
Friedrich W. H. Kossebau
42068e1707
Runners: port to KPluginMetaData argument using AbstractRunner constructor
5 years ago
Alexander Lohnau
eea705033b
Runners: Do not set deprecated ignore types
...
They are about to get deprecated(https://invent.kde.org/frameworks/krunner/-/merge_requests/40 )
and the minLetterCount and matchRegex properties are already utilized.
5 years ago
Alexander Lohnau
8f7a12d750
Optimize runners using new properties
6 years ago
Alexander Lohnau
665836f562
Simplify runners using new methods
6 years ago
l10n daemon script
2aecf659a6
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"
6 years ago
Alexander Lohnau
a864483625
Allow comma when dot is decimal separator
...
BUG: 406388
FIXED-IN: 5.20
This allows us to use a comma as a decimal separator, even if we have a
dot configured.
Especially when there is a difference between the official and
implemented decimal separator (see bug report) or if the user switches
between settings with a different separator.
By making sure that no [ or ] character(used for vectors) is contained
before replacing the string we make sure that we still provide all the
features Qalculate does.
6 years ago
Alexander Lohnau
668feb3e17
Allow x and multiplication symbol instead of *
...
FEATURE: 350066
FIXED-IN: 5.20
This will allow us to run queries like:
4x4
4x4,2
4x,2
But if we explicitly want the x to be interpreted as a
variable by qalculate we can run:
=4x*4
6 years ago
l10n daemon script
5f13bcabf9
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"
6 years ago
Friedrich W. H. Kossebau
3c41e2c12f
runners: port to new KRunner metadata system & install location
6 years ago
l10n daemon script
98397d7fd1
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"
6 years ago
l10n daemon script
8fda734647
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"
6 years ago
l10n daemon script
fe7320494b
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"
6 years ago
l10n daemon script
fd832ae350
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"
6 years ago
l10n daemon script
70ad54479f
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"
6 years ago
l10n daemon script
6236df5138
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"
6 years ago
Alexander Lohnau
72cebd84c9
Cleanup runners
6 years ago
l10n daemon script
f04038a367
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"
6 years ago
l10n daemon script
d0cb0bd49f
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"
6 years ago
l10n daemon script
b547a75572
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"
6 years ago
Ahmad Samir
cd37cc6926
[Calculator Runner] Minor code optimisation
...
Summary:
Remove redunant QString::contains() checks.
Create one QRegularExpression object and use setPattern().
Test Plan: make && ctest
Reviewers: #plasma, apol, davidedmundson
Reviewed By: #plasma, davidedmundson
Subscribers: plasma-devel
Tags: #plasma
Differential Revision: https://phabricator.kde.org/D28132
6 years ago
Ahmad Samir
f444ebe595
Port some usage of QRegExp to QRegularExpression
...
Test Plan: make && ctest
Reviewers: #plasma, davidedmundson, apol, broulik
Reviewed By: apol
Subscribers: plasma-devel
Tags: #plasma
Differential Revision: https://phabricator.kde.org/D27857
6 years ago
Yuri Chornoivan
99450132b1
Fix minor EBN issues and typos
6 years ago
Lukas Pichler
e374492d24
Change krunner calculator to display significant digits
...
Summary:
Change the qalculate krunner module to print only significant digits instead of an interval as this is sometimes unreadable.
BUG: 412627
FIXED-IN: 5.18.0
Test Plan:
Before this change:
{F7828390}
After:
{F7828389}
Reviewers: broulik, #plasma
Reviewed By: broulik, #plasma
Subscribers: plasma-devel
Tags: #plasma
Differential Revision: https://phabricator.kde.org/D26149
6 years ago
l10n daemon script
823442d2ab
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"
6 years ago
l10n daemon script
c3e4c731de
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"
6 years ago
Yuri Chornoivan
6d6d3c5b3e
Use URL with transport encryption
6 years ago
l10n daemon script
909f9145e7
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"
7 years ago
David Edmundson
e0f8167399
[runners/calculator] Port old style connect
...
Test Plan: Compiles
Reviewers: #plasma, apol
Reviewed By: apol
Subscribers: plasma-devel
Tags: #plasma
Differential Revision: https://phabricator.kde.org/D24325
7 years ago