removes the NSL and NIS optional dependencies and effectively speeds up
the initialization of printing dialog and obtaining of information about
prineters. this change leaves CUPS as the only option to support
printing
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
indent and replace default with enum case while at it. automated
adjustments can be done with the following command:
find -type f -exec sed \
-e 's|Qt::SystemLocaleDate|Qt::SystemLocaleShortDate|g' \
-e 's|Qt::LocalDate|Qt::SystemLocaleShortDate|g' \
-e 's|Qt::LocaleDate|Qt::DefaultLocaleShortDate|g' -i {} +
if you are doing it to git repository, move it out of the way as the
command may corrupt it.
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
QT_NO_DEBUG_PLUGIN_CHECK is defined for any UNIX-like operating system,
which is the only type Katie supports. this change will reduce the size of
plugins slightly and loading plugins will be faster.
Q_PLUGIN_INSTANCE() plugins macro is private so it was merged into
Q_EXPORT_PLUGIN2() and rebrand QFactoryLoader cache key while at it.
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
the libraries path was missing from the list returned by
QCoreApplication::libraryPaths() which as stated in its documentation
is used when dynamically loading libraries so that's also fixed with this
change and is required for the libraries lookup.
obviously, QLibraryPrivate::findOrCreate() was not looking for libraries at
all despite the function name so code for that had to be moved from
QLibraryPrivate::load_sys() which makes it possible to load not only plugins
but also library with relative file name.
support for QLibrary::LoadHint::LoadArchiveMemberHint was dropped in the
process, QLibrary::LoadHint::ImprovedSearchHeuristics is not used thus
removed.
in the future QCoreApplication::pluginPaths() may be added to separate the
library/plugin paths but for now compatibility with projects expecting it
to return plugin paths will be kept. when that is done
QCoreApplication::libraryPaths() will check LD_LIBRARY_PATH instead of
QT_PLUGIN_PATH environment variable.
upstream commit:
418890e074
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
since find_package_handle_standard_args() is used and no status messages
are printed by the modules there is no reason to set <MODULE>_FIND_QUIETLY
variable (which should be prefixed with the actual module name, not upper
case)
this was used for dll/bundles support most likely, on UNIX however adding
it to the library paths is incorrect. The runtime path (RPATH) hardcoded
into libraries/binaries should be searched instead however that is not
supported and removed by most distributions on purpose.
with this change application startup time is reduced by a lot since the
binary paths (/bin, /sbin, etc.) do not have to be listed which usually
contain large number of binaries and even symbolic/hard links
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
it is prone to race condition and not used, if anyone wants to add
driver it should really be a plugin
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
both are not really optional, that is why internal copies of the PNG and
SQLite projects sources are bundled.
by making the SQLite SQL driver built-in the plasma-desktop process
memory usage was reduced by roughly 4MB.
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
while at it, remove X11_LIBRARIES from the list of additional libraries
of KtGui component to avoid overlinking
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
it was not included because it was not needed for the Qt4 compatibility
variables but can be used to solve https://github.com/fluxer/kdelibs/issues/3
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>