Commit graph

4082 commits

Author SHA1 Message Date
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
Ivailo Monev
2622c69097 create leading directories of settings filepath
for compatibility with code expecting it to be created

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-16 15:46:11 +00:00
Ivailo Monev
db53ab28e4 prefix standard function calls in qt_print_backtrace()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-15 19:43:05 +00:00
Ivailo Monev
f247500ebd indent QNetworkReplyImplPrivate::_q_networkSessionConnected()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-15 19:15:47 +00:00
Ivailo Monev
3220d781e2 remove unused registerHelper<T>() argument
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-15 19:15:24 +00:00
Ivailo Monev
4389317a27 remove qlocalserver_tcp source file
used for symbian, wince and integrity which are no longer supported

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-14 01:54:26 +00:00
Ivailo Monev
7dff007bd2 replace 0 with Q_NULLPTR where applicable
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-13 20:05:09 +00:00
Ivailo Monev
331fc2f864 use foreach() for iteration in QThread::exit()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-13 19:46:49 +00:00
Ivailo Monev
9fc15a2ce2 remove unused QtFontFamily::synthetic member
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-13 16:55:35 +00:00
Ivailo Monev
ebb2f4f963 remove unused qt_fallback_font_family() and qt_x11_set_fallback_font_family()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-13 16:45:24 +00:00
Ivailo Monev
9d7518db6b remove abstract file handler support leftovers
no longer supported since e02ce5c0e0

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-13 16:44:43 +00:00
Ivailo Monev
89e2819b29 use custom CMake module for PostgreSQL
the module CMake provides cannot detect it in Travis

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-13 14:31:25 +00:00
Ivailo Monev
53de5dc0f6 drop QSqlDriverCreator support
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>
2020-02-12 16:43:01 +00:00
Ivailo Monev
7604ec7bf6 remove WITH_PNG AND WITH_SQLITE options, build SQLite driver into KtSql module
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>
2020-02-12 16:09:13 +00:00
Ivailo Monev
392ba35497 replace 0 with Q_NULLPTR where applicable
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-12 15:34:06 +00:00
Ivailo Monev
e323838a8a remove unused QDeclarativeJS::NodePool::m_codeCache member
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-12 00:29:36 +00:00
Ivailo Monev
aa060a9164 get rid of QFileIconProviderPrivate
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-12 00:18:48 +00:00
Ivailo Monev
152963af0f remove redundant condition in QIconTheme::QIconTheme()
fallback theme is hicolor

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-11 19:46:15 +00:00
Ivailo Monev
66d0eca33b use foreach() for iteration in QIconLoader::findIconHelper()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-11 19:45:17 +00:00
Ivailo Monev
ddb58cc088 use CLOCK_MONOTONIC_COARSE if available in do_gettime()
used by jemalloc for an example, as for the exact precision lose it is not
clear what it is from the clock_gettime() manual page. it is not clear from
the patch posted at https://lwn.net/Articles/347811/ nor from the commit
message at https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/include/linux/time.h?h=v5.6-rc1&id=da15cfdae03351c689736f8d142618592e3cebc3
either.

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux_for_real_time/7/html/tuning_guide/using_coarse_posix_clocks_for_application_timestamping
claims that it is 1ms which seems like a good trade-off to me

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-11 19:18:30 +00:00
Ivailo Monev
e19b75a9fb update QSettings group methods documentation
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-11 01:02:13 +00:00
Ivailo Monev
93efd5ac51 session management requires X11 ICE extension in addition to SM
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>
2020-02-11 00:55:15 +00:00
Ivailo Monev
ab15bbf194 remove compatibility Qt::Modifier::UNICODE_ACCEL enum
upstream commit:
bc6ad75d18

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-10 22:13:39 +00:00
Ivailo Monev
10e3749d4a rewrite CMake modules to use pkg-config search first and fallback to path lookup
reducec the configuration/build time

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-10 21:22:25 +00:00