OSDN Git Service
Ivailo Monev [Sat, 21 Mar 2020 16:34:28 +0000 (16:34 +0000)]
mark results from sysconf() queries as static
that way queries are done once per thread
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 21 Mar 2020 16:13:18 +0000 (16:13 +0000)]
validate stack size in QThread::setStackSize()
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>
Ivailo Monev [Fri, 20 Mar 2020 23:51:31 +0000 (23:51 +0000)]
avoid copy in qt_toX11Pixmap()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 20 Mar 2020 23:50:53 +0000 (23:50 +0000)]
simplify QPaintEngineEx::supportsTransformations() logic
Ivailo Monev [Fri, 20 Mar 2020 23:50:03 +0000 (23:50 +0000)]
remove redundant forward declaration of QPixmapFilter class in qpaintengineex_p header
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 20 Mar 2020 23:49:11 +0000 (23:49 +0000)]
move misc drawing helper functions to the top of qdrawhelper source
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 20 Mar 2020 20:15:22 +0000 (20:15 +0000)]
mark qt_bayer_matrix constant and qConvertRgb16To32() function as static
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 20 Mar 2020 20:14:49 +0000 (20:14 +0000)]
optimize QRasterPaintEnginePrivate::isUnclipped() methods
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 20 Mar 2020 18:04:30 +0000 (18:04 +0000)]
replace conditional memory rotation templates with their body
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 20 Mar 2020 17:54:54 +0000 (17:54 +0000)]
remove unused and internal virtual QPaintEngineEx methods
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 20 Mar 2020 17:30:13 +0000 (17:30 +0000)]
remove forward declaration of non-existing qt_stroke_dash()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 20 Mar 2020 17:29:37 +0000 (17:29 +0000)]
remove unused and internal QPathClipper::ClipperMode enums
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 20 Mar 2020 17:28:45 +0000 (17:28 +0000)]
return result of QWingedEdge::toPath() directly in QPathClipper::clip()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 20 Mar 2020 17:13:08 +0000 (17:13 +0000)]
remove redundant qt_memrotate90_template<T, T>() specialization
same implementation as the generic one
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 20 Mar 2020 16:13:26 +0000 (16:13 +0000)]
remove code for always false condition in brushes pattern cache
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 20 Mar 2020 04:11:51 +0000 (04:11 +0000)]
remove redundant QFont enums casts and constructs
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 20 Mar 2020 04:11:09 +0000 (04:11 +0000)]
mark CSS parser constants as static
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 20 Mar 2020 04:10:51 +0000 (04:10 +0000)]
remove redundant qglobal header inclusion from qbackingstore source
use local instead of system style headers inclusion while at it
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 20 Mar 2020 02:32:07 +0000 (02:32 +0000)]
remove unused interpolate_pixel_unaligned_2() drawing helper
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 20 Mar 2020 02:24:06 +0000 (02:24 +0000)]
move qt_get_named_rgb() to qcolor source file, replace qt_get_colornames() with its body
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>
Ivailo Monev [Thu, 19 Mar 2020 23:40:45 +0000 (23:40 +0000)]
remove unused and internal QWidgetPrivate::DrawWidgetFlags enums
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 19 Mar 2020 23:28:34 +0000 (23:28 +0000)]
remove unused QWidgetBackingStore::beginPaint() argument
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 19 Mar 2020 21:36:11 +0000 (21:36 +0000)]
update tables data to CLDR v36.1
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 19 Mar 2020 20:54:52 +0000 (20:54 +0000)]
mark some constants as static
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 19 Mar 2020 20:34:39 +0000 (20:34 +0000)]
add unifdef to build dependencies of Debian package [ci skip]
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 19 Mar 2020 20:04:36 +0000 (20:04 +0000)]
fix regression since
28d63e9b27d82c2de090d72699b273b77b28de30
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>
Ivailo Monev [Thu, 19 Mar 2020 02:55:14 +0000 (02:55 +0000)]
correct cast qualifier in blend_untransformed_argb()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 19 Mar 2020 02:43:37 +0000 (02:43 +0000)]
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>
Ivailo Monev [Thu, 19 Mar 2020 02:15:31 +0000 (02:15 +0000)]
add libsm-dev to build dependencies of Debian package [ci skip]
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 19 Mar 2020 00:06:19 +0000 (00:06 +0000)]
optimize blend_src_generic() drawing helper
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 18 Mar 2020 22:04:06 +0000 (22:04 +0000)]
remove unused and internal qt_paint_device_metric()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 12 Mar 2020 21:45:33 +0000 (21:45 +0000)]
append to OBJECT_DEPENDS property from katie_setup_target() macro
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 12 Mar 2020 21:34:12 +0000 (21:34 +0000)]
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>
Ivailo Monev [Thu, 12 Mar 2020 19:40:05 +0000 (19:40 +0000)]
use static strings for RCC tags/attributes
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 10 Mar 2020 20:24:37 +0000 (20:24 +0000)]
remove unused QScript::Lexer members
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 9 Mar 2020 16:15:40 +0000 (16:15 +0000)]
remove code for always false condition in QRasterPaintEngine
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 9 Mar 2020 15:52:37 +0000 (15:52 +0000)]
remove unused QRasterPaintEnginePrivate::getPenFunc() method
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 9 Mar 2020 15:51:58 +0000 (15:51 +0000)]
get rid of QRasterPaintEnginePrivate::deviceRectUnclipped member
not used anywhere but in QRasterPaintEnginePrivate::systemStateChanged()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 9 Mar 2020 15:42:00 +0000 (15:42 +0000)]
remove unused drawing function prototypes
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 9 Mar 2020 15:15:17 +0000 (15:15 +0000)]
replace default with QSpanData::None case in getOperator()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 9 Mar 2020 15:14:30 +0000 (15:14 +0000)]
correct reinterpret_cast<T> qualifier in destFetch()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 9 Mar 2020 14:22:55 +0000 (14:22 +0000)]
avoid temporaries in qt_gradient_quint32() and qt_gradient_quint16()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 9 Mar 2020 14:22:18 +0000 (14:22 +0000)]
replace qt_rectfill_template<T> with its body in QT_RECTFILL() macro
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 9 Mar 2020 04:18:32 +0000 (04:18 +0000)]
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>
Ivailo Monev [Mon, 9 Mar 2020 03:10:48 +0000 (03:10 +0000)]
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>
Ivailo Monev [Mon, 9 Mar 2020 01:12:21 +0000 (01:12 +0000)]
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>
Ivailo Monev [Mon, 9 Mar 2020 01:07:39 +0000 (01:07 +0000)]
avoid copy in qt_alphargbblit_quint32() , qt_alphamapblit_quint32() and qt_alphamapblit_quint32()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 8 Mar 2020 23:17:18 +0000 (23:17 +0000)]
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>
Ivailo Monev [Sun, 8 Mar 2020 22:26:54 +0000 (22:26 +0000)]
avoid copy in QSQLiteDriver::primaryIndex() and QSQLiteDriver::record()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 8 Mar 2020 18:35:33 +0000 (18:35 +0000)]
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>
Ivailo Monev [Sun, 8 Mar 2020 18:03:31 +0000 (18:03 +0000)]
remove unused QListWidgetItemPrivate::q member
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 8 Mar 2020 00:45:56 +0000 (00:45 +0000)]
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>
Ivailo Monev [Sun, 8 Mar 2020 00:44:40 +0000 (00:44 +0000)]
remove code for always false condition in QDirModelPrivate
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 7 Mar 2020 23:34:42 +0000 (23:34 +0000)]
update translations [ci skip]
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 7 Mar 2020 22:20:18 +0000 (22:20 +0000)]
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>
Ivailo Monev [Sat, 7 Mar 2020 21:38:01 +0000 (21:38 +0000)]
remove unused and internal QUnixPrintWidget::updatePrinter()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 7 Mar 2020 21:10:36 +0000 (21:10 +0000)]
remove unused and private QGraphicsItemPrivate::subFocusItemChange()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 25 Feb 2020 22:43:54 +0000 (22:43 +0000)]
remove unused qplatformdefs header definitions
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 24 Feb 2020 18:34:21 +0000 (18:34 +0000)]
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>
Ivailo Monev [Mon, 24 Feb 2020 17:14:26 +0000 (17:14 +0000)]
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>
Ivailo Monev [Mon, 24 Feb 2020 17:09:43 +0000 (17:09 +0000)]
fix blank characters check in QChar::isSpace()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 24 Feb 2020 16:31:18 +0000 (16:31 +0000)]
update list of supported operating systems in qglobal header
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 23 Feb 2020 22:59:46 +0000 (22:59 +0000)]
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>
Ivailo Monev [Sun, 23 Feb 2020 22:41:15 +0000 (22:41 +0000)]
replace 0 with Q_NULLPTR where applicable
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 23 Feb 2020 20:58:57 +0000 (22:58 +0200)]
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>
Ivailo Monev [Sun, 23 Feb 2020 16:57:30 +0000 (16:57 +0000)]
remove compat leftovers
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 23 Feb 2020 16:06:59 +0000 (16:06 +0000)]
correct brushes QRC prefix in BrushManagerProxy::setBrushManager()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 22 Feb 2020 22:48:21 +0000 (22:48 +0000)]
drop support for static plugins
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 22 Feb 2020 20:06:09 +0000 (20:06 +0000)]
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:
https://github.com/qt/qtbase/commit/
418890e0748384eb684f33b10dc6f32493aee54b
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 22 Feb 2020 18:44:17 +0000 (18:44 +0000)]
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>
Ivailo Monev [Thu, 20 Feb 2020 02:37:28 +0000 (02:37 +0000)]
inline qstrcmp() function for performance reasons
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 19 Feb 2020 21:30:32 +0000 (21:30 +0000)]
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>
Ivailo Monev [Wed, 19 Feb 2020 20:57:22 +0000 (20:57 +0000)]
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)
Ivailo Monev [Mon, 17 Feb 2020 18:06:04 +0000 (18:06 +0000)]
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>
Ivailo Monev [Sun, 16 Feb 2020 14:30:02 +0000 (14:30 +0000)]
create leading directories of settings filepath
for compatibility with code expecting it to be created
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 15 Feb 2020 19:43:05 +0000 (19:43 +0000)]
prefix standard function calls in qt_print_backtrace()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 15 Feb 2020 19:15:47 +0000 (19:15 +0000)]
indent QNetworkReplyImplPrivate::_q_networkSessionConnected()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 15 Feb 2020 19:15:24 +0000 (19:15 +0000)]
remove unused registerHelper<T>() argument
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 14 Feb 2020 01:54:23 +0000 (01:54 +0000)]
remove qlocalserver_tcp source file
used for symbian, wince and integrity which are no longer supported
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 13 Feb 2020 20:05:09 +0000 (20:05 +0000)]
replace 0 with Q_NULLPTR where applicable
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 13 Feb 2020 19:46:49 +0000 (19:46 +0000)]
use foreach() for iteration in QThread::exit()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 13 Feb 2020 16:55:35 +0000 (16:55 +0000)]
remove unused QtFontFamily::synthetic member
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 13 Feb 2020 16:45:24 +0000 (16:45 +0000)]
remove unused qt_fallback_font_family() and qt_x11_set_fallback_font_family()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 13 Feb 2020 15:33:46 +0000 (15:33 +0000)]
remove abstract file handler support leftovers
no longer supported since
e02ce5c0e02ad7a830f11d281b2641362a1df2c0
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 12 Feb 2020 17:06:39 +0000 (17:06 +0000)]
use custom CMake module for PostgreSQL
the module CMake provides cannot detect it in Travis
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 12 Feb 2020 16:40:17 +0000 (16:40 +0000)]
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>
Ivailo Monev [Wed, 12 Feb 2020 15:58:36 +0000 (15:58 +0000)]
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>
Ivailo Monev [Wed, 12 Feb 2020 15:34:06 +0000 (15:34 +0000)]
replace 0 with Q_NULLPTR where applicable
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 12 Feb 2020 00:29:36 +0000 (00:29 +0000)]
remove unused QDeclarativeJS::NodePool::m_codeCache member
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 11 Feb 2020 23:58:35 +0000 (23:58 +0000)]
get rid of QFileIconProviderPrivate
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 11 Feb 2020 19:46:15 +0000 (19:46 +0000)]
remove redundant condition in QIconTheme::QIconTheme()
fallback theme is hicolor
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 11 Feb 2020 19:45:17 +0000 (19:45 +0000)]
use foreach() for iteration in QIconLoader::findIconHelper()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 11 Feb 2020 19:18:30 +0000 (19:18 +0000)]
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>
Ivailo Monev [Tue, 11 Feb 2020 01:02:13 +0000 (01:02 +0000)]
update QSettings group methods documentation
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 11 Feb 2020 00:47:39 +0000 (00:47 +0000)]
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>
Ivailo Monev [Mon, 10 Feb 2020 22:13:39 +0000 (22:13 +0000)]
remove compatibility Qt::Modifier::UNICODE_ACCEL enum
upstream commit:
https://github.com/qt/qtbase/commit/
bc6ad75d18a029da363afc4f6007aefc7962a8ad
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 10 Feb 2020 21:21:33 +0000 (21:21 +0000)]
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>
Ivailo Monev [Mon, 10 Feb 2020 17:38:56 +0000 (17:38 +0000)]
replace 0 with Q_NULLPTR in QSharedDataPointer and QExplicitlySharedDataPointer
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 10 Feb 2020 17:38:30 +0000 (17:38 +0000)]
remove CPack related variables, CPack will not be supported
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 10 Feb 2020 14:18:58 +0000 (14:18 +0000)]
optimize QString::multiArg()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>