OSDN Git Service

kde/Katie.git
4 years agoremove unused QRasterPaintEnginePrivate::getPenFunc() method
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>
4 years agoget rid of QRasterPaintEnginePrivate::deviceRectUnclipped member
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>
4 years agoremove unused drawing function prototypes
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>
4 years agoreplace default with QSpanData::None case in getOperator()
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>
4 years agocorrect reinterpret_cast<T> qualifier in destFetch()
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>
4 years agoavoid temporaries in qt_gradient_quint32() and qt_gradient_quint16()
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>
4 years agoreplace qt_rectfill_template<T> with its body in QT_RECTFILL() macro
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>
4 years agomark some fast drawing helper functions as static
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>
4 years agooptimize drawing helper function tables
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>
4 years agoremove unused drawing helper functions
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>
4 years agoavoid copy in qt_alphargbblit_quint32() , qt_alphamapblit_quint32() and qt_alphamapbl...
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>
4 years agoalways use full paths for installation
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>
4 years agoavoid copy in QSQLiteDriver::primaryIndex() and QSQLiteDriver::record()
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>
4 years agoremove unused QScriptValue::ResolveFlag enums
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>
4 years agoremove unused QListWidgetItemPrivate::q member
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>
4 years agoremove explicit dependencies from Debian package control file
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>
4 years agoremove code for always false condition in QDirModelPrivate
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>
4 years agoupdate translations [ci skip]
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>
4 years agoremove LPR support leftovers
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>
4 years agoremove unused and internal QUnixPrintWidget::updatePrinter()
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>
4 years agoremove unused and private QGraphicsItemPrivate::subFocusItemChange()
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>
4 years agoremove unused qplatformdefs header definitions
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>
4 years agoremove deprecated Qt::DateFormat enums
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>
4 years agoavoid relocations in QString::arg() QChar/char overloads
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>
4 years agofix blank characters check in QChar::isSpace()
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>
4 years agoupdate list of supported operating systems in qglobal header
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>
4 years agomove plugin verification pattern to qt_find_pattern()
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>
4 years agoreplace 0 with Q_NULLPTR where applicable
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>
4 years agoremove unused checks for debug-build plugins
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>
4 years agoremove compat leftovers
Ivailo Monev [Sun, 23 Feb 2020 16:57:30 +0000 (16:57 +0000)]
remove compat leftovers

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agocorrect brushes QRC prefix in BrushManagerProxy::setBrushManager()
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>
4 years agodrop support for static plugins
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>
4 years agofix loading of plugins with a relative file name
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>
4 years agoremove redundant condition in QFileInfoPrivate::getFileName()
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>
4 years agoinline qstrcmp() function for performance reasons
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>
4 years agosilence dpkg-gensymbols during packaging [ci skip]
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>
4 years agoremove <MODULE>_FIND_QUIETLY overrides from CMake modules
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)

4 years agodo not append application path to library paths
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>
4 years agocreate leading directories of settings filepath
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>
4 years agoprefix standard function calls in qt_print_backtrace()
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>
4 years agoindent QNetworkReplyImplPrivate::_q_networkSessionConnected()
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>
4 years agoremove unused registerHelper<T>() argument
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>
4 years agoremove qlocalserver_tcp source file
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>
4 years agoreplace 0 with Q_NULLPTR where applicable
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>
4 years agouse foreach() for iteration in QThread::exit()
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>
4 years agoremove unused QtFontFamily::synthetic member
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>
4 years agoremove unused qt_fallback_font_family() and qt_x11_set_fallback_font_family()
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>
4 years agoremove abstract file handler support leftovers
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>
4 years agouse custom CMake module for PostgreSQL
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>
4 years agodrop QSqlDriverCreator support
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>
4 years agoremove WITH_PNG AND WITH_SQLITE options, build SQLite driver into KtSql module
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>
4 years agoreplace 0 with Q_NULLPTR where applicable
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>
4 years agoremove unused QDeclarativeJS::NodePool::m_codeCache member
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>
4 years agoget rid of QFileIconProviderPrivate
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>
4 years agoremove redundant condition in QIconTheme::QIconTheme()
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>
4 years agouse foreach() for iteration in QIconLoader::findIconHelper()
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>
4 years agouse CLOCK_MONOTONIC_COARSE if available in do_gettime()
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>
4 years agoupdate QSettings group methods documentation
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>
4 years agosession management requires X11 ICE extension in addition to SM
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>
4 years agoremove compatibility Qt::Modifier::UNICODE_ACCEL enum
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>
4 years agorewrite CMake modules to use pkg-config search first and fallback to path lookup
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>
4 years agoreplace 0 with Q_NULLPTR in QSharedDataPointer and QExplicitlySharedDataPointer
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>
4 years agoremove CPack related variables, CPack will not be supported
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>
4 years agooptimize QString::multiArg()
Ivailo Monev [Mon, 10 Feb 2020 14:18:58 +0000 (14:18 +0000)]
optimize QString::multiArg()

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoinclude qdbus in KATIE_TOOLS variable
Ivailo Monev [Sat, 8 Feb 2020 23:49:50 +0000 (23:49 +0000)]
include qdbus in KATIE_TOOLS variable

