OSDN Git Service
Ivailo Monev [Fri, 16 Oct 2020 13:52:21 +0000 (16:52 +0300)]
remove redundant const_cast<T>() in QPainter::drawTextItem()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 16 Oct 2020 13:52:01 +0000 (16:52 +0300)]
convert fetchTransformedBilinear_pixelBounds<T>() to function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 16 Oct 2020 13:51:31 +0000 (16:51 +0300)]
rename qt_fetchUntransformed<T>() for consistency
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Thu, 15 Oct 2020 19:09:21 +0000 (22:09 +0300)]
rename variables in qt_init() for consistency
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Thu, 15 Oct 2020 19:09:01 +0000 (22:09 +0300)]
remove unused QFramePrivate::frect member
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Thu, 15 Oct 2020 19:08:02 +0000 (22:08 +0300)]
inline elapsedAndRestart() function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Tue, 13 Oct 2020 21:44:52 +0000 (00:44 +0300)]
include all X11 extensions used in USE_XORG variable in FreeBSD package file
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 12 Oct 2020 23:52:50 +0000 (02:52 +0300)]
remove redundant __has_extension definition in qglobal header
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 12 Oct 2020 11:19:13 +0000 (14:19 +0300)]
remove unused and internal QRasterPaintEngine methods
note that QPainter::clipBoundingRect() exists but it is not virtual
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 12 Oct 2020 10:58:52 +0000 (13:58 +0300)]
remove mac and windows leftovers
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 12 Oct 2020 10:32:26 +0000 (13:32 +0300)]
remove redundant QPainter::PixmapFragment class and related functionality
since there is no transformation there is a performance penalty for using
it in QDeclarativeParticlesPainter
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 12 Oct 2020 09:35:10 +0000 (12:35 +0300)]
use foreach() for iteration in QRasterWindowSurface::prepareBuffer()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 12 Oct 2020 09:12:28 +0000 (12:12 +0300)]
avoid QRegion assignment in QWidgetPrivate::repaint_sys()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 12 Oct 2020 09:04:39 +0000 (12:04 +0300)]
remove declarations of non-existing QWidget methods
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 12 Oct 2020 09:04:08 +0000 (12:04 +0300)]
remove redundant return statement in QCursorData::update()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 12 Oct 2020 08:36:58 +0000 (11:36 +0300)]
avoid QPixmap construct in QRasterWindowSurface::flush()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 12 Oct 2020 08:28:08 +0000 (11:28 +0300)]
make it possible to disable XINERAMA X11 extension at runtime
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 12 Oct 2020 07:34:24 +0000 (10:34 +0300)]
merge if with switch statement in QX11PaintEngine::updateClipRegion_dev()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 12 Oct 2020 07:19:08 +0000 (10:19 +0300)]
optimize QX11PaintEngine::updateState()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 11 Oct 2020 05:58:41 +0000 (08:58 +0300)]
minor code de-duplication
upstream commit:
https://github.com/qt/qtbase/commit/
3a333f2d92a44feba017c7951049e89adbbda686
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 11 Oct 2020 05:38:23 +0000 (08:38 +0300)]
remove unused and internal QAccessibleToolButton::actionCount()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 11 Oct 2020 05:23:23 +0000 (08:23 +0300)]
remove unused variable in normalizeTypeInternal()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 11 Oct 2020 04:47:08 +0000 (07:47 +0300)]
rewrite INV_PREMUL() as static function to cache alpha value
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 10 Oct 2020 09:54:30 +0000 (12:54 +0300)]
enable opentype harfbuzz support
there is no note left why it was disabled
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 10 Oct 2020 09:34:46 +0000 (12:34 +0300)]
always use qreal as type for QGenericMatrix
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 9 Oct 2020 11:31:29 +0000 (14:31 +0300)]
remove redundant qreal constructs in QQuaternion::slerp()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 9 Oct 2020 11:31:04 +0000 (14:31 +0300)]
remove unused QUnifiedTimer::runningAnimationCount() method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 9 Oct 2020 11:02:36 +0000 (14:02 +0300)]
remove redundant QUnifiedTimer::instance() argument
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 9 Oct 2020 07:51:55 +0000 (10:51 +0300)]
update URL TLDs
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 9 Oct 2020 07:47:44 +0000 (10:47 +0300)]
optimize normalizeTypeInternal() QMetaObject helper function
there should be QByteArray::startsWith() overload that takes size argument
for this purpose
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Thu, 8 Oct 2020 13:32:33 +0000 (16:32 +0300)]
remove redundant empty string checks in QCoreApplication::libraryPaths() and QCoreApplication::addLibraryPath()
if the path is empty, the canonical path is also empty
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Thu, 8 Oct 2020 09:55:46 +0000 (12:55 +0300)]
require Linux v2.6.27+ and glibc v2.9+
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Thu, 8 Oct 2020 09:46:00 +0000 (12:46 +0300)]
use QT_OFF_T where appropriate
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 4 Oct 2020 07:37:26 +0000 (10:37 +0300)]
remove redundant type information for XChar2b
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 4 Oct 2020 03:10:26 +0000 (06:10 +0300)]
use non-detaching methods in expblur() function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 4 Oct 2020 03:09:46 +0000 (06:09 +0300)]
turn condition into assert in qt_blurImage() function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 3 Oct 2020 21:21:28 +0000 (00:21 +0300)]
optimize QTransform::TxRotate, QTransform::TxShear and QTransform::TxProject mapping
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 3 Oct 2020 21:01:09 +0000 (00:01 +0300)]
QT_MOC_CPP is never defined so remove checks for it in qglobal header
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 3 Oct 2020 17:27:04 +0000 (20:27 +0300)]
remove redundant quint32p drawing helper class
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 2 Oct 2020 00:00:54 +0000 (03:00 +0300)]
remove redundant xpmHash() function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Thu, 1 Oct 2020 23:42:14 +0000 (02:42 +0300)]
optimize qt_rectfill_quint32()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Thu, 1 Oct 2020 23:42:00 +0000 (02:42 +0300)]
remove redundant qt_memfill<T, T>() drawing helper
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 27 Sep 2020 18:37:27 +0000 (21:37 +0300)]
re-use variable in destStoreARGB32() drawing helper
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 27 Sep 2020 18:34:31 +0000 (21:34 +0300)]
revert to normal RCC execution
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 13 Sep 2020 14:14:28 +0000 (17:14 +0300)]
remove unused QString::normalized() overload
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 13 Sep 2020 11:03:29 +0000 (14:03 +0300)]
instruct ltrace to demangle symbol names
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 13 Sep 2020 10:37:40 +0000 (13:37 +0300)]
remove unused QWindowsStyle::reserved member
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 12 Sep 2020 18:42:00 +0000 (21:42 +0300)]
call QListData::freeData() instead of plain free() in QList methods
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 12 Sep 2020 18:11:59 +0000 (21:11 +0300)]
trace RCC execution
Ivailo Monev [Sat, 12 Sep 2020 17:35:15 +0000 (20:35 +0300)]
printf() before rcc actions in attempt to debug CodeQL hang
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 12 Sep 2020 17:31:38 +0000 (20:31 +0300)]
use foreach() for iteration in runcRcc()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 12 Sep 2020 13:59:32 +0000 (16:59 +0300)]
use const-ref in RCC dumpRecursive()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 12 Sep 2020 13:59:07 +0000 (16:59 +0300)]
mark digits variable in RCCResourceLibrary::writeHex() as static
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 11 Sep 2020 15:38:57 +0000 (18:38 +0300)]
optimize QXmlUtils::isEncName()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 11 Sep 2020 15:02:38 +0000 (18:02 +0300)]
use QLatin1String instead of QString for static RCC strings
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 11 Sep 2020 14:27:28 +0000 (17:27 +0300)]
Update codeql-analysis.yml
Ivailo Monev [Fri, 11 Sep 2020 14:25:09 +0000 (17:25 +0300)]
Update codeql-analysis.yml
Ivailo Monev [Thu, 10 Sep 2020 20:44:39 +0000 (23:44 +0300)]
Create codeql-analysis.yml
Ivailo Monev [Fri, 21 Aug 2020 15:05:53 +0000 (18:05 +0300)]
correct signature of QCoreApplication::translate() for QT_NO_TRANSLATION case
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 21 Aug 2020 03:00:20 +0000 (06:00 +0300)]
QT_NO_NAS should always be defined now
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 21 Aug 2020 00:15:46 +0000 (03:15 +0300)]
drop obscure (24-bit) QImage formats support
Ivailo Monev [Thu, 20 Aug 2020 21:15:14 +0000 (00:15 +0300)]
avoid temporaries in some composition functions
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Thu, 20 Aug 2020 20:05:13 +0000 (23:05 +0300)]
compiler warning fixes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Thu, 20 Aug 2020 02:57:35 +0000 (05:57 +0300)]
compiler warnings fixes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Thu, 20 Aug 2020 02:20:05 +0000 (05:20 +0300)]
do not print warning messages from QTextCodec and QIcuCodec
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 19 Aug 2020 19:06:25 +0000 (22:06 +0300)]
regenerate javascriptcore grammar
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 19 Aug 2020 18:12:11 +0000 (21:12 +0300)]
replace generated code from unknown source with string comparison
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 19 Aug 2020 18:04:04 +0000 (21:04 +0300)]
remove code for always false condition in QSvgSwitch::draw()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 19 Aug 2020 14:56:15 +0000 (17:56 +0300)]
expect IPv4 address if IPv6 is not available in QHostInfo reverse lookup test case
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 19 Aug 2020 14:54:36 +0000 (17:54 +0300)]
indent qt_plastique_draw_gradient()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 19 Aug 2020 13:49:16 +0000 (16:49 +0300)]
remove unused QCommandLinkButtonPrivate::mergedColors()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 19 Aug 2020 13:41:37 +0000 (16:41 +0300)]
mark QColor warning cases as unlikely
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 19 Aug 2020 13:36:46 +0000 (16:36 +0300)]
avoid temporary in QColor::setAlphaF()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 19 Aug 2020 03:02:46 +0000 (06:02 +0300)]
turn condition into assert in qt_get_hex_rgb()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 19 Aug 2020 02:52:52 +0000 (05:52 +0300)]
optimize QColor::isValidColor()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Tue, 18 Aug 2020 21:12:47 +0000 (00:12 +0300)]
fallback to default quality in PNG write handler
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Tue, 18 Aug 2020 20:35:37 +0000 (23:35 +0300)]
add document type and version tag to resource files
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Tue, 18 Aug 2020 20:22:25 +0000 (23:22 +0300)]
escape dash in regular expression in genlocale script [ci skip]
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Tue, 18 Aug 2020 20:08:03 +0000 (23:08 +0300)]
remove unused QTestLogger methods and members
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Tue, 18 Aug 2020 19:20:44 +0000 (22:20 +0300)]
remove redundant quality limit check in QPNGImageWriter::writeImage()
already mapped from 0-100 to 0-9 in QPngHandler::write()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Tue, 18 Aug 2020 19:19:52 +0000 (22:19 +0300)]
make gamma argument of setup_qt() function required
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 16 Aug 2020 01:11:21 +0000 (04:11 +0300)]
drop workaround for malformed PNGs
while at it, read the data in single pass as is done in the TIFF image
format handler for an example
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 15 Aug 2020 17:26:20 +0000 (20:26 +0300)]
mark easing helper functions as inline
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 15 Aug 2020 17:17:35 +0000 (20:17 +0300)]
remove redundant easeInElastic_helper() argument
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 15 Aug 2020 17:03:25 +0000 (20:03 +0300)]
remove unused easeOutElastic_helper() arguments
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 15 Aug 2020 17:03:03 +0000 (20:03 +0300)]
replace QDBusMarshaller::close() with its body
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 15 Aug 2020 13:11:20 +0000 (16:11 +0300)]
remove unused and redundant test module methods
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 15 Aug 2020 06:59:48 +0000 (09:59 +0300)]
avoid temporaries in QTextDocument::adjustSize(), printPage() and QTextHtmlExporter constructor
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 15 Aug 2020 05:26:12 +0000 (08:26 +0300)]
correct test message type output indentation
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 15 Aug 2020 05:16:56 +0000 (08:16 +0300)]
correct test incident output indentation
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 15 Aug 2020 05:04:06 +0000 (08:04 +0300)]
align test logger categories with debug message categories
should've been done with
abb497201d2f7fd93268a12e0294f68642d47a3f
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 15 Aug 2020 00:11:43 +0000 (03:11 +0300)]
initial LGTM config
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 14 Aug 2020 23:50:34 +0000 (02:50 +0300)]
fix some LGTM warnings, notably some that lead to incorrect parsing of the Uniocde data
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 14 Aug 2020 23:14:59 +0000 (02:14 +0300)]
remove redundant QSignalSpyCallbackSet::signal_end_callback
QSignalSpyCallbackSet::signal_begin_callback is called once for each signal
thus QTest::iLevel is always one
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 14 Aug 2020 22:49:09 +0000 (01:49 +0300)]
remove unused QSignalDumper methods
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 14 Aug 2020 22:48:41 +0000 (01:48 +0300)]
move qt_register_signal_spy_callbacks() implementation to qobject source
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 14 Aug 2020 21:31:31 +0000 (00:31 +0300)]
remove unused QSignalSpyCallbackSet::slot_end_callback member
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 14 Aug 2020 20:57:10 +0000 (23:57 +0300)]
replace QTest::swap() with its body
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 14 Aug 2020 20:53:49 +0000 (23:53 +0300)]
remove unused qTestRandomSeed() function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 14 Aug 2020 20:29:46 +0000 (23:29 +0300)]
remove unused QBenchmarkContext member and method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>