that way the qt_get_named_rgb() function can be made static and marked
inline. the loop in QColor::colorNames() can be unrolled by the compiler
too. while at it, remove the duplicate code in the SVG handler
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
apparently if default is used the cursor may not be one from theme set
via XcursorSetTheme(), it affects not only left_ptr alternative too so
try non-alternative first
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
combining types which harfbuzz does not support are no longer added to the
tables too, this should make obtaining properties of text faster.
special language table used to probe fonts for scripts support should be
reviewed once new CLDR version is released to add proper language entries
if present in likelySubtags.xml
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
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>
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>
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>