it was not included because it was not needed for the Qt4 compatibility
variables but can be used to solve https://github.com/fluxer/kdelibs/issues/3

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoQString benchmark build fix
Ivailo Monev [Sat, 8 Feb 2020 12:57:02 +0000 (12:57 +0000)]
QString benchmark build fix

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoRevert "set invalid characters count of state even on success from QIcuCodec::convert...
Ivailo Monev [Sat, 8 Feb 2020 00:29:26 +0000 (00:29 +0000)]
Revert "set invalid characters count of state even on success from QIcuCodec::convertFromUnicode() and QIcuCodec::convertToUnicode()"

This reverts commit 92a7dfc214c2f1642a4969d9fec077740b890e45.

4 years agoremove bogus QString benchmarks
Ivailo Monev [Fri, 7 Feb 2020 21:47:12 +0000 (21:47 +0000)]
remove bogus QString benchmarks

not benchmarking any of the public QString methods

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoset invalid characters count of state even on success from QIcuCodec::convertFromUnic...
Ivailo Monev [Fri, 7 Feb 2020 21:31:45 +0000 (21:31 +0000)]
set invalid characters count of state even on success from QIcuCodec::convertFromUnicode() and QIcuCodec::convertToUnicode()

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoremove unused QTextCodec::ConverterState::remainingChars member
Ivailo Monev [Fri, 7 Feb 2020 21:30:18 +0000 (21:30 +0000)]
remove unused QTextCodec::ConverterState::remainingChars member

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agouse custom table for grahpeme break in QUnicodeTables::graphemeBreak()
Ivailo Monev [Fri, 7 Feb 2020 21:04:47 +0000 (21:04 +0000)]
use custom table for grahpeme break in QUnicodeTables::graphemeBreak()

gets rid of the ICU requirement for the GUI component and since HarfBuzz
does not support all grapheme breaks makes it more optimal

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agouse constructor instead of cast in QChar::fromAscii()
Ivailo Monev [Fri, 7 Feb 2020 20:28:55 +0000 (22:28 +0200)]
use constructor instead of cast in QChar::fromAscii()

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoset compat definitions as component interface definitions
Ivailo Monev [Fri, 7 Feb 2020 13:25:29 +0000 (13:25 +0000)]
set compat definitions as component interface definitions

this fixes the QIcon::name() check done during libdbusmenu-qt build

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agofix regression since c7c7f41c2bb06e20442efce438daec22a19869ce
Ivailo Monev [Fri, 7 Feb 2020 00:37:31 +0000 (00:37 +0000)]
fix regression since c7c7f41c2bb06e20442efce438daec22a19869ce

fixes loading of icons via QIcon::fromTheme() and partially
libdbusmenu-qt DBusMenuExporterTest test

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agomake QIconLoader::key() public
Ivailo Monev [Thu, 6 Feb 2020 22:20:42 +0000 (22:20 +0000)]
make QIconLoader::key() public

it is virtual override and is used in QIcon data streaming operators

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoremove unused QIconLoaderEngine::hasIcon()
Ivailo Monev [Thu, 6 Feb 2020 21:21:05 +0000 (21:21 +0000)]
remove unused QIconLoaderEngine::hasIcon()

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoavoid temporaries in QIconTheme::QIconTheme()
Ivailo Monev [Thu, 6 Feb 2020 21:19:54 +0000 (21:19 +0000)]
avoid temporaries in QIconTheme::QIconTheme()

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoMerge branch 'master' of https://github.com/fluxer/katie
Ivailo Monev [Tue, 4 Feb 2020 17:26:24 +0000 (17:26 +0000)]
Merge branch 'master' of https://github.com/fluxer/katie

4 years agoadd custom type test case for QSettings
Ivailo Monev [Tue, 4 Feb 2020 16:22:33 +0000 (16:22 +0000)]
add custom type test case for QSettings

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years ago4.9.0-rc18 update
FredBezies [Tue, 4 Feb 2020 09:33:29 +0000 (10:33 +0100)]
4.9.0-rc18 update

Upgrade to new pre-release version.

