OSDN Git Service

kde/Katie.git
2 years agodo not copy socket address structure in qt_socket_getPortAndAddress() function
Ivailo Monev [Sat, 5 Mar 2022 13:59:20 +0000 (15:59 +0200)]
do not copy socket address structure in qt_socket_getPortAndAddress() function

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoadd QNetworkInterface test
Ivailo Monev [Sat, 5 Mar 2022 04:36:06 +0000 (06:36 +0200)]
add QNetworkInterface test

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agofill hardware address of QNetworkInterface when QT_HAVE_GETIFADDRS is defined
Ivailo Monev [Sat, 5 Mar 2022 04:29:54 +0000 (06:29 +0200)]
fill hardware address of QNetworkInterface when QT_HAVE_GETIFADDRS is defined

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoQNetworkInterfacePrivate::makeHwAddress() optimization
Ivailo Monev [Sat, 5 Mar 2022 04:15:30 +0000 (06:15 +0200)]
QNetworkInterfacePrivate::makeHwAddress() optimization

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agobuild fix for the case when compiler mode is C++17 or newer
Ivailo Monev [Fri, 4 Mar 2022 21:32:40 +0000 (23:32 +0200)]
build fix for the case when compiler mode is C++17 or newer

documented at https://en.cppreference.com/w/cpp/regex/basic_regex, good
thing JSC regex are not used for anything relevant, Kate uses some in its
indendation scripts and that's about it

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoQWorkspace class dismissed
Ivailo Monev [Fri, 4 Mar 2022 17:36:29 +0000 (19:36 +0200)]
QWorkspace class dismissed

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agolarge and transparent image samples for QImageReader benchmark
Ivailo Monev [Fri, 4 Mar 2022 16:33:20 +0000 (18:33 +0200)]
large and transparent image samples for QImageReader benchmark

Katie image format is 6x faster than png on transparent images, note
the size of the images. benchmark result:
********* Start testing of tst_QImageReader *********
Config: Using QTest library 4.12.0, Katie 4.12.0
PASS  : tst_QImageReader::initTestCase()
RESULT   : tst_QImageReader::readImage():"/home/smil3y/katie/tests/benchmarks/gui/image/qimagereader//images/bench.kat":
     0.450 msecs per iteration (total: 225, iterations: 500)
RESULT   : tst_QImageReader::readImage():"/home/smil3y/katie/tests/benchmarks/gui/image/qimagereader//images/bench-large.kat":
     5.148 msecs per iteration (total: 2,574, iterations: 500)
RESULT   : tst_QImageReader::readImage():"/home/smil3y/katie/tests/benchmarks/gui/image/qimagereader//images/bench-transparent.kat":
     2.176 msecs per iteration (total: 1,088, iterations: 500)
RESULT   : tst_QImageReader::readImage():"/home/smil3y/katie/tests/benchmarks/gui/image/qimagereader//images/bench.png":
     1.82 msecs per iteration (total: 911, iterations: 500)
RESULT   : tst_QImageReader::readImage():"/home/smil3y/katie/tests/benchmarks/gui/image/qimagereader//images/bench-large.png":
     19.46 msecs per iteration (total: 9,733, iterations: 500)
RESULT   : tst_QImageReader::readImage():"/home/smil3y/katie/tests/benchmarks/gui/image/qimagereader//images/bench-transparent.png":
     12.34 msecs per iteration (total: 6,171, iterations: 500)
RESULT   : tst_QImageReader::readImage():"/home/smil3y/katie/tests/benchmarks/gui/image/qimagereader//images/bench.ppm":
     0.586 msecs per iteration (total: 293, iterations: 500)
RESULT   : tst_QImageReader::readImage():"/home/smil3y/katie/tests/benchmarks/gui/image/qimagereader//images/bench-large.ppm":
     2.728 msecs per iteration (total: 1,364, iterations: 500)
RESULT   : tst_QImageReader::readImage():"/home/smil3y/katie/tests/benchmarks/gui/image/qimagereader//images/bench-transparent.ppm":
     2.418 msecs per iteration (total: 1,209, iterations: 500)
