OSDN Git Service

kde/Katie.git
4 years agofix tst_QThread::setStackSize() test case
Ivailo Monev [Mon, 30 Mar 2020 19:34:11 +0000 (19:34 +0000)]
fix tst_QThread::setStackSize() test case

also fixes a regression since 91019ff8de9ba23a45c7920184e473620e5244d0

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoremove unused qt_safe_dup() and qt_safe_dup2() arguments
Ivailo Monev [Mon, 30 Mar 2020 18:03:34 +0000 (18:03 +0000)]
remove unused qt_safe_dup() and qt_safe_dup2() arguments

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoremove unused QtMsgType::QtSystemMsg enum
Ivailo Monev [Mon, 30 Mar 2020 09:04:10 +0000 (09:04 +0000)]
remove unused QtMsgType::QtSystemMsg enum

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoremove unused and internal QPixmapConvolutionFilter
Ivailo Monev [Mon, 30 Mar 2020 08:25:20 +0000 (08:25 +0000)]
remove unused and internal QPixmapConvolutionFilter

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agomark some environment queries as static and const
Ivailo Monev [Mon, 30 Mar 2020 08:09:53 +0000 (08:09 +0000)]
mark some environment queries as static and const

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agomake qt_error_string() argument non-optional
Ivailo Monev [Mon, 30 Mar 2020 07:38:10 +0000 (07:38 +0000)]
make qt_error_string() argument non-optional

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoremove unused and internal QFilePrivate::setError() overload
Ivailo Monev [Mon, 30 Mar 2020 07:37:41 +0000 (07:37 +0000)]
remove unused and internal QFilePrivate::setError() overload

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoremove unused and internal qt_set_current_thread_to_main_thread()
Ivailo Monev [Mon, 30 Mar 2020 00:00:30 +0000 (00:00 +0000)]
remove unused and internal qt_set_current_thread_to_main_thread()

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agocheck for thread-safe resolv function from CMake module
Ivailo Monev [Sat, 28 Mar 2020 20:02:41 +0000 (20:02 +0000)]
check for thread-safe resolv function from CMake module

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoremove unused QApplicationPrivate members
Ivailo Monev [Thu, 26 Mar 2020 23:29:09 +0000 (23:29 +0000)]
remove unused QApplicationPrivate members

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoreplace 0 with Q_NULLPTR where applicable
Ivailo Monev [Thu, 26 Mar 2020 23:03:50 +0000 (23:03 +0000)]
replace 0 with Q_NULLPTR where applicable

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoupdate translations [ci skip]
Ivailo Monev [Thu, 26 Mar 2020 02:56:40 +0000 (02:56 +0000)]
update translations [ci skip]

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoupdate doxygen configuration file [ci skip]
Ivailo Monev [Thu, 26 Mar 2020 01:10:58 +0000 (01:10 +0000)]
update doxygen configuration file [ci skip]

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agounexport/remove unused internal external references
Ivailo Monev [Wed, 25 Mar 2020 21:35:29 +0000 (21:35 +0000)]
unexport/remove unused internal external references

plenty of those, I've grep-ed only for Q_GUI_EXPORT and qt_ prefix

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoremove empty qmenudata header and source
Ivailo Monev [Wed, 25 Mar 2020 21:32:02 +0000 (21:32 +0000)]
remove empty qmenudata header and source

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoreplace QSizeGripPrivate::init() with its body
Ivailo Monev [Wed, 25 Mar 2020 21:30:20 +0000 (21:30 +0000)]
replace QSizeGripPrivate::init() with its body

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoreplace if with switch statment in QColormap::pixel()
Ivailo Monev [Wed, 25 Mar 2020 21:08:42 +0000 (21:08 +0000)]
replace if with switch statment in QColormap::pixel()

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoreplace inline if with switch in QColormap::size() statement
Ivailo Monev [Wed, 25 Mar 2020 18:51:28 +0000 (18:51 +0000)]
replace inline if with switch in QColormap::size() statement

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agocorrect warning message in QThread::terminate()
Ivailo Monev [Wed, 25 Mar 2020 17:19:18 +0000 (17:19 +0000)]
correct warning message in QThread::terminate()

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoinline qdlerror() function
Ivailo Monev [Wed, 25 Mar 2020 17:12:07 +0000 (17:12 +0000)]
inline qdlerror() function

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agouse single variable assignment in qstring_to_xtp()
Ivailo Monev [Wed, 25 Mar 2020 17:03:40 +0000 (17:03 +0000)]
use single variable assignment in qstring_to_xtp()

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoreplace qBinaryFindHelper() with its body
Ivailo Monev [Wed, 25 Mar 2020 17:03:12 +0000 (17:03 +0000)]
replace qBinaryFindHelper() with its body

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agounexport qt_try_modal() to mark it as static
Ivailo Monev [Wed, 25 Mar 2020 16:44:09 +0000 (16:44 +0000)]
unexport qt_try_modal() to mark it as static

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agofix qPRCreate() const correctness
Ivailo Monev [Wed, 25 Mar 2020 16:43:44 +0000 (16:43 +0000)]
fix qPRCreate() const correctness

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agomark qt_readEscapedFormatString() and qt_repeatCount() as static
Ivailo Monev [Wed, 25 Mar 2020 16:28:34 +0000 (16:28 +0000)]
mark qt_readEscapedFormatString() and qt_repeatCount() as static

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoremove redundant whitespace in convolute() pixmap filter helper
Ivailo Monev [Wed, 25 Mar 2020 01:24:38 +0000 (01:24 +0000)]
remove redundant whitespace in convolute() pixmap filter helper

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agodo not compare member to zero in QAbstractEventDispatcherPrivate::init()
Ivailo Monev [Wed, 25 Mar 2020 01:23:56 +0000 (01:23 +0000)]
do not compare member to zero in QAbstractEventDispatcherPrivate::init()

