Commit graph

7286 commits

Author SHA1 Message Date
Ivailo Monev
1a2e656a6a remove unused QtConcurrent filter methods
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-18 02:26:22 +03:00
Ivailo Monev
6e1d8401da drop support for custom QSettings formats
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-18 00:42:12 +00:00
Ivailo Monev
694d98a0c2 the default QHostInfo error shall be "Host not found"
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-17 18:13:29 +03:00
Ivailo Monev
11c724a125 build fix for the case when QT_NO_SYNTAXHIGHLIGHTER is defined
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-17 17:24:19 +03:00
Ivailo Monev
2923077ba9 by default hosts shall be not found
otherwise, if a default constructed QHostInfo object is emited from thread
used to lookup it will be considered as sucessfull lookup (i.e. the error
is QHostInfo::NoError), even if the host is found it may be unreachable
right after the lookup is done (e.g. lookup before fetch, lookup succeeded,
server crashes before fetching data from it - server is unreachable). in
other words - it's a stat() before open() like problem

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-17 07:37:21 +03:00
Ivailo Monev
1b2571c063 QHostInfo documentation update
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-17 06:30:43 +03:00
Ivailo Monev
240a0e03e1 Merge branch 'master' of ssh://github.com/fluxer/katie 2022-05-17 05:48:32 +03:00
Ivailo Monev
ffda9b0a9f remove non-operational async QHostInfo methods and setters that should've never been public
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-17 05:47:09 +03:00
Ivailo Monev
5f4011c760 BSD workaround round 2
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-16 23:27:21 +02:00
Ivailo Monev
57858a28f0 include array system header in JSC Vector header
fixes build on FreeBSD when not build from the package files

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-17 00:08:20 +03:00
Ivailo Monev
d5a3e0e52d bye QReadLocker, QReadWriteLock and QWriteLocker
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-16 12:57:03 +03:00
Ivailo Monev
a936de7c70 replace the read-write master lock of the D-Bus component with mutex
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-16 11:40:40 +03:00
Ivailo Monev
42c06ab368 do not lock when reading global meta types
huge performance gain for anything QMetaType-related

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-16 11:26:33 +03:00
Ivailo Monev
4c23a693dd const-ify variables and use constant iterators in QDeclarativeMetaType
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-16 10:44:40 +03:00
Ivailo Monev
69ab2b7ee1 remove unused qreadwritelock header inclusion in qobject_p header
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-16 10:24:24 +03:00
Ivailo Monev
0fa427bfd5 build with GCC on OpenBSD
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-16 09:15:22 +03:00
Ivailo Monev
878a4bb03c Katie no longer support FTP and HTTP(S)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-16 04:53:59 +03:00
Ivailo Monev
bd0202455b remove unused QDataStream streaming operators for JSC::Vector<T>
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-16 03:03:01 +03:00
Ivailo Monev
86e075a88f use std::array<char, size> for inline JSC::Vector<T> buffers in JSC
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-16 02:59:02 +03:00
Ivailo Monev
7d7e92a256 workaround for Plasma desktop crashes on FreeBSD 13.1 (to be released)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-15 22:44:05 +03:00
Ivailo Monev
fc9ad91761 initialize JSC::JSFunction::m_data member
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-15 07:05:54 +03:00
Ivailo Monev
a15a8ca63e initialize JSC::JSGlobalObject::JSGlobalObjectData::recursion member
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-15 07:05:27 +03:00
Ivailo Monev
0efb7581f8 initialize JSC::JSGlobalObject::JSGlobalObjectData members
it's fix uninitialized variables o'clock here

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-15 06:57:16 +03:00
Ivailo Monev
43e71350fc initialize JSC::JSString::m_stringLength member
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-15 06:52:25 +03:00
Ivailo Monev
9acdcbb107 remove code for always false conditions
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-14 03:08:52 +03:00
Ivailo Monev
dd89588aa0 remove win leftovers
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-07 21:22:54 +03:00
Ivailo Monev
60d9e91cc6 use correct type for socket descriptor in QLocalServer and QLocalSocket
there is no way for QLocalSocket::socketDescriptor() to return anything
less than zero if the type is unsinged and it is supposed to return -1 if
the socket descriptor is not valid