RESULT   : tst_QImageReader::readImage():"/home/smil3y/katie/tests/benchmarks/gui/image/qimagereader//images/bench.svg":
     10.79 msecs per iteration (total: 5,399, iterations: 500)
RESULT   : tst_QImageReader::readImage():"/home/smil3y/katie/tests/benchmarks/gui/image/qimagereader//images/bench.xpm":
     8.084 msecs per iteration (total: 4,042, iterations: 500)
RESULT   : tst_QImageReader::readImage():"/home/smil3y/katie/tests/benchmarks/gui/image/qimagereader//images/bench-large.xpm":
     75.654 msecs per iteration (total: 37,827, iterations: 500)
RESULT   : tst_QImageReader::readImage():"/home/smil3y/katie/tests/benchmarks/gui/image/qimagereader//images/bench-transparent.xpm":
     63.850 msecs per iteration (total: 31,925, iterations: 500)
PASS  : tst_QImageReader::readImage()
RESULT   : tst_QImageReader::setScaledSize():"/home/smil3y/katie/tests/benchmarks/gui/image/qimagereader//images/bench.kat":
     1.94 msecs per iteration (total: 974, iterations: 500)
RESULT   : tst_QImageReader::setScaledSize():"/home/smil3y/katie/tests/benchmarks/gui/image/qimagereader//images/bench-large.kat":
     6.598 msecs per iteration (total: 3,299, iterations: 500)
RESULT   : tst_QImageReader::setScaledSize():"/home/smil3y/katie/tests/benchmarks/gui/image/qimagereader//images/bench-transparent.kat":
     3.594 msecs per iteration (total: 1,797, iterations: 500)
RESULT   : tst_QImageReader::setScaledSize():"/home/smil3y/katie/tests/benchmarks/gui/image/qimagereader//images/bench.png":
     3.332 msecs per iteration (total: 1,666, iterations: 500)
RESULT   : tst_QImageReader::setScaledSize():"/home/smil3y/katie/tests/benchmarks/gui/image/qimagereader//images/bench-large.png":
     20.360 msecs per iteration (total: 10,180, iterations: 500)
RESULT   : tst_QImageReader::setScaledSize():"/home/smil3y/katie/tests/benchmarks/gui/image/qimagereader//images/bench-transparent.png":
     13.29 msecs per iteration (total: 6,645, iterations: 500)
RESULT   : tst_QImageReader::setScaledSize():"/home/smil3y/katie/tests/benchmarks/gui/image/qimagereader//images/bench.ppm":
     1.44 msecs per iteration (total: 720, iterations: 500)
RESULT   : tst_QImageReader::setScaledSize():"/home/smil3y/katie/tests/benchmarks/gui/image/qimagereader//images/bench-large.ppm":
     3.668 msecs per iteration (total: 1,834, iterations: 500)
RESULT   : tst_QImageReader::setScaledSize():"/home/smil3y/katie/tests/benchmarks/gui/image/qimagereader//images/bench-transparent.ppm":
     3.364 msecs per iteration (total: 1,682, iterations: 500)
RESULT   : tst_QImageReader::setScaledSize():"/home/smil3y/katie/tests/benchmarks/gui/image/qimagereader//images/bench.svg":
     9.324 msecs per iteration (total: 4,662, iterations: 500)
RESULT   : tst_QImageReader::setScaledSize():"/home/smil3y/katie/tests/benchmarks/gui/image/qimagereader//images/bench.xpm":
     9.622 msecs per iteration (total: 4,811, iterations: 500)
RESULT   : tst_QImageReader::setScaledSize():"/home/smil3y/katie/tests/benchmarks/gui/image/qimagereader//images/bench-large.xpm":
     77.180 msecs per iteration (total: 38,590, iterations: 500)
RESULT   : tst_QImageReader::setScaledSize():"/home/smil3y/katie/tests/benchmarks/gui/image/qimagereader//images/bench-transparent.xpm":
     65.346 msecs per iteration (total: 32,673, iterations: 500)
