OSDN Git Service

kde/Katie.git
2 years agoremove now redundant factory interface classes
Ivailo Monev [Sun, 12 Jun 2022 05:48:48 +0000 (08:48 +0300)]
remove now redundant factory interface classes

the most efficient way to parse plugins metadata (such as keys) is to not
do it and (ab)use the plugin base name as the plugin key

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoessentially QFactoryLoader and QLibrary rewrite
Ivailo Monev [Sun, 12 Jun 2022 05:17:44 +0000 (08:17 +0300)]
essentially QFactoryLoader and QLibrary rewrite

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoappend paths from LD_LIBRARY_PATH to the application library paths variable
Ivailo Monev [Sun, 12 Jun 2022 01:37:27 +0000 (04:37 +0300)]
append paths from LD_LIBRARY_PATH to the application library paths variable

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agodo not export QGraphicsEffectPrivate class
Ivailo Monev [Sat, 11 Jun 2022 20:57:12 +0000 (23:57 +0300)]
do not export QGraphicsEffectPrivate class

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoexport QGraphicsEffectSource class only for tests
Ivailo Monev [Sat, 11 Jun 2022 20:57:00 +0000 (23:57 +0300)]
export QGraphicsEffectSource class only for tests

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agodepth of QImage objects passed to qt_grayscale() should be 32
Ivailo Monev [Sat, 11 Jun 2022 20:42:27 +0000 (23:42 +0300)]
depth of QImage objects passed to qt_grayscale() should be 32

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoQSettings does not need QObject as base class
Ivailo Monev [Sat, 11 Jun 2022 19:57:30 +0000 (22:57 +0300)]
QSettings does not need QObject as base class

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoQFactoryLoader does not need QObject as base class
Ivailo Monev [Sat, 11 Jun 2022 19:40:02 +0000 (22:40 +0300)]
QFactoryLoader does not need QObject as base class

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agorename qfcvt() and qecvt() functions
Ivailo Monev [Sat, 11 Jun 2022 15:36:22 +0000 (18:36 +0300)]
rename qfcvt() and qecvt() functions

apparently there are non-standard qfcvt() and qecvt() functions that
behave like fcvt() and ecvt() except that they take long double
argument

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agomark the invalid day and month name queries in QLocale as unlikely
Ivailo Monev [Sat, 11 Jun 2022 15:27:40 +0000 (18:27 +0300)]
mark the invalid day and month name queries in QLocale as unlikely

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoQCalendarWidget first day of the week and weekend days shall be determined by the...
Ivailo Monev [Sat, 11 Jun 2022 13:58:00 +0000 (16:58 +0300)]
QCalendarWidget first day of the week and weekend days shall be determined by the widget locale

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoremove unused QLocale list patterns related method
Ivailo Monev [Sat, 11 Jun 2022 05:44:13 +0000 (08:44 +0300)]
remove unused QLocale list patterns related method

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoresize the offset vector to the captured texts size
Ivailo Monev [Sat, 11 Jun 2022 05:03:11 +0000 (08:03 +0300)]
resize the offset vector to the captured texts size

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agomatch parts of the string too from JSC regex
Ivailo Monev [Sat, 11 Jun 2022 04:22:10 +0000 (07:22 +0300)]
match parts of the string too from JSC regex

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agooops, fix the match length for matches other than the first
Ivailo Monev [Sat, 11 Jun 2022 04:10:52 +0000 (07:10 +0300)]
oops, fix the match length for matches other than the first

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agode-duplicate code
Ivailo Monev [Sat, 11 Jun 2022 01:03:03 +0000 (04:03 +0300)]
de-duplicate code

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoinitialize QApplicationPrivate::session_manager member
Ivailo Monev [Sat, 11 Jun 2022 00:56:15 +0000 (03:56 +0300)]
initialize QApplicationPrivate::session_manager member

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoremove unused QLocale quotation related methods and enum
Ivailo Monev [Sat, 11 Jun 2022 00:32:45 +0000 (03:32 +0300)]
remove unused QLocale quotation related methods and enum

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoreplace std::regex with QRegExp
Ivailo Monev [Fri, 10 Jun 2022 23:20:32 +0000 (02:20 +0300)]
replace std::regex with QRegExp