4 years agocompiler warning fix
Ivailo Monev [Mon, 3 Feb 2020 23:31:32 +0000 (23:31 +0000)]
compiler warning fix

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoadd QXmlInputSource test
Ivailo Monev [Mon, 3 Feb 2020 23:08:44 +0000 (23:08 +0000)]
add QXmlInputSource test

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoadd QXml test
Ivailo Monev [Mon, 3 Feb 2020 22:00:32 +0000 (22:00 +0000)]
add QXml test

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agofix regression since 0199f108f14cba6282b8b2351e870c03816c1ab2 and cc7809a775b5a742b7c...
Ivailo Monev [Mon, 3 Feb 2020 21:59:41 +0000 (21:59 +0000)]
fix regression since 0199f108f14cba6282b8b2351e870c03816c1ab2 and cc7809a775b5a742b7c034080fa863e6a687406f

default fallback of QTextCodec::codecForUtfText() is Latin1 thus fallback
has to be specified explicitly

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoremove redundant extern reference declaration in qfontdatabase_x11_p header
Ivailo Monev [Mon, 3 Feb 2020 14:02:58 +0000 (14:02 +0000)]
remove redundant extern reference declaration in qfontdatabase_x11_p header

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoremove unused QApplicationPrivate::main_widget member
Ivailo Monev [Mon, 3 Feb 2020 14:02:30 +0000 (14:02 +0000)]
remove unused QApplicationPrivate::main_widget member

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoremove virtual specifiers from QEventDispatcherUNIXPrivate::initThreadWakeUp() and...
Ivailo Monev [Mon, 3 Feb 2020 13:38:24 +0000 (13:38 +0000)]
remove virtual specifiers from QEventDispatcherUNIXPrivate::initThreadWakeUp() and QEventDispatcherUNIXPrivate::processThreadWakeUp()

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agocorrect installation paths description
Ivailo Monev [Mon, 3 Feb 2020 01:34:19 +0000 (01:34 +0000)]
correct installation paths description

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agomark QTextBoundaryFinderPrivate break iterator member as mutable
Ivailo Monev [Mon, 3 Feb 2020 01:04:43 +0000 (01:04 +0000)]
mark QTextBoundaryFinderPrivate break iterator member as mutable

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoformat QTextBoundaryFinder for consistency
Ivailo Monev [Mon, 3 Feb 2020 00:48:26 +0000 (00:48 +0000)]
format QTextBoundaryFinder for consistency

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoset KATIE_<COMPONENT>_DEFINITIONS from KatieConfig CMake file and improve Qt4 compati...
Ivailo Monev [Sun, 2 Feb 2020 23:26:51 +0000 (23:26 +0000)]
set KATIE_<COMPONENT>_DEFINITIONS from KatieConfig CMake file and improve Qt4 compatibility

by setting up interface definitions and include directories for the
components GUI tests will work without any changes (-DQT_GUI_LIB will be
defined for them because they link to KtGui library).

this will also fix some corner cases, for an example when projects do not
use `add_definition(${QT_DEFINITIONS})` and/or
`include_directories(${QT_INCLUDES})` in their build system making porting
of other projects much easier

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoreimplement QSettings groups support
Ivailo Monev [Sat, 1 Feb 2020 17:24:17 +0000 (17:24 +0000)]
reimplement QSettings groups support

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoupdate README [ci skip]
Ivailo Monev [Sat, 1 Feb 2020 14:04:14 +0000 (14:04 +0000)]
update README [ci skip]

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoupdate README [ci skip]
Ivailo Monev [Sat, 1 Feb 2020 02:16:38 +0000 (02:16 +0000)]
update README [ci skip]

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoupdate translations
Ivailo Monev [Sat, 1 Feb 2020 02:09:56 +0000 (02:09 +0000)]
update translations

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoupdate URL TLDs table
Ivailo Monev [Sat, 1 Feb 2020 02:06:50 +0000 (02:06 +0000)]
update URL TLDs table

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoremove unused JSC::MasqueradesAsUndefined enum
Ivailo Monev [Fri, 31 Jan 2020 02:09:19 +0000 (02:09 +0000)]
remove unused JSC::MasqueradesAsUndefined enum

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agocombine if statements in QApplication::x11ProcessEvent()
Ivailo Monev [Thu, 30 Jan 2020 23:31:03 +0000 (23:31 +0000)]
combine if statements in QApplication::x11ProcessEvent()

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoindent some cases in QApplication::notify()
Ivailo Monev [Thu, 30 Jan 2020 23:12:36 +0000 (23:12 +0000)]
indent some cases in QApplication::notify()

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoinherit QEvent from QSpontaneKeyEvent
Ivailo Monev [Thu, 30 Jan 2020 23:06:36 +0000 (23:06 +0000)]
inherit QEvent from QSpontaneKeyEvent

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>