PASS  : tst_QImageReader::setScaledSize()
PASS  : tst_QImageReader::cleanupTestCase()
Totals: 4 passed, 0 failed, 0 skipped
********* Finished testing of tst_QImageReader *********

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoimplement quality option for Katie image format and document how it works
Ivailo Monev [Fri, 4 Mar 2022 14:59:08 +0000 (16:59 +0200)]
implement quality option for Katie image format and document how it works

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agocorrect definition for conditional QTabWidget feature
Ivailo Monev [Thu, 3 Mar 2022 18:47:02 +0000 (20:47 +0200)]
correct definition for conditional QTabWidget feature

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agofix possible crash when session manager property is empty list
Ivailo Monev [Thu, 3 Mar 2022 18:02:57 +0000 (20:02 +0200)]
fix possible crash when session manager property is empty list

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agodo not detach ID variable in QSessionManager constructor
Ivailo Monev [Thu, 3 Mar 2022 17:20:59 +0000 (19:20 +0200)]
do not detach ID variable in QSessionManager constructor

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agotranslations update [ci skip]
Ivailo Monev [Thu, 3 Mar 2022 14:54:49 +0000 (16:54 +0200)]
translations update [ci skip]

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoreduce the size of private QImageReader and QImageWriter data pointers by not storing...
Ivailo Monev [Thu, 3 Mar 2022 14:24:46 +0000 (16:24 +0200)]
reduce the size of private QImageReader and QImageWriter data pointers by not storing the error string

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agofilter duplicate MIME types from plugins with multiple keys in QImageReader::supporte...
Ivailo Monev [Thu, 3 Mar 2022 12:35:27 +0000 (14:35 +0200)]
filter duplicate MIME types from plugins with multiple keys in QImageReader::supportedMimeTypes() and QImageWriter::supportedMimeTypes()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agodo not compute hash after QCryptographicHash::reset() unless data is added
Ivailo Monev [Thu, 3 Mar 2022 02:48:53 +0000 (04:48 +0200)]
do not compute hash after QCryptographicHash::reset() unless data is added

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agonew QImageReader::formatForMimeType() and QImageWriter::formatForMimeType() methods
Ivailo Monev [Thu, 3 Mar 2022 02:18:14 +0000 (04:18 +0200)]
new QImageReader::formatForMimeType() and QImageWriter::formatForMimeType() methods

fixes pasting of images from clipboard for some image formats

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoadd note in which version QImageReader::supportedMimeTypes(), QImageWriter::defaultIm...
Ivailo Monev [Thu, 3 Mar 2022 01:12:26 +0000 (03:12 +0200)]
add note in which version QImageReader::supportedMimeTypes(), QImageWriter::defaultImageFormat() and QImageWriter::supportedMimeTypes() appeared

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agonew required virtual method to get MIME types for image plugins
Ivailo Monev [Thu, 3 Mar 2022 00:47:28 +0000 (02:47 +0200)]
new required virtual method to get MIME types for image plugins

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoincremental hashing optimization
Ivailo Monev [Wed, 2 Mar 2022 16:34:04 +0000 (18:34 +0200)]
incremental hashing optimization

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agobrief Katie image format documentation
Ivailo Monev [Wed, 2 Mar 2022 14:00:26 +0000 (16:00 +0200)]
brief Katie image format documentation

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agooops, copy-pasta
Ivailo Monev [Tue, 1 Mar 2022 21:51:23 +0000 (23:51 +0200)]
oops, copy-pasta

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agomove variable closer to the scope it is used in QPdfBaseEnginePrivate::openPrintDevice()
Ivailo Monev [Tue, 1 Mar 2022 21:13:35 +0000 (23:13 +0200)]
move variable closer to the scope it is used in QPdfBaseEnginePrivate::openPrintDevice()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoQT_NO_CUPS option does not require QT_NO_PRINTER
Ivailo Monev [Tue, 1 Mar 2022 21:13:16 +0000 (23:13 +0200)]
QT_NO_CUPS option does not require QT_NO_PRINTER

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoenable QPrintDialog print button only if printer is available
Ivailo Monev [Tue, 1 Mar 2022 20:56:54 +0000 (22:56 +0200)]
enable QPrintDialog print button only if printer is available