here comes the solution to std::regex randomly throwing exceptions
(3 different kind of exceptions but almost always not the same as
the last time it does for the same pattern)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoQByteArray::toLower() and QByteArray::toUpper() optimization
Ivailo Monev [Fri, 10 Jun 2022 21:52:17 +0000 (00:52 +0300)]
QByteArray::toLower() and QByteArray::toUpper() optimization

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agode-duplicate code
Ivailo Monev [Fri, 10 Jun 2022 21:29:09 +0000 (00:29 +0300)]
de-duplicate code

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoQLocale documentation update
Ivailo Monev [Fri, 10 Jun 2022 21:01:19 +0000 (00:01 +0300)]
QLocale documentation update

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoBCP 47 locale names are sequence of US-ASCII characters
Ivailo Monev [Fri, 10 Jun 2022 20:40:57 +0000 (23:40 +0300)]
BCP 47 locale names are sequence of US-ASCII characters

for reference:
https://www.rfc-editor.org/rfc/bcp/bcp47.txt

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoremove unused QLocale currency related methods and enum
Ivailo Monev [Fri, 10 Jun 2022 20:18:59 +0000 (23:18 +0300)]
remove unused QLocale currency related methods and enum

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agouse proper containers instead of converting
Ivailo Monev [Fri, 10 Jun 2022 18:36:57 +0000 (21:36 +0300)]
use proper containers instead of converting

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agouse QStdVector<T> instead of QList<T> in QTcpServerPrivate
Ivailo Monev [Fri, 10 Jun 2022 17:10:32 +0000 (20:10 +0300)]
use QStdVector<T> instead of QList<T> in QTcpServerPrivate

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agouse QStdVector<T> in QScriptValueIterator
Ivailo Monev [Fri, 10 Jun 2022 17:02:51 +0000 (20:02 +0300)]
use QStdVector<T> in QScriptValueIterator

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agobuild fix for the case when QT_STRICT_ITERATORS is not defined
Ivailo Monev [Fri, 10 Jun 2022 16:55:56 +0000 (19:55 +0300)]
build fix for the case when QT_STRICT_ITERATORS is not defined

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agobuild fix for the case when QT_STRICT_ITERATORS is defined
Ivailo Monev [Fri, 10 Jun 2022 16:16:39 +0000 (19:16 +0300)]
build fix for the case when QT_STRICT_ITERATORS is defined

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agobuild fix for the case when QT_STRICT_ITERATORS is defined
Ivailo Monev [Fri, 10 Jun 2022 15:43:11 +0000 (18:43 +0300)]
build fix for the case when QT_STRICT_ITERATORS is defined

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoinclude now required system list headerin QStringList benchmark source file
Ivailo Monev [Fri, 10 Jun 2022 15:05:22 +0000 (18:05 +0300)]
include now required system list headerin QStringList benchmark source file

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agodrop methods to convert from and to std::list<T> and std::vector<T>
Ivailo Monev [Fri, 10 Jun 2022 13:48:20 +0000 (16:48 +0300)]
drop methods to convert from and to std::list<T> and std::vector<T>

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoremove now redundant class-memaccess compiler warning override
Ivailo Monev [Fri, 10 Jun 2022 13:40:41 +0000 (16:40 +0300)]
remove now redundant class-memaccess compiler warning override

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agobuild fix for the case when QT_NO_TRANSLATION is defined
Ivailo Monev [Fri, 10 Jun 2022 13:09:24 +0000 (16:09 +0300)]
build fix for the case when QT_NO_TRANSLATION is defined

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoremove code for always false condition
Ivailo Monev [Fri, 10 Jun 2022 04:48:44 +0000 (07:48 +0300)]
remove code for always false condition

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoinitialize QScriptAnalysis members
Ivailo Monev [Fri, 10 Jun 2022 03:48:56 +0000 (06:48 +0300)]
initialize QScriptAnalysis members

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agocall constructors when creating types from QVarLengthArray<T> and QVector<T>
Ivailo Monev [Thu, 9 Jun 2022 23:17:29 +0000 (02:17 +0300)]
call constructors when creating types from QVarLengthArray<T> and QVector<T>

