OSDN Git Service
Ivailo Monev [Sun, 12 Jun 2022 19:58:11 +0000 (22:58 +0300)]
throw JSC error when the regexp is multi-line
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 12 Jun 2022 18:49:35 +0000 (21:49 +0300)]
Revert "do not export QLocalePrivate class"
This reverts commit
b73d841ee1dbfae26776a3ac5487c15d4053c48a.
Ivailo Monev [Sun, 12 Jun 2022 18:19:32 +0000 (21:19 +0300)]
do not export QLocalePrivate class
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 12 Jun 2022 18:02:01 +0000 (21:02 +0300)]
remove redundant QLocale, QVariant, QTextStream and QTextStreamPrivate classes forward declaration in qlocale header
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 12 Jun 2022 18:01:09 +0000 (21:01 +0300)]
use correct type for the normalized type hash
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 12 Jun 2022 16:56:47 +0000 (19:56 +0300)]
better lookup for libraries which are full path
QFactoryLoader caches the full paths so any attempt to load plugin is
faster with this change
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 12 Jun 2022 16:53:29 +0000 (19:53 +0300)]
compiler warning fix
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 12 Jun 2022 15:24:51 +0000 (18:24 +0300)]
remove code for always false condition in QLibraryPrivate
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 12 Jun 2022 14:49:38 +0000 (17:49 +0300)]
append the plugins installation path to the application plugin paths from QCoreApplication::pluginPaths()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 12 Jun 2022 14:39:03 +0000 (17:39 +0300)]
check if the key passed to QFactoryLoader::instance() is valid
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 12 Jun 2022 14:30:59 +0000 (17:30 +0300)]
delete the private QLibrary data pointer if library is unloaded, swap it otherwise
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 12 Jun 2022 14:26:45 +0000 (17:26 +0300)]
drop QLibrary methods taking version as argument
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 12 Jun 2022 14:17:27 +0000 (17:17 +0300)]
do not store the plugin version as QLibraryPrivate member
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 12 Jun 2022 14:05:38 +0000 (17:05 +0300)]
remove declaration of non-existing QLibraryPrivate::release() method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 12 Jun 2022 14:05:04 +0000 (17:05 +0300)]
fix possible use-after-free in qt_unix_query() function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 12 Jun 2022 06:55:33 +0000 (09:55 +0300)]
do not store the section table index in temporary
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 12 Jun 2022 06:54:21 +0000 (09:54 +0300)]
QPluginLoader documentation update
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 12 Jun 2022 06:48:18 +0000 (09:48 +0300)]
remove unused header inclusions
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 12 Jun 2022 06:47:26 +0000 (09:47 +0300)]
typo
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 12 Jun 2022 06:32:16 +0000 (09:32 +0300)]
check if the plugin is actually a plugin from QPluginLoader::instance()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 12 Jun 2022 06:22:23 +0000 (09:22 +0300)]
reuse QLibrary instances that are not unloaded
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Ivailo Monev [Sat, 11 Jun 2022 01:03:03 +0000 (04:03 +0300)]
de-duplicate code
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
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>
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>
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>
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>
Ivailo Monev [Fri, 10 Jun 2022 21:29:09 +0000 (00:29 +0300)]
de-duplicate code
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 10 Jun 2022 21:01:19 +0000 (00:01 +0300)]
QLocale documentation update
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Ivailo Monev [Fri, 10 Jun 2022 03:48:56 +0000 (06:48 +0300)]
initialize QScriptAnalysis members
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
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>
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>
Ivailo Monev [Thu, 9 Jun 2022 18:24:53 +0000 (21:24 +0300)]
de-duplicate code
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
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>
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>
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>
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>
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>
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>
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>
Ivailo Monev [Thu, 9 Jun 2022 02:22:03 +0000 (05:22 +0300)]
someone's typo
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
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>
Ivailo Monev [Wed, 8 Jun 2022 22:43:00 +0000 (01:43 +0300)]
effectively revert
42c06ab3683f2a80e9587f0e1c68e76214141960
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
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>
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>
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>
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>
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>
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>
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>
Ivailo Monev [Wed, 8 Jun 2022 16:09:43 +0000 (19:09 +0300)]
initialize QRegionSpan members
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>