fixes crash in case no printer is available and print button is clicked

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agodrop support for printing to file
Ivailo Monev [Tue, 1 Mar 2022 16:27:45 +0000 (18:27 +0200)]
drop support for printing to file

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agodo not return current PPD from QCUPSSupport::setCurrentPrinter()
Ivailo Monev [Tue, 1 Mar 2022 11:53:09 +0000 (13:53 +0200)]
do not return current PPD from QCUPSSupport::setCurrentPrinter()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agouse QImage::Format_ARGB32_Premultiplied image format for raster pixmaps unless pixel...
Ivailo Monev [Tue, 1 Mar 2022 11:02:03 +0000 (13:02 +0200)]
use QImage::Format_ARGB32_Premultiplied image format for raster pixmaps unless pixel type is bitmap

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agodo not build the Katie image format handler if QT_NO_IMAGEFORMAT_KAT is defined
Ivailo Monev [Tue, 1 Mar 2022 00:40:55 +0000 (02:40 +0200)]
do not build the Katie image format handler if QT_NO_IMAGEFORMAT_KAT is defined

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agotypo
Ivailo Monev [Mon, 28 Feb 2022 23:12:26 +0000 (01:12 +0200)]
typo

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoKatie image format optimization
Ivailo Monev [Mon, 28 Feb 2022 22:40:50 +0000 (00:40 +0200)]
Katie image format optimization

from 2x faster to 3x compared to png, benchmark results bellow:
********* Start testing of tst_QImageReader *********
Config: Using QTest library 4.12.0, Katie 4.12.0
PASS  : tst_QImageReader::initTestCase()
RESULT   : tst_QImageReader::readImage():"bench.kat":
     0.452 msecs per iteration (total: 226, iterations: 500)
RESULT   : tst_QImageReader::readImage():"bench.pbm":
     0.026 msecs per iteration (total: 13, iterations: 500)
RESULT   : tst_QImageReader::readImage():"bench.png":
     1.82 msecs per iteration (total: 912, iterations: 500)
RESULT   : tst_QImageReader::readImage():"bench.ppm":
     0.588 msecs per iteration (total: 294, iterations: 500)
RESULT   : tst_QImageReader::readImage():"bench.svg":
     10.80 msecs per iteration (total: 5,400, iterations: 500)
RESULT   : tst_QImageReader::readImage():"bench.xpm":
     8.172 msecs per iteration (total: 4,086, iterations: 500)
PASS  : tst_QImageReader::readImage()
RESULT   : tst_QImageReader::setScaledSize():"bench.kat":
     1.95 msecs per iteration (total: 977, iterations: 500)
RESULT   : tst_QImageReader::setScaledSize():"bench.pbm":
     1.34 msecs per iteration (total: 671, iterations: 500)
RESULT   : tst_QImageReader::setScaledSize():"bench.png":
     3.328 msecs per iteration (total: 1,664, iterations: 500)
RESULT   : tst_QImageReader::setScaledSize():"bench.ppm":
     1.44 msecs per iteration (total: 720, iterations: 500)
RESULT   : tst_QImageReader::setScaledSize():"bench.svg":
     9.304 msecs per iteration (total: 4,652, iterations: 500)
RESULT   : tst_QImageReader::setScaledSize():"bench.xpm":
     9.730 msecs per iteration (total: 4,865, iterations: 500)
PASS  : tst_QImageReader::setScaledSize()
PASS  : tst_QImageReader::cleanupTestCase()
Totals: 4 passed, 0 failed, 0 skipped
********* Finished testing of tst_QImageReader *********

********* Start testing of tst_QImageWriter *********
Config: Using QTest library 4.12.0, Katie 4.12.0
PASS  : tst_QImageWriter::initTestCase()
RESULT   : tst_QImageWriter::writeImage():"kat":
     2.428 msecs per iteration (total: 1,214, iterations: 500)
RESULT   : tst_QImageWriter::writeImage():"png":
     7.798 msecs per iteration (total: 3,899, iterations: 500)
RESULT   : tst_QImageWriter::writeImage():"ppm":
     6.954 msecs per iteration (total: 3,477, iterations: 500)
