Commit graph

315 commits

Author SHA1 Message Date
Ivailo Monev
08a34e629e remove forward declaration of non-existing qt_stroke_dash()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-20 17:30:13 +00:00
Ivailo Monev
f806b8f97f remove unused and internal QPathClipper::ClipperMode enums
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-20 17:29:37 +00:00
Ivailo Monev
8ec0f5951d return result of QWingedEdge::toPath() directly in QPathClipper::clip()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-20 17:28:45 +00:00
Ivailo Monev
10892247de remove redundant qt_memrotate90_template<T, T>() specialization
same implementation as the generic one

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-20 17:13:08 +00:00
Ivailo Monev
889cab537c remove code for always false condition in brushes pattern cache
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-20 16:13:26 +00:00
Ivailo Monev
f11e261162 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>
2020-03-20 04:10:51 +00:00
Ivailo Monev
67fe1095be remove unused interpolate_pixel_unaligned_2() drawing helper
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-20 02:32:07 +00:00
Ivailo Monev
bd782acc64 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>
2020-03-20 02:24:06 +00:00
Ivailo Monev
0366784761 remove unused QWidgetBackingStore::beginPaint() argument
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-19 23:28:34 +00:00
Ivailo Monev
339b9103dd correct cast qualifier in blend_untransformed_argb()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-19 02:55:14 +00:00
Ivailo Monev
32bce7bc71 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>
2020-03-19 02:43:37 +00:00
Ivailo Monev
937889b14a optimize blend_src_generic() drawing helper
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-19 00:06:19 +00:00
Ivailo Monev
cb9615e95e remove unused and internal qt_paint_device_metric()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-18 22:04:06 +00:00
Ivailo Monev
cdc3b37daf remove code for always false condition in QRasterPaintEngine
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-09 16:15:40 +00:00
Ivailo Monev
282d77dc2e remove unused QRasterPaintEnginePrivate::getPenFunc() method
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-09 15:52:37 +00:00
Ivailo Monev
6e4fe2850c get rid of QRasterPaintEnginePrivate::deviceRectUnclipped member
not used anywhere but in QRasterPaintEnginePrivate::systemStateChanged()

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-09 15:51:58 +00:00
Ivailo Monev
b5ea99e681 remove unused drawing function prototypes
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-09 15:42:00 +00:00
Ivailo Monev
e2db276a13 replace default with QSpanData::None case in getOperator()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-09 15:15:17 +00:00
Ivailo Monev
34917bf462 correct reinterpret_cast<T> qualifier in destFetch()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-09 15:14:30 +00:00
Ivailo Monev
8c67341807 avoid temporaries in qt_gradient_quint32() and qt_gradient_quint16()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-09 14:22:55 +00:00
Ivailo Monev
6068071768 replace qt_rectfill_template<T> with its body in QT_RECTFILL() macro
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-09 14:22:18 +00:00
Ivailo Monev
c1fc868a83 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>
2020-03-09 04:18:32 +00:00
Ivailo Monev
f08fc57f81 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>
2020-03-09 03:12:37 +00:00
Ivailo Monev
fc83fb6dd0 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>
2020-03-09 01:17:32 +00:00
Ivailo Monev
cf66a846a5 avoid copy in qt_alphargbblit_quint32() , qt_alphamapblit_quint32() and qt_alphamapblit_quint32()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-03-09 01:07:39 +00:00
Ivailo Monev
31b97f69d7 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>
2020-03-07 22:20:22 +00:00
Ivailo Monev
5c2c2eb6c8 stream QRegion as vector
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-01-21 10:14:59 +00:00
Ivailo Monev
1394277037 use QVector<T>::resize() instead of accessing private member in QRegion::rects()
upstream commit:
799f0841a6

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-01-19 08:40:05 +00:00
Ivailo Monev
37c356869b check QApplication::type() rather than qt_x11Data in QPrinter::init() and QPrinter::isValid()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-01-18 09:49:41 +00:00
Ivailo Monev
299aaf88b3 remove unused QT_PATH_ELEMENT definition in qpdf source file
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-01-18 05:52:23 +00:00
Ivailo Monev
5a3f09d4da drop LPR support
neither the option nor the feature where properly exposed to the user so
there is no user-visible change. it can be done by writing to temporary
file and executing `lp` via QProcess, however that could potentially
leak private information

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-01-18 05:28:02 +00:00
Ivailo Monev
2d3e0c5f3b rebrand interface names and drop deprecated D-Bus annotation name support
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-01-18 00:48:42 +00:00
Ivailo Monev
5d72c40870 remove private Qt::PenStyle::MPenStyle, Qt::PenCapStyle::MPenCapStyle and Qt::PenJoinStyle::MPenJoinStyle enums
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-01-17 23:55:10 +00:00
Ivailo Monev
4611b5902e replace qFloorF() with qFloor() function call in snapTo26Dot6Grid() function
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-01-10 16:51:52 +00:00
Ivailo Monev
ca00b6c4d6 replace Q_PI with M_PI from math header
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-01-10 15:16:46 +00:00
Ivailo Monev
571ebf899a remove most std::bad_alloc exceptions handling
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-01-09 02:15:39 +00:00
Ivailo Monev
3049209062 replace Q_ASSERT(0) with Q_ASSERT(false)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-01-06 16:09:02 +00:00
Ivailo Monev
bcf42d4131 replace 0 with Q_NULLPTR in QPaintEngineExPrivate::QPaintEngineExPrivate()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-01-04 22:20:33 +00:00
Ivailo Monev
829cc408ff use static keys list in QGraphicsSystemFactory::keys() when build with QT_NO_LIBRARY defined
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-01-04 18:45:50 +00:00
Ivailo Monev
6d633966a2 merge .cmake into CMakeLists.txt files
this way it is easier to maintain and should reduce the time spend on
configuring the project when building, much like the all-in-one build
option

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-12-31 04:28:36 +00:00
Ivailo Monev
dea3f2ac74 include moc-generated files as local headers
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-12-31 00:24:20 +00:00
Ivailo Monev
5b459cf0ec update copyright and add script for doing so
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-12-29 23:21:34 +00:00
Ivailo Monev
47a2cf587e remove redundant qt_defaultDpiX(), qt_defaultDpiY() and qt_defaultDpi() functions
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-12-26 19:58:18 +00:00
Ivailo Monev
7769bca600 rework QSettings, use JSON as native format for it
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-12-24 01:30:39 +00:00
Ivailo Monev
a8320dcf65 compiler warning fixes
upstream commit:
ef36fd0217

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-12-20 03:24:36 +00:00
Ivailo Monev
35f6f6c5d1 add some missing class visibility attributes
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-12-19 19:16:29 +00:00
Ivailo Monev
d0d6603126 use QImage::constBits() in QRasterWindowSurface::prepareBuffer()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-12-18 22:50:45 +00:00
Ivailo Monev
9585bd773c mark certain core component options unsupported
this is mostly automated change set, a lot to be done later on
especially about the definitions in core component. the goal is
to make most of the options of the core component available so
that they can be utilized in other components and tools without
restrictions as shown by some of the changes done to the GUI
component in this commit

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-12-18 00:00:13 +00:00
Ivailo Monev
805b9678d4 remove some dead code in switch statements
upstream commit:
914e1f3608

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-12-13 20:32:57 +00:00
Ivailo Monev
9b02a8dd63 use single variable assignment in QRegion functions where possible
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-12-13 11:50:56 +00:00