part of the Q_NULLPTR-ization effort

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoadd tarball.sh script [ci skip]
Ivailo Monev [Tue, 24 Mar 2020 19:41:45 +0000 (19:41 +0000)]
add tarball.sh script [ci skip]

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agouse single variable assignment in QLocalServerPrivate::waitForNewConnection()
Ivailo Monev [Tue, 24 Mar 2020 17:46:32 +0000 (17:46 +0000)]
use single variable assignment in QLocalServerPrivate::waitForNewConnection()

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoremove unused qlocalsocket_tcp source
Ivailo Monev [Tue, 24 Mar 2020 17:40:01 +0000 (17:40 +0000)]
remove unused qlocalsocket_tcp source

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoremove unused variable in QPixmapBlurFilter::draw()
Ivailo Monev [Tue, 24 Mar 2020 04:47:26 +0000 (04:47 +0000)]
remove unused variable in QPixmapBlurFilter::draw()

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoremove unused TEST_FILE() from declarative compilation benchmark
Ivailo Monev [Tue, 24 Mar 2020 03:15:45 +0000 (03:15 +0000)]
remove unused TEST_FILE() from declarative compilation benchmark

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoremove unused QPixmapConvolutionFilterPrivate::convoluteAlpha member
Ivailo Monev [Tue, 24 Mar 2020 00:04:57 +0000 (00:04 +0000)]
remove unused QPixmapConvolutionFilterPrivate::convoluteAlpha member

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoremove default QListView::event() reimplementation
Ivailo Monev [Mon, 23 Mar 2020 14:45:18 +0000 (14:45 +0000)]
remove default QListView::event() reimplementation

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agounexport qt_halfScaled() and qt_blurImage() to mark them static
Ivailo Monev [Mon, 23 Mar 2020 14:44:58 +0000 (14:44 +0000)]
unexport qt_halfScaled() and qt_blurImage() to mark them static

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoremove unused virtual QBenchmarkMeasurerBase::init() method
Ivailo Monev [Sat, 21 Mar 2020 23:32:40 +0000 (23:32 +0000)]
remove unused virtual QBenchmarkMeasurerBase::init() method

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agoremove unused qScrollEffect() and qFadeEffect() arguments
Ivailo Monev [Sat, 21 Mar 2020 22:48:13 +0000 (22:48 +0000)]
remove unused qScrollEffect() and qFadeEffect() arguments

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
4 years agomark results from sysconf() queries as static
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>
4 years agovalidate stack size in QThread::setStackSize()
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>
4 years agoavoid copy in qt_toX11Pixmap()
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>
4 years agosimplify QPaintEngineEx::supportsTransformations() logic
Ivailo Monev [Fri, 20 Mar 2020 23:50:53 +0000 (23:50 +0000)]
simplify QPaintEngineEx::supportsTransformations() logic

4 years agoremove redundant forward declaration of QPixmapFilter class in qpaintengineex_p header
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>
4 years agomove misc drawing helper functions to the top of qdrawhelper source
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>
4 years agomark qt_bayer_matrix constant and qConvertRgb16To32() function as static
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>
4 years agooptimize QRasterPaintEnginePrivate::isUnclipped() methods
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>
4 years agoreplace conditional memory rotation templates with their body
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>
4 years agoremove unused and internal virtual QPaintEngineEx methods
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>
4 years agoremove forward declaration of non-existing qt_stroke_dash()
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>
4 years agoremove unused and internal QPathClipper::ClipperMode enums
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>
4 years agoreturn result of QWingedEdge::toPath() directly in QPathClipper::clip()
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>
4 years agoremove redundant qt_memrotate90_template<T, T>() specialization
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>
4 years agoremove code for always false condition in brushes pattern cache
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>
4 years agoremove redundant QFont enums casts and constructs
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>
4 years agomark CSS parser constants as static
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>
4 years agoremove redundant qglobal header inclusion from qbackingstore source
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>
4 years agoremove unused interpolate_pixel_unaligned_2() drawing helper
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>
4 years agomove qt_get_named_rgb() to qcolor source file, replace qt_get_colornames() with its...
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>
4 years agoremove unused and internal QWidgetPrivate::DrawWidgetFlags enums
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>
4 years agoremove unused QWidgetBackingStore::beginPaint() argument
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>
4 years agoupdate tables data to CLDR v36.1
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>
4 years agomark some constants as static
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>
4 years agoadd unifdef to build dependencies of Debian package [ci skip]
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>
4 years agofix regression since 28d63e9b27d82c2de090d72699b273b77b28de30
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>
4 years agocorrect cast qualifier in blend_untransformed_argb()
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>
4 years agomove non-shared drawing helper functions to qdrawhelper source file
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>
4 years agoadd libsm-dev to build dependencies of Debian package [ci skip]
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>
4 years agooptimize blend_src_generic() drawing helper
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>
4 years agoremove unused and internal qt_paint_device_metric()
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>
4 years agoappend to OBJECT_DEPENDS property from katie_setup_target() macro
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>
4 years agoupdate unicode data tables to v13.0
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>
4 years agouse static strings for RCC tags/attributes
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>
4 years agoremove unused QScript::Lexer members
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>
4 years agoremove code for always false condition in QRasterPaintEngine
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>
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>