PASS  : tst_QImageWriter::writeImage()
PASS  : tst_QImageWriter::cleanupTestCase()
Totals: 3 passed, 0 failed, 0 skipped
********* Finished testing of tst_QImageWriter *********

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agosimplify raster pixmap creation from image
Ivailo Monev [Mon, 28 Feb 2022 19:43:02 +0000 (21:43 +0200)]
simplify raster pixmap creation from image

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agounroll qt_memfill<T,T>() to 8 operations per-loop when possible
Ivailo Monev [Mon, 28 Feb 2022 19:41:30 +0000 (21:41 +0200)]
unroll qt_memfill<T,T>() to 8 operations per-loop when possible

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agopng header peeking optimization
Ivailo Monev [Mon, 28 Feb 2022 18:28:38 +0000 (20:28 +0200)]
png header peeking optimization

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agouse proper QString constructor in QCUPSSupport::unicodeString()
Ivailo Monev [Mon, 28 Feb 2022 17:26:57 +0000 (19:26 +0200)]
use proper QString constructor in QCUPSSupport::unicodeString()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoreplace resolveCups() function with its body
Ivailo Monev [Mon, 28 Feb 2022 17:26:23 +0000 (19:26 +0200)]
replace resolveCups() function with its body

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agopre-compute QWIDGETSIZE_MAX definition value
Ivailo Monev [Mon, 28 Feb 2022 17:10:18 +0000 (19:10 +0200)]
pre-compute QWIDGETSIZE_MAX definition value

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoremove mac and win leftovers
Ivailo Monev [Mon, 28 Feb 2022 17:06:01 +0000 (19:06 +0200)]
remove mac and win leftovers

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoremove unused QSystemTrayIconSys::background member
Ivailo Monev [Mon, 28 Feb 2022 17:02:26 +0000 (19:02 +0200)]
remove unused QSystemTrayIconSys::background member

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoindent qx11info_x11 source file
Ivailo Monev [Mon, 28 Feb 2022 17:00:01 +0000 (19:00 +0200)]
indent qx11info_x11 source file

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agocheck if compositor is active on the application display, not the default
Ivailo Monev [Mon, 28 Feb 2022 16:56:16 +0000 (18:56 +0200)]
check if compositor is active on the application display, not the default

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoadd QSystemTrayIcon test
Ivailo Monev [Mon, 28 Feb 2022 16:36:12 +0000 (18:36 +0200)]
add QSystemTrayIcon test

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoindent QBalloonTip constructor
Ivailo Monev [Mon, 28 Feb 2022 16:35:48 +0000 (18:35 +0200)]
indent QBalloonTip constructor

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agooptimize QSystemTrayIconSys::locateSystemTray() method
Ivailo Monev [Mon, 28 Feb 2022 16:22:26 +0000 (18:22 +0200)]
optimize QSystemTrayIconSys::locateSystemTray() method

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoremove unused QAbstractSocketPrivate methods and members
Ivailo Monev [Mon, 28 Feb 2022 15:55:24 +0000 (17:55 +0200)]
remove unused QAbstractSocketPrivate methods and members

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoexplicit socketError() return value check in addressFromSockaddr() function
Ivailo Monev [Mon, 28 Feb 2022 15:44:01 +0000 (17:44 +0200)]
explicit socketError() return value check in addressFromSockaddr() function

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoQVariant test build fix
Ivailo Monev [Mon, 28 Feb 2022 15:13:39 +0000 (17:13 +0200)]
QVariant test build fix

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agodrop unused QSharedMemory and QSystemSemaphore classes
Ivailo Monev [Mon, 28 Feb 2022 15:06:54 +0000 (17:06 +0200)]
drop unused QSharedMemory and QSystemSemaphore classes

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoremove unused QStyle::StandardPixmap::SP_VistaShield enum
Ivailo Monev [Mon, 28 Feb 2022 14:46:19 +0000 (16:46 +0200)]
remove unused QStyle::StandardPixmap::SP_VistaShield enum

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agodrop unused QQuaternion class [ci reset]
Ivailo Monev [Mon, 28 Feb 2022 14:19:45 +0000 (16:19 +0200)]
drop unused QQuaternion class [ci reset]

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agouse uninitialized buffers instead of resizing in QPdfEnginePrivate::addImage()
Ivailo Monev [Mon, 28 Feb 2022 14:00:58 +0000 (16:00 +0200)]
use uninitialized buffers instead of resizing in QPdfEnginePrivate::addImage()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoremove redundant cups header inclusions
Ivailo Monev [Mon, 28 Feb 2022 12:33:54 +0000 (14:33 +0200)]
remove redundant cups header inclusions

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoreimplement javascriptcore regexp via std::regex
Ivailo Monev [Mon, 28 Feb 2022 03:08:23 +0000 (05:08 +0200)]
reimplement javascriptcore regexp via std::regex

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agonew QImageWriter::defaultImageFormat() method to get the prefered/best image format
Ivailo Monev [Sun, 27 Feb 2022 23:44:47 +0000 (01:44 +0200)]
new QImageWriter::defaultImageFormat() method to get the prefered/best image format

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agodetermine the format from the file suffix if not provided in QImageWriter constructor
Ivailo Monev [Sun, 27 Feb 2022 23:40:32 +0000 (01:40 +0200)]
determine the format from the file suffix if not provided in QImageWriter constructor

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agocolor drag-n-drop optimization
Ivailo Monev [Sun, 27 Feb 2022 23:14:12 +0000 (01:14 +0200)]
color drag-n-drop optimization

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoinclude netinet/in header where required
Ivailo Monev [Sun, 27 Feb 2022 22:52:12 +0000 (00:52 +0200)]
include netinet/in header where required

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agooptional custom image format, for the details see the webp branch
Ivailo Monev [Sun, 27 Feb 2022 20:31:24 +0000 (22:31 +0200)]
optional custom image format, for the details see the webp branch

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoimplement QImageIOHandler::CompressionLevel for png handler
Ivailo Monev [Sun, 27 Feb 2022 19:51:49 +0000 (21:51 +0200)]
implement QImageIOHandler::CompressionLevel for png handler

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoQImageIOHandler::Quality is documented as image writing only property
Ivailo Monev [Sun, 27 Feb 2022 18:53:57 +0000 (20:53 +0200)]
QImageIOHandler::Quality is documented as image writing only property

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoimplement QImageIOHandler::Size option for XPM again
Ivailo Monev [Sun, 27 Feb 2022 18:17:14 +0000 (20:17 +0200)]
implement QImageIOHandler::Size option for XPM again

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoremove irrelevant QImageIOHandler options
Ivailo Monev [Sun, 27 Feb 2022 17:49:12 +0000 (19:49 +0200)]
remove irrelevant QImageIOHandler options

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoadd note about QImageIOHandler::CompressionRatio
Ivailo Monev [Sun, 27 Feb 2022 14:38:17 +0000 (16:38 +0200)]
add note about QImageIOHandler::CompressionRatio