lots of potential for gray hair should be dismissed with this change

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agodo not covert the intersection set to QList<T> and then to QSet<T>
Ivailo Monev [Thu, 9 Jun 2022 22:29:04 +0000 (01:29 +0300)]
do not covert the intersection set to QList<T> and then to QSet<T>

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agode-duplicate code
Ivailo Monev [Thu, 9 Jun 2022 18:24:53 +0000 (21:24 +0300)]
de-duplicate code

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agodo not use global static settings object
Ivailo Monev [Thu, 9 Jun 2022 17:03:40 +0000 (20:03 +0300)]
do not use global static settings object

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoensure pointers created via QMetaType::construct() are not randomized
Ivailo Monev [Thu, 9 Jun 2022 16:26:40 +0000 (19:26 +0300)]
ensure pointers created via QMetaType::construct() are not randomized

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agomark the no type name case in QMetaType::unregisterType() as unlikely
Ivailo Monev [Thu, 9 Jun 2022 15:45:00 +0000 (18:45 +0300)]
mark the no type name case in QMetaType::unregisterType() as unlikely

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agomark the no type name, destructor or constructor cases in QMetaType as unlikely
Ivailo Monev [Thu, 9 Jun 2022 15:40:54 +0000 (18:40 +0300)]
mark the no type name, destructor or constructor cases in QMetaType as unlikely

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoremove redundant qreal meta type registration in QTimeLine test case
Ivailo Monev [Thu, 9 Jun 2022 04:41:51 +0000 (07:41 +0300)]
remove redundant qreal meta type registration in QTimeLine test case

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoremove redundant qreal meta type registration in QTimeLine test case
Ivailo Monev [Thu, 9 Jun 2022 04:40:46 +0000 (07:40 +0300)]
remove redundant qreal meta type registration in QTimeLine test case

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoremove QTimeLine::CurveShape enum, property setter and getter for it
Ivailo Monev [Thu, 9 Jun 2022 02:51:34 +0000 (05:51 +0300)]
remove QTimeLine::CurveShape enum, property setter and getter for it

