Commit graph

3905 commits

Author SHA1 Message Date
Ivailo Monev
6d30d88e35 add unifdef to build dependencies of Debian package [ci skip]
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-19 20:34:39 +00:00
Ivailo Monev
6bb88e7504 fix regression since 28d63e9b27
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>
2020-03-19 20:31:36 +00:00
Ivailo Monev
339b9103dd correct cast qualifier in blend_untransformed_argb()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-19 02:55:14 +00:00
Ivailo Monev
32bce7bc71 move non-shared drawing helper functions to qdrawhelper source file
also mark comp_func_Plus_one_pixel() as static while at it

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-19 02:43:37 +00:00
Ivailo Monev
3ccf93bac6 add libsm-dev to build dependencies of Debian package [ci skip]
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-19 02:15:31 +00:00
Ivailo Monev
937889b14a optimize blend_src_generic() drawing helper
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-19 00:06:19 +00:00
Ivailo Monev
cb9615e95e remove unused and internal qt_paint_device_metric()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-18 22:04:06 +00:00
Ivailo Monev
c743e9a3fb append to OBJECT_DEPENDS property from katie_setup_target() macro
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-12 21:45:33 +00:00
Ivailo Monev
ab1464f104 update unicode data tables to v13.0
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>
2020-03-12 21:42:56 +00:00
Ivailo Monev
7b42e91214 use static strings for RCC tags/attributes
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-12 19:40:05 +00:00
Ivailo Monev
0943324095 remove unused QScript::Lexer members
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-10 20:24:37 +00:00
Ivailo Monev
cdc3b37daf remove code for always false condition in QRasterPaintEngine
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-09 16:15:40 +00:00
Ivailo Monev
282d77dc2e remove unused QRasterPaintEnginePrivate::getPenFunc() method
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-09 15:52:37 +00:00
Ivailo Monev
6e4fe2850c get rid of QRasterPaintEnginePrivate::deviceRectUnclipped member
not used anywhere but in QRasterPaintEnginePrivate::systemStateChanged()

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-09 15:51:58 +00:00
Ivailo Monev
b5ea99e681 remove unused drawing function prototypes
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-09 15:42:00 +00:00
Ivailo Monev
e2db276a13 replace default with QSpanData::None case in getOperator()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-09 15:15:17 +00:00
Ivailo Monev
34917bf462 correct reinterpret_cast<T> qualifier in destFetch()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-09 15:14:30 +00:00
Ivailo Monev
8c67341807 avoid temporaries in qt_gradient_quint32() and qt_gradient_quint16()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-09 14:22:55 +00:00
Ivailo Monev
6068071768 replace qt_rectfill_template<T> with its body in QT_RECTFILL() macro
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-09 14:22:18 +00:00
Ivailo Monev
c1fc868a83 mark some fast drawing helper functions as static
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>
2020-03-09 04:18:32 +00:00
Ivailo Monev
f08fc57f81 optimize drawing helper function tables
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>
2020-03-09 03:12:37 +00:00
Ivailo Monev
fc83fb6dd0 remove unused drawing helper functions
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>
2020-03-09 01:17:32 +00:00
Ivailo Monev
cf66a846a5 avoid copy in qt_alphargbblit_quint32() , qt_alphamapblit_quint32() and qt_alphamapblit_quint32()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-09 01:07:39 +00:00
Ivailo Monev
07bf092710 always use full paths for installation
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>
2020-03-09 00:36:36 +00:00
Ivailo Monev
3b99069ec3 avoid copy in QSQLiteDriver::primaryIndex() and QSQLiteDriver::record()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-08 22:26:54 +00:00
Ivailo Monev
229b0caa55 remove unused QScriptValue::ResolveFlag enums
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>
2020-03-08 18:42:41 +00:00
Ivailo Monev
4c3f5f6fb1 remove unused QListWidgetItemPrivate::q member
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-08 18:03:31 +00:00
Ivailo Monev
7d82b9c502 remove explicit dependencies from Debian package control file
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>
2020-03-08 00:46:00 +00:00
Ivailo Monev
95c9951547 remove code for always false condition in QDirModelPrivate
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-08 00:44:40 +00:00
Ivailo Monev
e3b36d3ca4 update translations [ci skip]
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-07 23:34:42 +00:00
Ivailo Monev
31b97f69d7 remove LPR support leftovers
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>
2020-03-07 22:20:22 +00:00
Ivailo Monev
7c0f7a8f11 remove unused and internal QUnixPrintWidget::updatePrinter()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-07 21:38:01 +00:00
Ivailo Monev
77e8e4c4be remove unused and private QGraphicsItemPrivate::subFocusItemChange()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-07 21:10:36 +00:00
Ivailo Monev
1d253f1c24 remove unused qplatformdefs header definitions
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-25 22:43:54 +00:00
Ivailo Monev
36aaf16f82 remove deprecated Qt::DateFormat enums
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>
2020-02-24 21:46:21 +00:00
Ivailo Monev
68c84e8f70 avoid relocations in QString::arg() QChar/char overloads
QString's += operator reallocates data and the temporary shared null will
not be used

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-24 17:14:26 +00:00
Ivailo Monev
6391c52b86 fix blank characters check in QChar::isSpace()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-24 17:09:43 +00:00
Ivailo Monev
4083396e1e update list of supported operating systems in qglobal header
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-24 16:31:18 +00:00
Ivailo Monev
3e4d4bed67 move plugin verification pattern to qt_find_pattern()
making it and the its length static aswell as removing redundant check if
pattern is null while at it

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-23 22:59:46 +00:00
Ivailo Monev
353bed4682 replace 0 with Q_NULLPTR where applicable
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-23 22:41:15 +00:00
Ivailo Monev
f6def547df remove unused checks for debug-build plugins
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>
2020-02-23 22:18:04 +00:00
Ivailo Monev
bdaedf3e86 remove compat leftovers
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-23 16:57:30 +00:00
Ivailo Monev
7c10059163 correct brushes QRC prefix in BrushManagerProxy::setBrushManager()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-23 16:06:59 +00:00
Ivailo Monev
d19b0a6ce4 drop support for static plugins
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-23 16:05:40 +00:00
Ivailo Monev
03e46bb6d4 fix loading of plugins with a relative file name
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>
2020-02-22 20:06:09 +00:00
Ivailo Monev
fe4a02e38c remove redundant condition in QFileInfoPrivate::getFileName()
if the string is null, setting it to empty is will only change its
reference to shared empty

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-22 18:44:17 +00:00
Ivailo Monev
cdfd13e6dc inline qstrcmp() function for performance reasons
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-20 02:37:28 +00:00
Ivailo Monev
c846262c20 silence dpkg-gensymbols during packaging [ci skip]
otherwise it dumps ~30k lines of symbols everytime a fresh package is build

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-19 21:30:32 +00:00
Ivailo Monev
e9cbcbb50c remove <MODULE>_FIND_QUIETLY overrides from CMake modules
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)
2020-02-19 20:57:22 +00:00
Ivailo Monev
89d52f7abb do not append application path to library paths
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>
2020-02-17 18:11:35 +00:00