png handler was using QImageIOHandler::Quality as compression level (mapped
from 0-100 to 0-9) btw which is far from the meaning of quality since data
can be compressed and decompressed without losing quality, applying filter
to blur pixels and reduce quality is totally different

TODO: replace QImageIOHandler::CompressionRatio with
QImageIOHandler::CompressionLevel

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoQT_NO_XMLSTREAM, QT_NO_XMLSTREAMREADER and QT_NO_XMLSTREAMWRITER are broken UI genera...
Ivailo Monev [Sun, 27 Feb 2022 13:39:12 +0000 (15:39 +0200)]
QT_NO_XMLSTREAM, QT_NO_XMLSTREAMREADER and QT_NO_XMLSTREAMWRITER are broken UI generator and designer components require them [ci reset]

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agobuild fix for the case when QT_NO_WORKSPACE is defined
Ivailo Monev [Sun, 27 Feb 2022 13:33:32 +0000 (15:33 +0200)]
build fix for the case when QT_NO_WORKSPACE is defined

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agopartial build fix for the case when QT_NO_WIZARD is defined
Ivailo Monev [Sun, 27 Feb 2022 13:10:59 +0000 (15:10 +0200)]
partial build fix for the case when QT_NO_WIZARD is defined

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agobuild fix for the case when QT_NO_WHEELEVENT is defined
Ivailo Monev [Sun, 27 Feb 2022 12:17:58 +0000 (14:17 +0200)]
build fix for the case when QT_NO_WHEELEVENT is defined

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agobuild fix for the case when QT_NO_WHATSTHIS is defined
Ivailo Monev [Sun, 27 Feb 2022 12:03:14 +0000 (14:03 +0200)]
build fix for the case when QT_NO_WHATSTHIS is defined

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agobuild fix for the case when QT_NO_VECTOR2D, QT_NO_VECTOR3D or QT_NO_VECTOR4D is defined
Ivailo Monev [Sun, 27 Feb 2022 11:25:10 +0000 (13:25 +0200)]
build fix for the case when QT_NO_VECTOR2D, QT_NO_VECTOR3D or QT_NO_VECTOR4D is defined

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agobuild fix for the case when QT_NO_UNDOGROUP is defined
Ivailo Monev [Sun, 27 Feb 2022 00:21:48 +0000 (02:21 +0200)]
build fix for the case when QT_NO_UNDOGROUP is defined

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agopartial build fix for the case when QT_NO_UNDOCOMMAND is defined
Ivailo Monev [Sat, 26 Feb 2022 23:54:10 +0000 (01:54 +0200)]
partial build fix for the case when QT_NO_UNDOCOMMAND is defined

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agobuild fix for the case when QT_NO_UDPSOCKET is defined
Ivailo Monev [Sat, 26 Feb 2022 22:55:11 +0000 (00:55 +0200)]
build fix for the case when QT_NO_UDPSOCKET is defined

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agocompiler warning fix
Ivailo Monev [Sat, 26 Feb 2022 22:54:31 +0000 (00:54 +0200)]
compiler warning fix

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agopartial build fix for the case when QT_NO_TOOLBAR is defined
Ivailo Monev [Sat, 26 Feb 2022 22:26:11 +0000 (00:26 +0200)]
partial build fix for the case when QT_NO_TOOLBAR is defined

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agodo not use the complete suffix as format in imgconv utility
Ivailo Monev [Sat, 26 Feb 2022 22:22:40 +0000 (00:22 +0200)]
do not use the complete suffix as format in imgconv utility

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agopartial build fix for the case when QT_NO_TEXTHTMLPARSER is defined
Ivailo Monev [Sat, 26 Feb 2022 21:53:47 +0000 (23:53 +0200)]
partial build fix for the case when QT_NO_TEXTHTMLPARSER is defined

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agobuild fix for the case when QT_NO_TEXTBROWSER is defined
Ivailo Monev [Sat, 26 Feb 2022 21:31:38 +0000 (23:31 +0200)]
build fix for the case when QT_NO_TEXTBROWSER is defined

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agooops, copy-pasta
Ivailo Monev [Sat, 26 Feb 2022 21:25:24 +0000 (23:25 +0200)]
oops, copy-pasta

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoset temporary file removal to false since it will be used after closing it in NewForm...
Ivailo Monev [Sat, 26 Feb 2022 21:12:25 +0000 (23:12 +0200)]
set temporary file removal to false since it will be used after closing it in NewForm::openTemplate()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoremove svg and dbus component definitions [ci reset]
Ivailo Monev [Sat, 26 Feb 2022 20:36:20 +0000 (22:36 +0200)]
remove svg and dbus component definitions [ci reset]

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agobuild fix for the case when QT_NO_STYLE_WINDOWS is defined
Ivailo Monev [Sat, 26 Feb 2022 20:24:40 +0000 (22:24 +0200)]
build fix for the case when QT_NO_STYLE_WINDOWS is defined

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agobuild fix for the case when QT_NO_STYLE_STYLESHEET is defined
Ivailo Monev [Sat, 26 Feb 2022 19:56:12 +0000 (21:56 +0200)]
build fix for the case when QT_NO_STYLE_STYLESHEET is defined

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agobuild fix for the case when QT_NO_STYLE_PROXY is defined
Ivailo Monev [Sat, 26 Feb 2022 18:59:08 +0000 (20:59 +0200)]
build fix for the case when QT_NO_STYLE_PROXY is defined

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agopartial build fix for the case when QT_NO_STATUSBAR is defined
Ivailo Monev [Sat, 26 Feb 2022 17:55:05 +0000 (19:55 +0200)]
partial build fix for the case when QT_NO_STATUSBAR is defined

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agodefault to compression level 1 for images like qCompress()
Ivailo Monev [Sat, 26 Feb 2022 15:17:14 +0000 (17:17 +0200)]
default to compression level 1 for images like qCompress()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoutility to convert from one format to other
Ivailo Monev [Sat, 26 Feb 2022 14:09:13 +0000 (16:09 +0200)]
utility to convert from one format to other

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoallocate compression buffer on the heap from qCompress()
Ivailo Monev [Sat, 26 Feb 2022 14:07:20 +0000 (16:07 +0200)]
allocate compression buffer on the heap from qCompress()

