Volker Krause
42e5eea0b8
Remove the last use of QTextStream::codec(), which is gone in Qt6
...
We never set a codec on the stream we get here, so it's always the default,
the codec for the current locale.
4 years ago
Volker Krause
c2576f8a1f
Adapt to Qt6's removal of Qt::X11Extras
4 years ago
Volker Krause
bf529ccd47
Port fonts KCM to KLazyLocalizedString
...
I18N_NOOP is deprecated and gone in KF6.
4 years ago
Volker Krause
a8006e8b0b
Adapt build system to also support building against Qt6
4 years ago
Corbin Schwimmbeck
a05363886c
Replacing its with m_ to match current convention
4 years ago
Alexander Lohnau
4df78f841c
Remove unneeded comments in license headers
5 years ago
Alexander Lohnau
fefe12dff6
Manual SPDX fixes & cleanup
5 years ago
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
746ac95039
kcms/kfontinst: always add braces around statements
...
This was done using:
run-clang-tidy -checks='-*,readability-braces-around-statements' -j3 -fix '.*kfontinst.*'
git clang-format --force
GIT_SILENT
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
f7b556dddf
GIT_SILENT Re-run clang-format
5 years ago
Alexander Lohnau
f6c0feff49
GIT_SILENT Add trailing comma to initializer lists
...
This will result in cleaner diffs when a new value is added
and clang-format will not indent them with the opening
brace of the initializer list which makes is slightly easier to read.
5 years ago
Nicolas Fella
3e309b4aca
Port from endl to Qt::endl
5 years ago
Nicolas Fella
155a3f1310
Cleanup font libraries cmake code
...
Use imported targets
separate private and public dependencies for kfontinst
5 years ago
Nicolas Fella
7f13eea36e
Use imported targets for X11 libs
...
They are more robust and nicer than variables
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
6c4d16eeee
Fix includes in case they get reordered
...
When running clang-format these includes will get reordered
and the build will fail. This commit prevents this from happening.
5 years ago
Yaroslav Sidlovsky
bc2276aaf9
Fix pixel format RGB32 is some cases (NVidia proprietary driver)
...
BUG: 408606
5 years ago
Nate Graham
40abecde7d
[kcms/kfontinst] Remove a redundant condition in an if statement
...
BUG: 390087
FIXED-IN: 5.21
5 years ago
Nate Graham
a9164a6bcc
[kcms/kfontinst] Reformat an awkward condition
5 years ago
Andrey Butirsky
c305dcd85d
fix: Font files, kfontview and thumbnailer crash on Wayland
...
Workaround: don't call Xft on Wayland
BUG: 401031
5 years ago
Alexander Lohnau
fda6d41132
Fix a bunch of clazy warnings
...
Should be uncontroversial and compile time checked.
5 years ago
Nicolas Fella
b7869bf267
Add trailing commas to enums
...
We do this sometimes, but not consistenly.
The benefit is twofold.
First it improves the diff when adding new values since no existing line needs to be touched.
Second it prevents clang-format from collapsing the definition into a single line, which is undesired for large enums.
5 years ago
David Redondo
853e135c20
Port away from QString::sprintf
5 years ago
David Redondo
567d49f55c
Use QUrlQuery instead of QUrl::setQuery
5 years ago
Laurent Montel
457fd4d232
If include is define in .h remove it if it's defined in .cpp too (scripted)
5 years ago
Bhushan Shah
7d5806ff1c
kcms: move some of the KCMS to plasma-workspace
...
We currently need the lookandfeel and style kcm in plasma-workspace, but
appearantly they depend on the krdb so best solution is to move all kcms
together
They are taken from plasma-desktop at the commit :
8447c08e878ccbde9c5516ba8a912993ea199cb9
6 years ago