upstream commit:
b03fa845a7

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-07 20:24:52 +03:00
Ivailo Monev
4373a55554 stabilize QDrag test
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-03 02:01:03 +03:00
Ivailo Monev
1d5eaa1367 initialize QElapsedTimer as invalid [ci reset]
upstream commit:
3006bd2d44

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-03 01:54:32 +03:00
Ivailo Monev
9fbd2aba9e remove zlib from WANTLIB in OpenBSD package file
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-02 21:28:46 +03:00
Ivailo Monev
3e7af255a1 libdeflate port is now available on OpenBSD
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-02 21:26:09 +03:00
Ivailo Monev
29b8db6fee remove default QTableWidget reimplementation and binary compatibility bits [ci reset]
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-01 23:53:39 +03:00
Ivailo Monev
f01660b44c Merge branch 'master' of ssh://github.com/fluxer/katie 2022-04-26 18:41:18 +03:00
Ivailo Monev
6efd735f37 free decompressor as soon as decompression is done in QKatHandler::read()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-26 18:40:59 +03:00
Ivailo Monev
d833715118 do not duplicate the file-descriptor from QDBusUnixFileDescriptor constructor
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-21 14:23:35 +03:00
Ivailo Monev
02df93a5bb do not duplicate the file-descriptor from QDBusUnixFileDescriptor constructor
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-21 14:14:26 +03:00
Ivailo Monev
012a2b4ab4 build fix
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-18 22:32:45 +03:00
Ivailo Monev
07c9afe51a drop support for using design metrics of fonts
fixes:
https://github.com/fluxer/katana/issues/29

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-18 22:29:36 +03:00
Ivailo Monev
b6b88f2b43 hint monospaced fonts horizontally and vertically
this is more of a workaround, there is a bug lurking somewhere in Konsole
probably since there are plenty of hacks related to fonts there

for reference:
https://github.com/fluxer/katana/issues/29

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-18 11:23:13 +03:00
Ivailo Monev
c3890f48f4 effectively revert 42f9fe4bdf and partially eac4764306
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-17 02:37:50 +03:00
Ivailo Monev
26d098ab90 fix QWidget::fontChange() compatibility and remove unused QWidget compatibility methods [ci reset]
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-16 21:53:10 +03:00
Ivailo Monev
4cacbe8960 build fix for the case when QT_NO_CONCURRENT is defined [ci reset]
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-11 21:52:50 +03:00
Ivailo Monev
8aab2bdd69 fix runtime warning when rotating non-mono images
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-11 20:59:16 +03:00
Ivailo Monev
d38f7d6f12 drop support for video and animation elements in svg component
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-03 00:26:03 +03:00
Ivailo Monev
06b9bf73d9 simplify color parsing in resolveColor() function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-02 23:49:30 +03:00
Ivailo Monev
818aaff48d mark warning case in QCompleter::setMaxVisibleItems() as unlikely
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-29 01:37:27 +03:00
Ivailo Monev
fb720f570e add option to build with external xxHash
only Debian seems to enable the dispatcher and it does not
make much difference, probably because it ships 0.8.0 while
the latest (and bundled) 0.8.1 claim to provide +40% better
performance.

