Commit graph

501 commits

Author SHA1 Message Date
Ivailo Monev
65d8629a0c drop support for some properties annotations, revisioned properties and methods
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-26 23:20:24 +03:00
Ivailo Monev
ac0689a666 reimplement QHostAddress via inet_pton() and inet_ntop()
both inet_pton() and inet_ntop() are supposed to be part of POSIX.1-2001
(see https://linux.die.net/man/3/inet_pton and
https://linux.die.net/man/3/inet_ntop), this makes QHostAddress input
requirements much more strict (e.g. whitespace in the input makes the
resulting QHostAddress object not valid) thus some QHostAddress tests fail
but QHostInfo tests pass. amends (such as return value checks) can be done
later

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-29 15:24:30 +02:00
Ivailo Monev
ef97a7f48e drop QStyleOptionViewItemV2, QStyleOptionViewItemV3 and QStyleOptionViewItemV4 typedefs
long overdue but the last bits of the versioned classes are no more

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-15 08:19:07 +02:00
Ivailo Monev
f57ef4b15f drop QStyleOptionTabV2 and QStyleOptionTabV3 typedefs
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-15 07:36:02 +02:00
Ivailo Monev
ef67586cf3 drop QStyleOptionFrameV2 and QStyleOptionFrameV3 typedefs
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-15 07:23:57 +02:00
Ivailo Monev
01e0f63c6a drop QStyleOptionTabWidgetFrameV2 typedef
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-15 07:15:31 +02:00
Ivailo Monev
ada1c257f8 drop QStyleOptionTabBarBaseV2 typedef
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-15 07:09:41 +02:00
Ivailo Monev
fcbe60fc94 drop QStyleOptionToolBoxV2 typedef
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-15 07:06:22 +02:00
Ivailo Monev
c8ec78d2bf drop QStyleOptionProgressBarV2 typedef
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-15 07:00:33 +02:00
Ivailo Monev
adbf98fb08 drop QStyleOptionDockWidgetV2 typedef
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-15 06:53:32 +02:00
Ivailo Monev
8a4d7aa3c4 drop QIconEngineV2 typedef
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-15 06:37:50 +02:00
Ivailo Monev
7fc419196f drop XEMBED support
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-23 11:44:11 +03:00
Ivailo Monev
54c1deebad remove redundant QGraphicsRotation and QGraphicsScale classes
use QMatrix or QTransform instead (QGraphicsItem has setters and getters
for that)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-21 13:58:37 +03:00
Ivailo Monev
84dde53fd8 remove qml leftovers
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-21 09:40:45 +03:00
Ivailo Monev
770f63fa3b drop script and declarative components aswell as tray support
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-21 08:03:17 +03:00
Ivailo Monev
b26ee7e5f7 update exported classes references
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-08 09:21:15 +03:00
Ivailo Monev
565423a1c1 drop config support
with QGuiPlatformPlugin and the QApplication settings and getters in
place it is simply redundant

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-01 04:40:20 +03:00
Ivailo Monev
dda478c25b add note about platforms that are not open-source
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-31 06:03:50 +03:00
Ivailo Monev
9671ad6f47 version bump
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-09 23:22:30 +03:00
Ivailo Monev
0c143f2e1d get rid of QWidgetItemV2
round 2, see 6d3fe9312c

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-13 02:12:59 +03:00
Ivailo Monev
b5c8de2b7e require libdeflate and unbundle it
kdelibs requires too

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-05-29 18:39:51 +03:00
Ivailo Monev
9e638071f3 drop icon engine plugins support
no double-caching of the pixmap (QPixmap::load() inserts into
QPixmapCache) and one less global static factory for plugins, no
functional change

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-05-25 01:32:01 +03:00
Ivailo Monev
9285cf9105 drop now unused scripttools component
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-05-19 05:07:37 +03:00
Ivailo Monev
e4e8ff4b26 remove BSD workarounds
if the linker cannot find system libraries then it's not a Katie build
system problem

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-23 21:14:40 +02:00
Ivailo Monev
96e3aca95b version bump
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-01 21:39:24 +02:00
Ivailo Monev
427396074d remove unused graphics effects feature
doubles as performance optimzation

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-22 00:46:40 +02:00
Ivailo Monev
07d438624a lock QSettings files via flock()
now QSettings will behave much like opening a file via open() and the like,
see the QFile hijack test case

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-20 17:51:00 +02:00
Ivailo Monev
ad589d273b remove QTextDecoder and QTextEncoder leftovers
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-18 18:26:30 +02:00
Ivailo Monev
3545b69f28 drop compile-time options to disable debug and warning output
such type of messages can still be filtered by installing message handler

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-12 03:14:06 +02:00
Ivailo Monev
d0742df56c use custom format for translations
the code for translating strings in kdelibs (see
kdelibs/kdecore/localization/kcatalog.cpp) has finally made me roll my
own - locking global mutex, saving and restoring environment variables
on every string translation is not very good, is it?

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-02 05:23:31 +02:00
Ivailo Monev
9222708c38 remove unused QContiguousCache class
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-31 08:07:22 +02:00
Ivailo Monev
36eec68361 use only native filesystem iterator in QDirIterator
now that QAbstractFileEngine is becoming internal there is no point in
using the abstraction class

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-29 23:34:17 +03:00
Ivailo Monev
7c390e0725 bye RCC
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-29 10:34:57 +03:00
Ivailo Monev
93db847ee3 remove designer tool
new one will be coded post 4.12

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-28 22:13:00 +03:00
Ivailo Monev
49f0becf27 decouple custom widget classes from designer component
this opens up possibilities for writing a new designer tool or
unexporting the designer and designer components classes and making
them part of the designer tool for example

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-28 20:11:37 +03:00
Ivailo Monev
bb38050579 public classes static data update
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-26 05:41:17 +03:00
Ivailo Monev
fe7b928e20 drop resources and language extensions support in designer component
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-14 16:31:55 +03:00
Ivailo Monev
a98bd715fc remove workflow and CI related files
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-09-24 04:44:13 +03:00
Ivailo Monev
c25adc81bc merge QDefaultAnimationDriver into QAnimationDriver and make QAnimationDriver private
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-08-22 21:59:06 +03:00
Ivailo Monev
df996aecf8 remove reference to non-existing QBasicAtomicInt and qbasicatomic headers
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-08-22 21:13:38 +03:00
Ivailo Monev
7a846c917b libpng v1.5.4+ is no longer required
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-08-22 03:48:37 +03:00
Ivailo Monev
212ea37257 check for program_invocation_short_name variable and use it in QCoreApplication::setApplicationName() if available
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-06-14 09:32:18 +03:00
Ivailo Monev
6ccc7ba7fc remove now redundant factory interface classes
the most efficient way to parse plugins metadata (such as keys) is to not
do it and (ab)use the plugin base name as the plugin key

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-06-12 08:48:48 +03:00
Ivailo Monev
e21405b357 remove now redundant class-memaccess compiler warning override
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-06-10 16:40:41 +03:00
Ivailo Monev
61d9154c1a essentially QVariant rewrite
the whole change is optimization around reference counting (QString,
QImage, etc. are already reference counted), beware QVariant::data()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-06-07 02:53:05 +03:00
Ivailo Monev
72e9448eaa drop concurrent classes
say hello to my delete button classes with void future

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-19 19:01:31 +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
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
19c7089395 reimplement javascriptcore regexp via std::regex
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-02-28 05:08:23 +02:00
Ivailo Monev
5f5ef0ec2b remove svg and dbus component definitions [ci reset]
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-02-26 22:36:20 +02:00