upstream commit:
https://github.com/qt/qtbase/commit/072fb7de513c5359fc3a3b7da23e3a6fe6c58bf7

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agosomeone's typo
Ivailo Monev [Thu, 9 Jun 2022 02:22:03 +0000 (05:22 +0300)]
someone's typo

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agodeclare builtin meta types without namespace switching
Ivailo Monev [Thu, 9 Jun 2022 00:07:42 +0000 (03:07 +0300)]
declare builtin meta types without namespace switching

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoeffectively revert 42c06ab3683f2a80e9587f0e1c68e76214141960
Ivailo Monev [Wed, 8 Jun 2022 22:43:00 +0000 (01:43 +0300)]
effectively revert 42c06ab3683f2a80e9587f0e1c68e76214141960

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoan incomplete icon theme
Ivailo Monev [Wed, 8 Jun 2022 21:45:32 +0000 (00:45 +0300)]
an incomplete icon theme

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agowhat icon theme is installed in AppVeyor enrvironment?
Ivailo Monev [Wed, 8 Jun 2022 20:32:44 +0000 (23:32 +0300)]
what icon theme is installed in AppVeyor enrvironment?

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agobetter system icon theme detection
Ivailo Monev [Wed, 8 Jun 2022 19:03:36 +0000 (22:03 +0300)]
better system icon theme detection

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agomark fatal cases as unlikely
Ivailo Monev [Wed, 8 Jun 2022 18:21:41 +0000 (21:21 +0300)]
mark fatal cases as unlikely

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoremove unused QVariant::Handler members [ci reset]
Ivailo Monev [Wed, 8 Jun 2022 16:44:37 +0000 (19:44 +0300)]
remove unused QVariant::Handler members [ci reset]

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agocall FcFini() only when build for debugging
Ivailo Monev [Wed, 8 Jun 2022 16:32:10 +0000 (19:32 +0300)]
call FcFini() only when build for debugging

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoQFixed is not exactly POD type
Ivailo Monev [Wed, 8 Jun 2022 16:10:00 +0000 (19:10 +0300)]
QFixed is not exactly POD type

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoinitialize QRegionSpan members
Ivailo Monev [Wed, 8 Jun 2022 16:09:43 +0000 (19:09 +0300)]
initialize QRegionSpan members

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoglyph_metrics_t, QGlyphJustification, QScriptItem and QScriptLine are not exactly...
Ivailo Monev [Wed, 8 Jun 2022 16:02:23 +0000 (19:02 +0300)]
glyph_metrics_t, QGlyphJustification, QScriptItem and QScriptLine are not exactly POD types

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agopre-allocate one QScriptItem object
Ivailo Monev [Wed, 8 Jun 2022 15:55:55 +0000 (18:55 +0300)]
pre-allocate one QScriptItem object

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agouse QVarLengthArray<T> instead of QVector<T> in text engine classes
Ivailo Monev [Wed, 8 Jun 2022 15:35:44 +0000 (18:35 +0300)]
use QVarLengthArray<T> instead of QVector<T> in text engine classes

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoQScriptItem does not have move-constructor
Ivailo Monev [Wed, 8 Jun 2022 15:13:42 +0000 (18:13 +0300)]
QScriptItem does not have move-constructor

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoQRegExp QDataStream streaming operator optimization
Ivailo Monev [Wed, 8 Jun 2022 14:07:08 +0000 (17:07 +0300)]
QRegExp QDataStream streaming operator optimization

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoQVariant rewrite round 2
Ivailo Monev [Wed, 8 Jun 2022 03:32:48 +0000 (06:32 +0300)]
QVariant rewrite round 2

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoensure the automatically picked up system icon theme is not cursors theme
Ivailo Monev [Wed, 8 Jun 2022 01:22:09 +0000 (04:22 +0300)]
ensure the automatically picked up system icon theme is not cursors theme

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoskip the QFileIconProvider::iconType() test case if there is no system icon theme
Ivailo Monev [Wed, 8 Jun 2022 01:12:24 +0000 (04:12 +0300)]
skip the QFileIconProvider::iconType() test case if there is no system icon theme

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoensure invalid QVariant objects are not casted
Ivailo Monev [Wed, 8 Jun 2022 00:43:15 +0000 (03:43 +0300)]
ensure invalid QVariant objects are not casted

undetected by clang analysis but it is null void pointer cast to integers
and boolean which can cause crash, the only reason the follow code does not
crash:
int main()
{
    QVariant v;
    bool ok = false;
    qDebug() << v.toInt(&ok);
    return 0;
}

is because there are QVariant type checks before the address is accessed

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoplug fonconfig memory leaks
Ivailo Monev [Tue, 7 Jun 2022 20:53:28 +0000 (23:53 +0300)]
plug fonconfig memory leaks

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agouse folder-remote icon for QStyle::SP_DriveNetIcon
Ivailo Monev [Tue, 7 Jun 2022 19:38:36 +0000 (22:38 +0300)]
use folder-remote icon for QStyle::SP_DriveNetIcon

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoimplement methods to get and set plugin paths
Ivailo Monev [Tue, 7 Jun 2022 19:28:07 +0000 (22:28 +0300)]
implement methods to get and set plugin paths