benchmark result with bundled xxHash:
********* Start testing of tst_qcryptographichash *********
Config: Using QTest library 4.12.0, Katie 4.12.0
PASS  : tst_qcryptographichash::initTestCase()
RESULT   : tst_qcryptographichash::append():"10 (Md5)":
     2,116.24331 CPU ticks per iteration (total: 423,248,663, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"10 (Sha1)":
     2,327.95652 CPU ticks per iteration (total: 465,591,304, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"10 (Sha256)":
     4,538.58415 CPU ticks per iteration (total: 907,716,831, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"10 (Sha512)":
     3,545.57214 CPU ticks per iteration (total: 709,114,428, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"10 (KAT)":
     1,055.78467 CPU ticks per iteration (total: 211,156,934, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"100 (Md5)":
     570.349390 CPU ticks per iteration (total: 114,069,878, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"100 (Sha1)":
     733.596795 CPU ticks per iteration (total: 146,719,359, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"100 (Sha256)":
     926.539030 CPU ticks per iteration (total: 185,307,806, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"100 (Sha512)":
     1,027.45295 CPU ticks per iteration (total: 205,490,590, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"100 (KAT)":
     612.773505 CPU ticks per iteration (total: 122,554,701, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"250 (Md5)":
     559.535060 CPU ticks per iteration (total: 111,907,012, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"250 (Sha1)":
     711.052220 CPU ticks per iteration (total: 142,210,444, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"250 (Sha256)":
     867.967635 CPU ticks per iteration (total: 173,593,527, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"250 (Sha512)":
     1,059.37588 CPU ticks per iteration (total: 211,875,177, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"250 (KAT)":
     555.657665 CPU ticks per iteration (total: 111,131,533, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"500 (Md5)":
     534.696365 CPU ticks per iteration (total: 106,939,273, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"500 (Sha1)":
     706.683535 CPU ticks per iteration (total: 141,336,707, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"500 (Sha256)":
     860.014285 CPU ticks per iteration (total: 172,002,857, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"500 (Sha512)":
     991.020390 CPU ticks per iteration (total: 198,204,078, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"500 (KAT)":
     530.340170 CPU ticks per iteration (total: 106,068,034, iterations: 200000)
PASS  : tst_qcryptographichash::append()
RESULT   : tst_qcryptographichash::append_once():"Md5":
     1,461.98053 CPU ticks per iteration (total: 292,396,106, iterations: 200000)
RESULT   : tst_qcryptographichash::append_once():"Sha1":
     1,794.47376 CPU ticks per iteration (total: 358,894,752, iterations: 200000)
RESULT   : tst_qcryptographichash::append_once():"Sha256":
     4,139.07171 CPU ticks per iteration (total: 827,814,343, iterations: 200000)
RESULT   : tst_qcryptographichash::append_once():"Sha512":
     3,188.78708 CPU ticks per iteration (total: 637,757,416, iterations: 200000)
RESULT   : tst_qcryptographichash::append_once():"KAT":
     632.489945 CPU ticks per iteration (total: 126,497,989, iterations: 200000)
PASS  : tst_qcryptographichash::append_once()
RESULT   : tst_qcryptographichash::statichash():"Md5":
     1,386.79875 CPU ticks per iteration (total: 277,359,750, iterations: 200000)
RESULT   : tst_qcryptographichash::statichash():"Sha1":
     1,676.14551 CPU ticks per iteration (total: 335,229,103, iterations: 200000)
RESULT   : tst_qcryptographichash::statichash():"Sha256":
     4,063.86235 CPU ticks per iteration (total: 812,772,470, iterations: 200000)
RESULT   : tst_qcryptographichash::statichash():"Sha512":
     3,084.00755 CPU ticks per iteration (total: 616,801,511, iterations: 200000)
RESULT   : tst_qcryptographichash::statichash():"KAT":
     617.316465 CPU ticks per iteration (total: 123,463,293, iterations: 200000)
PASS  : tst_qcryptographichash::statichash()
PASS  : tst_qcryptographichash::cleanupTestCase()
Totals: 5 passed, 0 failed, 0 skipped
********* Finished testing of tst_qcryptographichash *********

benchmark result with 0.8.0 and dispatcher:
********* Start testing of tst_qcryptographichash *********
Config: Using QTest library 4.12.0, Katie 4.12.0
PASS  : tst_qcryptographichash::initTestCase()
RESULT   : tst_qcryptographichash::append():"10 (Md5)":
     1,968.59673 CPU ticks per iteration (total: 393,719,346, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"10 (Sha1)":
     2,199.79145 CPU ticks per iteration (total: 439,958,291, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"10 (Sha256)":
     4,222.34727 CPU ticks per iteration (total: 844,469,454, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"10 (Sha512)":
     3,281.03732 CPU ticks per iteration (total: 656,207,464, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"10 (KAT)":
     994.999260 CPU ticks per iteration (total: 198,999,852, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"100 (Md5)":
     553.048500 CPU ticks per iteration (total: 110,609,700, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"100 (Sha1)":
     661.749995 CPU ticks per iteration (total: 132,349,999, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"100 (Sha256)":
     870.448295 CPU ticks per iteration (total: 174,089,659, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"100 (Sha512)":
     984.230055 CPU ticks per iteration (total: 196,846,011, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"100 (KAT)":
     608.326970 CPU ticks per iteration (total: 121,665,394, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"250 (Md5)":
     525.601325 CPU ticks per iteration (total: 105,120,265, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"250 (Sha1)":
     678.677495 CPU ticks per iteration (total: 135,735,499, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"250 (Sha256)":
     825.383300 CPU ticks per iteration (total: 165,076,660, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"250 (Sha512)":
     1,051.29365 CPU ticks per iteration (total: 210,258,730, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"250 (KAT)":
     594.351090 CPU ticks per iteration (total: 118,870,218, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"500 (Md5)":
     513.894990 CPU ticks per iteration (total: 102,778,998, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"500 (Sha1)":
     682.573800 CPU ticks per iteration (total: 136,514,760, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"500 (Sha256)":
     825.146855 CPU ticks per iteration (total: 165,029,371, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"500 (Sha512)":
     942.555945 CPU ticks per iteration (total: 188,511,189, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"500 (KAT)":
     522.680560 CPU ticks per iteration (total: 104,536,112, iterations: 200000)
PASS  : tst_qcryptographichash::append()
RESULT   : tst_qcryptographichash::append_once():"Md5":
     1,476.90255 CPU ticks per iteration (total: 295,380,511, iterations: 200000)
RESULT   : tst_qcryptographichash::append_once():"Sha1":
     1,624.12430 CPU ticks per iteration (total: 324,824,860, iterations: 200000)
RESULT   : tst_qcryptographichash::append_once():"Sha256":
     3,839.11658 CPU ticks per iteration (total: 767,823,317, iterations: 200000)
RESULT   : tst_qcryptographichash::append_once():"Sha512":
     3,003.13306 CPU ticks per iteration (total: 600,626,612, iterations: 200000)
RESULT   : tst_qcryptographichash::append_once():"KAT":
     605.017655 CPU ticks per iteration (total: 121,003,531, iterations: 200000)
PASS  : tst_qcryptographichash::append_once()
RESULT   : tst_qcryptographichash::statichash():"Md5":
     1,396.13362 CPU ticks per iteration (total: 279,226,724, iterations: 200000)
RESULT   : tst_qcryptographichash::statichash():"Sha1":
     1,541.24351 CPU ticks per iteration (total: 308,248,703, iterations: 200000)
RESULT   : tst_qcryptographichash::statichash():"Sha256":
     3,768.31778 CPU ticks per iteration (total: 753,663,556, iterations: 200000)
RESULT   : tst_qcryptographichash::statichash():"Sha512":
     2,831.25420 CPU ticks per iteration (total: 566,250,840, iterations: 200000)
RESULT   : tst_qcryptographichash::statichash():"KAT":
     564.960245 CPU ticks per iteration (total: 112,992,049, iterations: 200000)
PASS  : tst_qcryptographichash::statichash()
PASS  : tst_qcryptographichash::cleanupTestCase()
Totals: 5 passed, 0 failed, 0 skipped
********* Finished testing of tst_qcryptographichash *********

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-28 13:52:24 +03:00
Ivailo Monev
fcd3d33e20 add test case for the previous commit
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-27 16:17:19 +03:00
Ivailo Monev
4a83c75544 prioritize file entry stat over fd stat
fixes QFile::size() for links and consequently QFile::atEnd() for
links, for QFile opened from fd or FILE* it will still report the
size of the link tho since such QFile objects do not have file entry

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-27 15:55:21 +03:00
Ivailo Monev
3c5ef26eeb fix QFile::isSequential() for links
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-27 13:47:51 +03:00