while at it, make RadialFetchPlain::fetch() static function and merge
qt_fetch_radial_gradient_template<> into qt_fetch_radial_gradient()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
avoids many functions calls, while at it const-ify and assign variables
once only where possible. replacing pre-processor macros is done to make
the code more readable and easy to search for function calls
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
since those functions are marked inline, neither GCC nor Clang warn that
they are not used even with -Wunused
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
now that CPack is no longer supported relative paths are no longer
required. this change also fixes the headers optimizations upon
installation since it requires full paths to work
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
use correct type for the flags while at it and remove internal
QScriptValue::scope() and QScriptValue::setScope() methods
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
dh_shlibdeps can detect them and their removal makes the control file
more suitable for producing package files for Debian/Ubuntu releases
other than the current Debian stable release which I am using it for
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
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>