that way threads will not fail if it is less than the minimum, the warning
from QThread::start() is basically invisible to GUI users unless
application is started from terminal which is far from ideal. one has
to install own message handler via qInstallMsgHandler() to make such
warnings noticable to GUI users, possible via QErrorMessage, which should
be errors in fact and printed via qCritical() but making such changes is
beyond the scope of this commit
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
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>
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>
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>