for reference:
https://github.com/fluxer/katie/commit/03e46bb6d458ab0318dea6c839a63cec59ee6bbe

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoQFileIconProvider::iconInfo() test case now requires system icon theme
Ivailo Monev [Tue, 7 Jun 2022 16:45:01 +0000 (19:45 +0300)]
QFileIconProvider::iconInfo() test case now requires system icon theme

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoremove unused style images
Ivailo Monev [Tue, 7 Jun 2022 16:04:48 +0000 (19:04 +0300)]
remove unused style images

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agouse icons from the system icon theme
Ivailo Monev [Tue, 7 Jun 2022 15:51:57 +0000 (18:51 +0300)]
use icons from the system icon theme

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoQTanslator no longer needs QObject as base class
Ivailo Monev [Tue, 7 Jun 2022 14:36:54 +0000 (17:36 +0300)]
QTanslator no longer needs QObject as base class

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agodo not copy the variant before checking if it can be converted in QVariant::canConvert()
Ivailo Monev [Tue, 7 Jun 2022 13:11:48 +0000 (16:11 +0300)]
do not copy the variant before checking if it can be converted in QVariant::canConvert()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoremove now redundant compareNumericMetaType<T>() template
Ivailo Monev [Tue, 7 Jun 2022 13:07:34 +0000 (16:07 +0300)]
remove now redundant compareNumericMetaType<T>() template

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoreplace QVariant::cmp() method with its body
Ivailo Monev [Tue, 7 Jun 2022 00:58:34 +0000 (03:58 +0300)]
replace QVariant::cmp() method with its body

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoessentially QVariant rewrite
Ivailo Monev [Mon, 6 Jun 2022 22:33:49 +0000 (01:33 +0300)]
essentially QVariant rewrite

the whole change is optimization around reference counting (QString,
QImage, etc. are already reference counted), beware QVariant::data()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoremove unused parseNumberTriplet() function
Ivailo Monev [Mon, 6 Jun 2022 15:55:40 +0000 (18:55 +0300)]
remove unused parseNumberTriplet() function

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoassume QML_FLICK_OVERSHOOT, QML_FLICK_SAMPLEBUFFER, QML_FLICK_DISCARDSAMPLES, QML_FLI...
Ivailo Monev [Mon, 6 Jun 2022 14:44:44 +0000 (17:44 +0300)]
assume QML_FLICK_OVERSHOOT, QML_FLICK_SAMPLEBUFFER, QML_FLICK_DISCARDSAMPLES, QML_FLICK_DEFAULTMAXVELOCITY, QML_FLICK_DEFAULTDECELERATION and QML_FLICK_OVERSHOOTFRICTION are not defined

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agode-duplicate QML_FLICK_SNAPONETHRESHOLD definition
Ivailo Monev [Mon, 6 Jun 2022 14:43:27 +0000 (17:43 +0300)]
de-duplicate QML_FLICK_SNAPONETHRESHOLD definition

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agocast the private brush data pointer before deleting it from the QBrush assingment...
Ivailo Monev [Mon, 6 Jun 2022 13:26:26 +0000 (16:26 +0300)]
cast the private brush data pointer before deleting it from the QBrush assingment operator

fixes new-delete-type-mismatch

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agooptimize QEasingCurve assignment from other QEasingCurve object
Ivailo Monev [Mon, 6 Jun 2022 10:20:06 +0000 (13:20 +0300)]
optimize QEasingCurve assignment from other QEasingCurve object

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoprefix the warning message with the class name in QEasingCurve::setCustomType()
Ivailo Monev [Mon, 6 Jun 2022 10:05:29 +0000 (13:05 +0300)]
prefix the warning message with the class name in QEasingCurve::setCustomType()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agorename getEnvName() and getEnvListName() functions to getEnv() and getEnvList()
Ivailo Monev [Mon, 6 Jun 2022 09:52:05 +0000 (12:52 +0300)]
rename getEnvName() and getEnvListName() functions to getEnv() and getEnvList()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agouse getEnvListName() function in QStandardPaths::findExecutable()
Ivailo Monev [Mon, 6 Jun 2022 09:50:25 +0000 (12:50 +0300)]
use getEnvListName() function in QStandardPaths::findExecutable()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agofill XDG dirs map on demand
Ivailo Monev [Mon, 6 Jun 2022 09:49:55 +0000 (12:49 +0300)]
fill XDG dirs map on demand

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agooptimize query of standard paths that require config read
Ivailo Monev [Mon, 6 Jun 2022 00:02:32 +0000 (03:02 +0300)]
optimize query of standard paths that require config read

