OSDN Git Service
Ivailo Monev [Mon, 31 Oct 2022 06:17:29 +0000 (08:17 +0200)]
QT_NO_SIGNALMAPPER config option is no longer broken
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 31 Oct 2022 05:43:26 +0000 (07:43 +0200)]
remove unused QContiguousCache class
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 31 Oct 2022 05:30:05 +0000 (07:30 +0200)]
remove unused and ambiguous QDataStream operators
QByteArray has implicit char* operator which could result in code that is
sub-optimal
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 31 Oct 2022 00:35:57 +0000 (02:35 +0200)]
workaround rename() and renameat2() limitation from QFileSystemEngine::renameFile()
already done in kdelibs mostly for temporary files, for reference:
https://osdn.net/projects/kde/scm/git/kdelibs/commits/
4ff227e3367cb5d14b47d87b3c26582b4f2e691c
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 31 Oct 2022 00:25:15 +0000 (02:25 +0200)]
remove tst_QMainWindow compat test case
test was failing because of the previous commit but 4.1, 4.2 and 4.3 are
very old releases anyway
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 30 Oct 2022 23:25:16 +0000 (01:25 +0200)]
use QDataStream::HostEndian as byte order by default for QDataStream and do not byte-swap QString data when streaming it
both are breaking changes, any data stored via QDataStream will not load
now by default unless the byte order is explicitly set to big endian
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 31 Oct 2022 01:42:08 +0000 (03:42 +0200)]
set the byte order to big endian when testing with big endian data in QDataStream test cases
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 31 Oct 2022 00:53:34 +0000 (02:53 +0200)]
set the byte order to big endian when testing with big endian data in QDataStream test cases
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 30 Oct 2022 20:30:09 +0000 (22:30 +0200)]
use the QDataStream byteorder member for swap check
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 30 Oct 2022 19:29:20 +0000 (21:29 +0200)]
the test data in tst_QVariant::loadUnknownUserType() is big endian
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 30 Oct 2022 17:07:16 +0000 (19:07 +0200)]
set the byte order of the QDataStream objects used for KAT images reading/writing to big endian
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 30 Oct 2022 05:24:26 +0000 (07:24 +0200)]
implement specialized QAbstractFileEngine methods to fix enums overlapping
some QFileSystemMetaData enums overlap with QFile::Permissions still but
that is on purpose
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 30 Oct 2022 01:04:43 +0000 (03:04 +0200)]
build fix for the case when QT_NO_CALENDARWIDGET or QT_NO_DATETIMEEDIT is defined
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 30 Oct 2022 00:33:51 +0000 (03:33 +0300)]
QT_NO_IMAGEFORMAT_XPM config option is no longer broken
Katie does not use images in that format
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 30 Oct 2022 00:20:43 +0000 (03:20 +0300)]
Merge branch 'master' of https://scm.osdn.net/gitroot/kde/Katie
Ivailo Monev [Sat, 29 Oct 2022 23:51:53 +0000 (02:51 +0300)]
QFileInfo no longer requires abstraction
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 29 Oct 2022 23:15:21 +0000 (02:15 +0300)]
FreeBSD package footprint update
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 29 Oct 2022 23:13:20 +0000 (02:13 +0300)]
remove redundant QAbstractSocket::readLineData() method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 29 Oct 2022 22:20:56 +0000 (01:20 +0300)]
remove unused variable in QDirIteratorPrivate::pushDirect()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 29 Oct 2022 22:01:11 +0000 (01:01 +0300)]
require type/file arguments for QAbstractFileEngine methods
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 30 Oct 2022 00:48:42 +0000 (03:48 +0300)]
remove unused QAbstractFileEngine::entryList() method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 30 Oct 2022 00:44:03 +0000 (03:44 +0300)]
remove unused QAbstractFileEngine methods
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 30 Oct 2022 00:27:43 +0000 (03:27 +0300)]
QDir no longer requires abstraction
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 30 Oct 2022 00:14:11 +0000 (03:14 +0300)]
remove TODO in QFileSystemModelPrivate::node()
QAbstractFileEngine::caseSensitive() was removed
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 29 Oct 2022 20:49:14 +0000 (23:49 +0300)]
remove now unused QDirIteratorPrivate member
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 29 Oct 2022 20:33:46 +0000 (23:33 +0300)]
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>
Ivailo Monev [Sat, 29 Oct 2022 22:40:13 +0000 (01:40 +0300)]
uninline QAbstractFileEnginePrivate constructor
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 29 Oct 2022 22:33:43 +0000 (01:33 +0300)]
QAbstractFileEngine and QAbstractFileEngineIterator documentation update
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 29 Oct 2022 18:20:01 +0000 (21:20 +0300)]
merge QFSFileEngine into QAbstractFileEngine
that finally happened
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 29 Oct 2022 18:09:08 +0000 (21:09 +0300)]
remove unused MyEngine class in QFile test
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 29 Oct 2022 18:07:10 +0000 (21:07 +0300)]
remove unused EngineWithNoIterator class in QDirIterator test
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 29 Oct 2022 16:27:07 +0000 (19:27 +0300)]
Merge branch 'master' of https://scm.osdn.net/gitroot/kde/Katie
Ivailo Monev [Sat, 29 Oct 2022 16:26:39 +0000 (19:26 +0300)]
remove code for always false condition
QFSFileEngine::caseSensitive() returns true and QFSFileEngine is the only
class to derive from QAbstractFileEngine
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 29 Oct 2022 11:27:17 +0000 (14:27 +0300)]
typo
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 29 Oct 2022 11:14:41 +0000 (14:14 +0300)]
remove unused QTemporaryFile::createLocalFile() methods
were used for transfering resources to disk
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 29 Oct 2022 07:34:57 +0000 (10:34 +0300)]
bye RCC
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 29 Oct 2022 06:10:02 +0000 (09:10 +0300)]
convert resources to static data
images are in PNG format for now but that is likely to change
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 29 Oct 2022 02:28:54 +0000 (05:28 +0300)]
pass the format/subtype to QPpmHandler constructor from createReadHandlerHelper()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 29 Oct 2022 01:26:29 +0000 (04:26 +0300)]
use the installed images instead of resources for qdbuviewer and qtconfig
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 29 Oct 2022 01:02:49 +0000 (04:02 +0300)]
do not use resource in QDir benchmark
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 29 Oct 2022 01:02:24 +0000 (04:02 +0300)]
adjust expected data in QDir benchmark
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 29 Oct 2022 00:58:06 +0000 (03:58 +0300)]
remove broken benchmarks
require example sources
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 29 Oct 2022 00:54:26 +0000 (03:54 +0300)]
adjust expected data in QTextDocument test case
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 29 Oct 2022 00:38:51 +0000 (03:38 +0300)]
remove tests related to resources (QRC)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 29 Oct 2022 02:11:08 +0000 (05:11 +0300)]
remove invalid/unsupported Qt::WindowType enums
same as Qt::WindowType::Dialog and Qt::WindowType::Tool, note that tool is
alias for the X11 _NET_WM_WINDOW_TYPE_UTILITY. for reference:
https://specifications.freedesktop.org/wm-spec/latest/ar01s05.html#idm45374033166992
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 29 Oct 2022 01:05:07 +0000 (04:05 +0300)]
remove unused Option::qrcOutputFile member
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 29 Oct 2022 01:02:01 +0000 (04:02 +0300)]
remove obsolete QAbstractFormBuilder methods
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 28 Oct 2022 20:44:04 +0000 (23:44 +0300)]
initialize variable in QDBusConnectionPrivate::deliverCall()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 28 Oct 2022 19:31:30 +0000 (22:31 +0300)]
remove designer component leftover
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 28 Oct 2022 19:12:31 +0000 (22:12 +0300)]
remove designer tool
new one will be coded post 4.12
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 28 Oct 2022 17:38:40 +0000 (20:38 +0300)]
remove redundant QFORMINTERNAL_NAMESPACE definition checks
it is no longer defined
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 28 Oct 2022 16:51:19 +0000 (19:51 +0300)]
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>
Ivailo Monev [Fri, 28 Oct 2022 02:29:48 +0000 (05:29 +0300)]
Merge branch 'master' of https://scm.osdn.net/gitroot/kde/Katie
Ivailo Monev [Fri, 28 Oct 2022 02:29:25 +0000 (05:29 +0300)]
bootstrap MOC does not require QTemporaryFile
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Thu, 27 Oct 2022 23:32:49 +0000 (02:32 +0300)]
package footprint file update
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Thu, 27 Oct 2022 09:46:07 +0000 (12:46 +0300)]
drop foreach() compat
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Thu, 27 Oct 2022 04:40:02 +0000 (07:40 +0300)]
do not use QByteArray object as default buffer in QBuffer
that way no QByteArray reference is kept in QBuffer for buffers from raw
data
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 26 Oct 2022 19:07:31 +0000 (22:07 +0300)]
check for self assignment and copy the codec name in QTextConverter assignment operator
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 26 Oct 2022 03:16:29 +0000 (06:16 +0300)]
allocate one bit for the terminator in QDataStream::readBytes()
fixes regression since
feaf1a6a21499aeabee5829ab2fd109b29e8008e
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 26 Oct 2022 03:53:48 +0000 (06:53 +0300)]
do not build QTextCodec and QTextConverter code when QT_NO_TEXTCODEC is defined
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 26 Oct 2022 03:39:59 +0000 (06:39 +0300)]
rename QTextCodecPrivate and QTextConverterPrivate members
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 26 Oct 2022 03:08:28 +0000 (06:08 +0300)]
use specialized private class for QTextConverter
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 26 Oct 2022 02:41:17 +0000 (05:41 +0300)]
public classes static data update
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Tue, 25 Oct 2022 05:04:56 +0000 (08:04 +0300)]
QTextCodec rewrite
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 24 Oct 2022 18:56:12 +0000 (21:56 +0300)]
fix regression since
cd5217cdbcf47683f1b63fd42b63d354ea014bda
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 23 Oct 2022 14:34:57 +0000 (17:34 +0300)]
allocate signature after checking the member length in QMetaObject::invokeMethod()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 23 Oct 2022 14:30:04 +0000 (17:30 +0300)]
allocate buffer via QSTACKARRAY() in QMetaObject::normalizedType()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 23 Oct 2022 05:17:09 +0000 (08:17 +0300)]
remove QT_NO_DEPRECATED check
it was used to not build deprecated functionality, now there is only one
deprecated method in the D-Bus component
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 23 Oct 2022 05:03:07 +0000 (08:03 +0300)]
remove unused header inclusions in qbenchmark source file
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 21 Oct 2022 22:00:19 +0000 (01:00 +0300)]
remove redundant QApplication::exec()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 21 Oct 2022 20:32:10 +0000 (23:32 +0300)]
Merge branch 'master' of https://scm.osdn.net/gitroot/kde/Katie
Ivailo Monev [Fri, 21 Oct 2022 23:11:20 +0000 (02:11 +0300)]
minor QMatrix::map() optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 21 Oct 2022 20:31:59 +0000 (23:31 +0300)]
remove redundant QFile::close() call inqt_unix_query() function
QFile::close() is called from QFile destructor
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 21 Oct 2022 16:22:15 +0000 (19:22 +0300)]
limit QImage dimensions to USHRT_MAX
65535x65535 is more than enough
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 21 Oct 2022 13:42:20 +0000 (16:42 +0300)]
allocate temporary memory via for the image via malloc in QKatHandler
QByteArray does not benefit the reading/writing process because the data is
not shared
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 21 Oct 2022 10:56:21 +0000 (13:56 +0300)]
de-duplicate code
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 21 Oct 2022 10:42:55 +0000 (13:42 +0300)]
remove unused qbuffer header inclusion in qxml source file
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 21 Oct 2022 10:28:09 +0000 (13:28 +0300)]
remove obsolete QGraphicsView optimization enum
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 21 Oct 2022 10:06:34 +0000 (13:06 +0300)]
fix regression since
f48725ae734e87d97089b9f3e53219e7487223d2
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 21 Oct 2022 06:01:19 +0000 (09:01 +0300)]
save the KAT image in the same format as the original
images are still ~5x smaller than the orignal
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 21 Oct 2022 05:27:30 +0000 (08:27 +0300)]
KAT image writing optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 21 Oct 2022 04:10:38 +0000 (07:10 +0300)]
KAT image reading optimization
no change in the format since writing QByteArray to QDataStream writes
its length
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 21 Oct 2022 03:55:56 +0000 (06:55 +0300)]
allocate the exact chunk of memory required to read the bytes from QDataStream::readBytes()
it will eventually be allocated anyway
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Thu, 20 Oct 2022 22:31:10 +0000 (01:31 +0300)]
remove unused QXpmHandler member
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 21 Oct 2022 01:22:04 +0000 (04:22 +0300)]
assume device is valid in read_xpm_body() function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 21 Oct 2022 01:21:35 +0000 (04:21 +0300)]
stream QBrush enums as the smallest integer
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 21 Oct 2022 00:49:48 +0000 (03:49 +0300)]
XPM image writing is not supported
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Thu, 20 Oct 2022 20:31:45 +0000 (23:31 +0300)]
use memcmp() instead of qstrncmp() for header comparison in QKatHandler::option()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Thu, 20 Oct 2022 18:09:27 +0000 (21:09 +0300)]
remove XPM-specialized QImage and QPixmap constructors
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Thu, 20 Oct 2022 17:17:55 +0000 (20:17 +0300)]
convert QDataStream test image to PNG
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Thu, 20 Oct 2022 17:11:13 +0000 (20:11 +0300)]
convert QRegion test image to PNG
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Thu, 20 Oct 2022 17:10:14 +0000 (20:10 +0300)]
convert default DnD pixmap to KAT format
NOTE: DnD requires PPM image format support, KAT only for the default
pixmap but should function even without default image
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Thu, 20 Oct 2022 02:32:31 +0000 (05:32 +0300)]
libdeflate now provides pkg-config file
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 19 Oct 2022 13:55:05 +0000 (16:55 +0300)]
save and restore the device position when getting KAT image size
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Tue, 18 Oct 2022 14:13:40 +0000 (17:13 +0300)]
remove unused non-contigious device classes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Tue, 18 Oct 2022 02:47:00 +0000 (05:47 +0300)]
QIODevice::readLine() optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Tue, 18 Oct 2022 01:46:42 +0000 (04:46 +0300)]
remove unused variables in getPixmap() and getImage() functions
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Tue, 18 Oct 2022 01:15:16 +0000 (04:15 +0300)]
bye QDataStream versioning
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 14 Oct 2022 19:24:57 +0000 (22:24 +0300)]
pass the QByteArray size to QString constructors instead of recomputing it
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 14 Oct 2022 18:39:22 +0000 (21:39 +0300)]
avoid temporary in QItemDelegate::selected()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>