Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/lxqt/libqtxdg
Qt implementation of freedesktop.org xdg specs
https://github.com/lxqt/libqtxdg
There was no way to serialize-deserialize QIcon to-from QDataStream,
because the `QDataStream &o...
It conflicts with the one in qtermwidget when in superbuild mode.
c54aebc77d8cbae2f341cf7c9a055e15d4b72842 authored almost 8 years ago
Change-Id: I7531ffd4f2d5b2193bb6231c743ff0a074618b99
Reviewed-by: Lars Knoll <[email protected]>
...
Very hand to easily debug icon lookup.
It outputs:
* The name of the found icon. It may be d...
Reference: https://wiki.qt.io/Iterators
By default, it sometimes becomes possible to assign non...
38bd44407aeaab4d70c14f08427aa2c09dd4d7fc authored about 8 years agoDetected by [-Wextra-semi] and [-Wpedantic].
3ae960ecfdda4228c3dc50afd5b173b5f71a95c3 authored about 8 years agoPort of the stuff from lxqt-build-tools.
f0c1ff42fd9b5cb9ff1465d93a09c05a6d701213 authored about 8 years ago
* xdgiconloader-maint:
QtGui: eradicate Q_FOREACH loops [already const]
Optimize QIconLoader...
b82b1cb0dd55d1e4a3b590361c0a3ba0821665ee authored about 8 years ago
Profiling QIconLoader::findIconHelper() shows that a significant portion of CPU time is being sp...
44524bdb1060afd18903edd25afd12b69114363b authored about 8 years ago
(or trivially marked const) ... by replacing them
with C++11 range-for loops.
Change-Id: I3cce9...
8de459eeba886113eca6232a48b056149668b133 authored about 8 years ago
Xdgiconloader maintenance.
Port of upstream qiconloader stuff.
Change-Id: Idac0b24631187063445ea5acfd078b2479359d52
Reviewed-by: Olivier Goffart (Woboq GmbH) <...
Avoid looking up by key twice in a row in various locations, but instead
using iterators and ind...
Change-Id: I7671b05f2e3c218870dca04f3ed52c231dbe4a9d
Reviewed-by: Marc Mutz <[email protected]>...
QLatin1Literal is just alias of QLatin1String for Qt4 compatibility.
So it's style cleanup patch...
lookup() method now takes QStringRef arg.
Reduce allocations.
Change-Id: I556d01be5c5f268672121...
c62bedeb91e55900f974078c3806c582a2a21c2d authored about 8 years agoFor CoW types, prefer const methods to avoid needless detach()ing.
Change-Id: I88d08d499e1be72c...
29ad8a03e1b92f280de93f2e06694e8b83ff86ad authored about 8 years ago
It also adds the --no-undefined linker flag.
This is a port of Hong Jen Yee (PCMan) work on LXQ...
Rationale:
CMAKE_SOURCE_DIR is the directory which contains the top-level
CMakeLists.txt, i....
Use CMake policy NEW CMP0024 behavior.
Reference: https://cmake.org/cmake/help/v3.0/policy/CMP00...
* cmake-maint:
Remove duplicate use of source header files
Use AUTOMOC everywhere
Stop usi...
28d8053453354555c024c303c2cee93453ffbfa5 authored about 8 years ago
16587a4c69e7e99b511fbe90f72d67667d60cfb2 authored about 8 years ago
We don't need it.
8f2de56d53fe2b1a6a6a093baa306fc46aedaae6 authored about 8 years agoUsing target_include_directories().
721875d692afa56ad7675bdc493f2346c83dbc78 authored about 8 years agof58858a006ab8b20a712ba303ed34cce4530cac7 authored about 8 years ago
All in one place.
96998fe28263c577ec2d4dee10c7332fb59ab0da authored about 8 years ago8472e162f588525e1ee4e6e82c06006d24002aa5 authored about 8 years ago
1. Use as much of the Qt QIconLoader implementation as possible (do not
just copy-paste all of t...
We were not copying the XdgIconLoader private installable headers.
654c129227da11b8896bd356953cd756dafb7186 authored over 8 years agoOn some systems /home is a symlink and $HOME points to the symlink.
This commit allows the xdg-us...
* required-versions:
Updates version requirements in pkg-config (.pc) stuff
Make Qt5Xdg use ...
It also drops the QUIET option. The REQUIRED option will make it be verbose
anyway.
Use a more t...
4f68af4c753b97443e483a7c463861ed7782c21b authored over 8 years ago
They are part of the same package. They are meant to be used together.
d46abe6c18849db39165e22599915de796b73d68 authored over 8 years ago
LC_MESSAGES is the first in the hierarchy. Using LANG can lead to false
positives.
* remove "building with cpack" from CMakeLists.txt - not used anymore
* Added very basic .git...
1ab6be06e2ea34fbc28ba5c220b2ec6514f27d74 authored over 8 years agofc6b455a7ede30a4b3db73c2af06dfa44af585ea authored over 8 years ago
fce7ad11219abe8e5550bd60bfad8ea6a5a39125 authored over 8 years ago
And adjust structure a little bit while at it.
c6cae3cdc7ca55c6b5d2a64760cfc25bc2004fdd authored over 8 years agoAdds gtk-update-icon-cache to the optional runtime dependencies.
8dcc8ee45a368d381cb544593d46cae9b8a64c80 authored over 8 years ago
* backport:
QIconLoader: Use the GTK+ icon caches
QIcon: add a hook in the engine so a non n...
It was always returning true.
Closes lxde/libqtxdg#98.
Closes lxde/lxqt#1081.
It was an implicit dependency as XdgIconLoader always support svg icons.
Let's make it explicit.
Loading icons is quite slow because we need to stat many files in many directories.
That's why g...
Implement it in the QIconLoader
We have to change detach() because some code does:
icon = QIcon...
It doesn't save any space, is not required for ABI compat
(because it's private API), generates ...
There was an attempt to allow static instances of QIcon in
7727a4355876607a1a022ff54e2570dae883f...
Currently all icon resolving is passed thru to the platform icon engine,
even in the case where ...
To avoid source-incompatibilites, wrap in QT_DEPRECATED_SINCE(5, 5)
in public headers.
Change-I...
e2011a34d309851135a075497daf99db823aa5c0 authored over 8 years ago
We still have a bunch of Q_WS_ ifdefs in our code, which are easy to
mistake for Q_OS_ ifdefs wh...
Explicitly initialize all members.
4fde773048ebd3a652cc7ead65109ac9ee5d7240 authored over 8 years ago
After separating the iconloader engine there were no mean how to
use the qt5xdgiconloader separa...
Test some (not all, yet) of it.
55804ce10876b5db15596fa7c079203eb7909851 authored over 8 years agoIt adds no value (anymore).
e5720b6b32e72ae2d4958e79bcfce0e366b783b5 authored over 8 years agoOne time is enough!
4c088272471997c564e5b7dee8d5146b892678ba authored over 8 years ago
* maint:
XdgDesktopFileCache: Check if a file isValid() only when needed
XdgDesktopFile: Rew...
If the allocation fails don't use the object.
If load() fails we destroy it and return a null po...
That assignment is never read.
When declaring the variable we assign it, although, we also not u...
Although in this case they are not needed, they "confuse" static analyzers.
c64bff438e366db051bcd1e36feb531f940a739b authored over 8 years ago
It adds null pointer protection and reuses code.
Returns nullptr if a file isn't found or isn't ...
XdgDesktopFileCache::getDefaultApp() always returns valid files.
1c10565a41980f366e074e0d6b65c5efc8c2975e authored over 8 years agoAvoids unnecessary string conversions.
b84792872550554f9b0be836c11359133422b20e authored over 8 years ago
* strings:
Replace the QString % operator by the + operator
No more implicit string conversi...
Without performance penalty.
7c1c77f844c123c9eba90f509ea871b6cc90816c authored over 8 years agoWe now use compile definitions to enforce it.
96fe151bf08c7ee780939ba5ecbdb79a95c461dc authored over 8 years agoIt can be used by Qt5Xdg and Qt5XdgIconLoader.
75d052f88a8efa52de19a8c895c22fdc5f5c453c authored over 8 years agoVery easy to do, but, hard to spot.
fee311814b15bdb38d82cd4f4f632388a73faaf0 authored over 8 years ago2a3833659d437d322574cad41874994da05113e3 authored over 8 years ago
* Puts Qt5Xdg library in it's own directory: qtxdg
All changes are the strictly minimum neede...
188c775ad83799e1cdfb709ee7a6fd6b71abb73f authored over 8 years ago
We use const references where appropriate. Also made the container constant
when appropriate.
Benchmarking Qt applications indicates there is always a performance
penalty to using a foreach ...
Eat our own dog food.
12040ae696c5f236c41cdfefebdb9ec9b427c0d6 authored almost 9 years ago3990376922db8aa7ea65bbaea6edd3ba6fa05865 authored almost 9 years ago
It implements the desktop-file ID calculator.
Spec:
https://specifications.freedesktop.org/deskt...
XdgDesktopFile: Adds Exec fallback when DBusActivatable fails
4fb63160b5469bc2cfc0fde801b10dedc979e185 authored almost 9 years ago
We are deliberately violating the standard. The minimum we can do is to
document it properly.
This way '+' will automatically be performed as the QStringBuilder '%'
everywhere.
77465d947480ecf6f1db3b3731320a81fca37bcd authored almost 9 years ago
0fa31e8d7b6d129ab399657a1b3a3e77d237e517 authored almost 9 years ago
Just use the CMake BUILD_DEV_UTILS option to control it. Defaults to OFF.
a3179f4633aa95b3bb34947971d5107a12d77ec8 authored almost 9 years ago
We fallback to use the Exec key when the DBusActivatable fails.
Closes lxde/lxqt#967.
It allows a developer to start an .desktop file from the command line.
Closes #63.
The best time to find bugs is in development.
52d02a21e7f235d4cccc556d41e70501d9888856 authored almost 9 years agoIt makes it more readable.
92409aba795b7e137afc8f73ef5e75e596901bf9 authored almost 9 years agoEat our own dog food and reuse code.
9742654fdd2fb91e47f1f3b5206beab3a49d6519 authored almost 9 years ago
Although XdgDirs::userDir() already returns the default values when the
the values in the config...
A convenience, but handy, member.
2a2d8dece6ae6fdb76a0b428ddcdd8346c1a0ba7 authored almost 9 years agob85f5fd27d72b79c2de9c845c667fcc73216377d authored almost 9 years ago
The actualSize() always returned {0,0} if:
- the scalable icon (.svg) was found in directory not...
Based on Qt doc:
'Note: when dealing with remote objects, it is not always possible to
determine...
c58edf3aba8b37afc7241792a5a1f102a0d052ab authored almost 9 years ago
* There are no GPL2+ parts in the project
* qticonloader is licensed as LGPL with Digia-1.1 exc...
Also generate warning messages about errors.
9a8545bdd7b7bf20bd52ac59fbde951213429824 authored almost 9 years ago88d4bafa865638b59778c9c7bf8b74229a4076cc authored almost 9 years ago
If the path to the folder is empty we return the default value.
It's what xdg-user-dirs also do.
8b6bba2ef9dbfd84b81b54fac101a93740d4db75 authored almost 9 years ago
9c5c6480ef005d11f3bdca312dfbba6a219340fa authored almost 9 years ago
it is an optional enty of the specification [1]
http://standards.freedesktop.org/desktop-entry-...
f87f2089c4e99a54701022a6e956101145f7bd3e authored about 9 years ago