could be done via lockless global static but then the chances of
QStandardPaths returning values that are not set in the config increase because
the config may change at any time after the global static is constructed

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agomark warning cases in declarative and scripttools components as unlikely
Ivailo Monev [Sun, 5 Jun 2022 17:41:02 +0000 (20:41 +0300)]
mark warning cases in declarative and scripttools components as unlikely

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoremove warning about 4.7 imports
Ivailo Monev [Sun, 5 Jun 2022 17:34:07 +0000 (20:34 +0300)]
remove warning about 4.7 imports

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agomark warning cases in dbus, network, script, svg, uitools and xml components as unlikely
Ivailo Monev [Sun, 5 Jun 2022 17:21:00 +0000 (20:21 +0300)]
mark warning cases in dbus, network, script, svg, uitools and xml components as unlikely

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agobetter QDebug streaming operator for QEasingCurve
Ivailo Monev [Sun, 5 Jun 2022 15:34:29 +0000 (18:34 +0300)]
better QDebug streaming operator for QEasingCurve

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoinitialize QEasingCurve function pointer to null
Ivailo Monev [Sun, 5 Jun 2022 15:33:00 +0000 (18:33 +0300)]
initialize QEasingCurve function pointer to null

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoinitialize QDBusMetaObject::cached member
Ivailo Monev [Sun, 5 Jun 2022 14:22:40 +0000 (17:22 +0300)]
initialize QDBusMetaObject::cached member

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoessentially QEasingCurve rewrite
Ivailo Monev [Sun, 5 Jun 2022 13:42:46 +0000 (16:42 +0300)]
essentially QEasingCurve rewrite

plugs leaks and simplifies it

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoplug QBoxLayout test leaks
Ivailo Monev [Sun, 5 Jun 2022 12:40:57 +0000 (15:40 +0300)]
plug QBoxLayout test leaks

upstream commit:
https://github.com/qt/qtbase/commit/e849e2c16297b3e50fa16c77235a1b3c75f84049

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agocast the private brush data pointer before deleting it
Ivailo Monev [Sun, 5 Jun 2022 10:58:57 +0000 (13:58 +0300)]
cast the private brush data pointer before deleting it

fixes new-delete-type-mismatch

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agowarn that the KAT hash algorithm was not designed for generic use case
Ivailo Monev [Sat, 4 Jun 2022 22:22:43 +0000 (01:22 +0300)]
warn that the KAT hash algorithm was not designed for generic use case

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agofix heap-use-after-free in QDBusAbstractAdaptor test
Ivailo Monev [Sat, 4 Jun 2022 22:08:51 +0000 (01:08 +0300)]
fix heap-use-after-free in QDBusAbstractAdaptor test

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoreturn default QPainterPath object in case rectangles vector is empty in qt_regionToP...
Ivailo Monev [Sat, 4 Jun 2022 22:02:17 +0000 (01:02 +0300)]
return default QPainterPath object in case rectangles vector is empty in qt_regionToPath() function

fixes assert when build for debugging

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agostore the ASCII-converted strings in JSC::RegExp
Ivailo Monev [Sat, 4 Jun 2022 21:29:23 +0000 (00:29 +0300)]
store the ASCII-converted strings in JSC::RegExp

fixes stack-buffer-overflow

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>