fixes crash in case the buffer has to be larger than the stack limit

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agobuild fix for the case when QT_NO_SIZEGRIP is defined
Ivailo Monev [Sat, 26 Feb 2022 02:41:33 +0000 (04:41 +0200)]
build fix for the case when QT_NO_SIZEGRIP is defined

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agopartial build fix for the case when QT_NO_SIGNALMAPPER is defined
Ivailo Monev [Sat, 26 Feb 2022 02:06:35 +0000 (04:06 +0200)]
partial build fix for the case when QT_NO_SIGNALMAPPER is defined

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agobuild fix for the case when QT_NO_SHAREDMEMORY is defined
Ivailo Monev [Sat, 26 Feb 2022 01:36:00 +0000 (03:36 +0200)]
build fix for the case when QT_NO_SHAREDMEMORY is defined

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agobroken QT_NO_RESIZEHANDLER because QMainWindow requires QWidgetResizeHandler
Ivailo Monev [Sat, 26 Feb 2022 00:52:51 +0000 (02:52 +0200)]
broken QT_NO_RESIZEHANDLER because QMainWindow requires QWidgetResizeHandler

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agobuild fix for the case when QT_NO_QUUID_STRING is defined
Ivailo Monev [Sat, 26 Feb 2022 00:37:39 +0000 (02:37 +0200)]
build fix for the case when QT_NO_QUUID_STRING is defined

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agobuild fix for the case when QT_NO_QUATERNION is defined
Ivailo Monev [Sat, 26 Feb 2022 00:05:05 +0000 (02:05 +0200)]
build fix for the case when QT_NO_QUATERNION is defined

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agofix and merge QT_NO_QFUTURE with QT_NO_CONCURRENT
Ivailo Monev [Fri, 25 Feb 2022 23:39:59 +0000 (01:39 +0200)]
fix and merge QT_NO_QFUTURE with QT_NO_CONCURRENT

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoQT_NO_PROPERTIES is broken because animations feature requires properties feature
Ivailo Monev [Fri, 25 Feb 2022 23:13:00 +0000 (01:13 +0200)]
QT_NO_PROPERTIES is broken because animations feature requires properties feature

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agobuild fix for the case when QT_NO_PRINTER is defined
Ivailo Monev [Fri, 25 Feb 2022 20:56:52 +0000 (22:56 +0200)]
build fix for the case when QT_NO_PRINTER is defined

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoadd QScrollArea test
Ivailo Monev [Fri, 25 Feb 2022 18:45:18 +0000 (20:45 +0200)]
add QScrollArea test

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agobuild fix for the case when QT_NO_PDF is defined
Ivailo Monev [Fri, 25 Feb 2022 18:44:53 +0000 (20:44 +0200)]
build fix for the case when QT_NO_PDF is defined

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoadd QDockWidget test
Ivailo Monev [Fri, 25 Feb 2022 18:27:25 +0000 (20:27 +0200)]
add QDockWidget test

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agopartial build fix for the case when QT_NO_MESSAGEBOX is defined
Ivailo Monev [Fri, 25 Feb 2022 17:47:40 +0000 (19:47 +0200)]
partial build fix for the case when QT_NO_MESSAGEBOX is defined

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2 years agoadd QRadioButton test
Ivailo Monev [Fri, 25 Feb 2022 17:44:03 +0000 (19:44 +0200)]
add QRadioButton test

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