OSDN Git Service

kde/Katie.git
20 months agoMerge branch 'master' of https://scm.osdn.net/gitroot/kde/Katie
Ivailo Monev [Tue, 1 Nov 2022 20:45:01 +0000 (22:45 +0200)]
Merge branch 'master' of https://scm.osdn.net/gitroot/kde/Katie

20 months agoremove unused QFileInfoPrivate::FileName enums
Ivailo Monev [Tue, 1 Nov 2022 20:44:49 +0000 (22:44 +0200)]
remove unused QFileInfoPrivate::FileName enums

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
20 months agoFreeBSD package footprint file update
Ivailo Monev [Tue, 1 Nov 2022 20:27:36 +0000 (22:27 +0200)]
FreeBSD package footprint file update

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
20 months agoalways read data without intermediate buffer from QIODevice::read()
Ivailo Monev [Tue, 1 Nov 2022 19:34:16 +0000 (21:34 +0200)]
always read data without intermediate buffer from QIODevice::read()

the main user of QIODevice is QFile and it uses O_DSYNC/O_SYNC for
unbuffered I/O meaning the QIODevice buffer does not benefit it because the
filesystem cache already does that

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
20 months agocorrect function name passed to macro in QIODevice::ungetChar()
Ivailo Monev [Tue, 1 Nov 2022 21:39:33 +0000 (23:39 +0200)]
correct function name passed to macro in QIODevice::ungetChar()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
20 months agouse qt_safe_read() instead of calling the virtual QFile::readData() in QFile::readLin...
Ivailo Monev [Tue, 1 Nov 2022 17:24:50 +0000 (19:24 +0200)]
use qt_safe_read() instead of calling the virtual QFile::readData() in QFile::readLineData()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
20 months agodrop support for mapping QFile via mmap()
Ivailo Monev [Tue, 1 Nov 2022 17:13:33 +0000 (19:13 +0200)]
drop support for mapping QFile via mmap()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
20 months agodo only basic ELF checks from qt_unix_query()
Ivailo Monev [Tue, 1 Nov 2022 17:11:15 +0000 (19:11 +0200)]
do only basic ELF checks from qt_unix_query()

QLibraryPrivate::loadPlugin() resolves the symbol, it is not assumed to be
present in the plugin which means a basic ELF check is more than enough
(the important thing is to _not_ load .debug files as those may cause a
crash)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
20 months agocorrect the buffer size in qRandomUuid() function
Ivailo Monev [Tue, 1 Nov 2022 07:39:49 +0000 (09:39 +0200)]
correct the buffer size in qRandomUuid() function

the initial implementation was not passing the buffer size to the
QByteArray constructor so the additional bit was for qstrlen()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
20 months agodo not remove the file from the EXDEV error codepath in QFileSystemEngine::renameFile()
Ivailo Monev [Tue, 1 Nov 2022 05:34:54 +0000 (07:34 +0200)]
do not remove the file from the EXDEV error codepath in QFileSystemEngine::renameFile()

QFileSystemEngine::renameFile() is supposed to fail if the file exists

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
20 months agodeep-copy the charset name in QTextCodec::codecForText()
Ivailo Monev [Tue, 1 Nov 2022 03:36:48 +0000 (05:36 +0200)]
deep-copy the charset name in QTextCodec::codecForText()

it is documented to remain valid as long as UCharsetMatch is

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
20 months agofix QDir::absoluteFilePath() regression
Ivailo Monev [Tue, 1 Nov 2022 02:14:37 +0000 (04:14 +0200)]
fix QDir::absoluteFilePath() regression

somewhere in the abstraction engine it was returned clean

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
20 months agodo not use QTextCodec::codecForLocale() for converting QString to decoded locale...
Ivailo Monev [Mon, 31 Oct 2022 22:24:06 +0000 (00:24 +0200)]
do not use QTextCodec::codecForLocale() for converting QString to decoded locale-encoded string

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
20 months agoinline toLocal8Bit_helper() function and use it in QString::toLocal8Bit()
Ivailo Monev [Mon, 31 Oct 2022 22:12:59 +0000 (00:12 +0200)]
inline toLocal8Bit_helper() function and use it in QString::toLocal8Bit()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
20 months agoset localecodec variable from QTextCodecPrivate::localeCodec()
Ivailo Monev [Mon, 31 Oct 2022 22:12:26 +0000 (00:12 +0200)]
set localecodec variable from QTextCodecPrivate::localeCodec()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
20 months agokeep reference to the native filepath in QFile::resize()
Ivailo Monev [Mon, 31 Oct 2022 23:59:55 +0000 (01:59 +0200)]
keep reference to the native filepath in QFile::resize()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
20 months agodo not use QTextCodec::codecForLocale() for converting QString to locale-encoded...
Ivailo Monev [Mon, 31 Oct 2022 19:48:55 +0000 (21:48 +0200)]
do not use QTextCodec::codecForLocale() for converting QString to locale-encoded string

if QString::toLocal8Bit() is called from global static destructor it may
be too late to cache a QTextCodec, in fact it may cause a crash.
QTextCodec::codecForLocale() also has to lock a global mutex

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
20 months agoQDataStream documentation update
Ivailo Monev [Mon, 31 Oct 2022 19:12:58 +0000 (21:12 +0200)]
QDataStream documentation update

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
20 months agocompiler warnings fix
Ivailo Monev [Mon, 31 Oct 2022 17:55:55 +0000 (19:55 +0200)]
compiler warnings fix

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
20 months agoQFile review
Ivailo Monev [Mon, 31 Oct 2022 20:45:32 +0000 (22:45 +0200)]
QFile review

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
20 months agomerge QAbstractFileEngine into QFile
Ivailo Monev [Mon, 31 Oct 2022 08:28:06 +0000 (10:28 +0200)]
merge QAbstractFileEngine into QFile

the behaviour of QTemporaryFile changes slightly, e.g. downcast to QFile
and open() with flags does not work like before - if you down-cast
better be sure you want to call the down-casted method (it is like a
C-style cast)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
20 months agoQT_NO_SIGNALMAPPER config option is no longer broken
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>
20 months agoremove unused QContiguousCache class
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>
20 months agoremove unused and ambiguous QDataStream operators
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>
20 months agoworkaround rename() and renameat2() limitation from QFileSystemEngine::renameFile()
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>
20 months agoremove tst_QMainWindow compat test case
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>
20 months agouse QDataStream::HostEndian as byte order by default for QDataStream and do not byte...
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>
20 months agoset the byte order to big endian when testing with big endian data in QDataStream...
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>
20 months agoset the byte order to big endian when testing with big endian data in QDataStream...
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>
20 months agouse the QDataStream byteorder member for swap check
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>
20 months agothe test data in tst_QVariant::loadUnknownUserType() is big endian
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>
20 months agoset the byte order of the QDataStream objects used for KAT images reading/writing...
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>
20 months agoimplement specialized QAbstractFileEngine methods to fix enums overlapping
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>
20 months agobuild fix for the case when QT_NO_CALENDARWIDGET or QT_NO_DATETIMEEDIT is defined
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>
20 months agoQT_NO_IMAGEFORMAT_XPM config option is no longer broken
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>
20 months agoMerge branch 'master' of https://scm.osdn.net/gitroot/kde/Katie
Ivailo Monev [Sun, 30 Oct 2022 00:20:43 +0000 (03:20 +0300)]
Merge branch 'master' of https://scm.osdn.net/gitroot/kde/Katie

20 months agoQFileInfo no longer requires abstraction
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>
20 months agoFreeBSD package footprint update
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>
20 months agoremove redundant QAbstractSocket::readLineData() method
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>
20 months agoremove unused variable in QDirIteratorPrivate::pushDirect()
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>
20 months agorequire type/file arguments for QAbstractFileEngine methods
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>
20 months agoremove unused QAbstractFileEngine::entryList() method
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>
20 months agoremove unused QAbstractFileEngine methods
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>
20 months agoQDir no longer requires abstraction
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>
20 months agoremove TODO in QFileSystemModelPrivate::node()
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>
20 months agoremove now unused QDirIteratorPrivate member
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>
20 months agouse only native filesystem iterator in QDirIterator
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>
20 months agouninline QAbstractFileEnginePrivate constructor
Ivailo Monev [Sat, 29 Oct 2022 22:40:13 +0000 (01:40 +0300)]
uninline QAbstractFileEnginePrivate constructor

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
20 months agoQAbstractFileEngine and QAbstractFileEngineIterator documentation update
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>
20 months agomerge QFSFileEngine into QAbstractFileEngine
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>
20 months agoremove unused MyEngine class in QFile test
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>
20 months agoremove unused EngineWithNoIterator class in QDirIterator test
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>
20 months agoMerge branch 'master' of https://scm.osdn.net/gitroot/kde/Katie
Ivailo Monev [Sat, 29 Oct 2022 16:27:07 +0000 (19:27 +0300)]
Merge branch 'master' of https://scm.osdn.net/gitroot/kde/Katie

20 months agoremove code for always false condition
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>
20 months agotypo
Ivailo Monev [Sat, 29 Oct 2022 11:27:17 +0000 (14:27 +0300)]
typo

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
20 months agoremove unused QTemporaryFile::createLocalFile() methods
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>
20 months agobye RCC
Ivailo Monev [Sat, 29 Oct 2022 07:34:57 +0000 (10:34 +0300)]
bye RCC

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
20 months agoconvert resources to static data
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>
20 months agopass the format/subtype to QPpmHandler constructor from createReadHandlerHelper()
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>
20 months agouse the installed images instead of resources for qdbuviewer and qtconfig
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>
20 months agodo not use resource in QDir benchmark
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>
20 months agoadjust expected data in QDir benchmark
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>
20 months agoremove broken benchmarks
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>
20 months agoadjust expected data in QTextDocument test case
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>
20 months agoremove tests related to resources (QRC)
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>
20 months agoremove invalid/unsupported Qt::WindowType enums
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>
20 months agoremove unused Option::qrcOutputFile member
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>
20 months agoremove obsolete QAbstractFormBuilder methods
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>
20 months agoinitialize variable in QDBusConnectionPrivate::deliverCall()
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>
20 months agoremove designer component leftover
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>
20 months agoremove designer tool
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>
20 months agoremove redundant QFORMINTERNAL_NAMESPACE definition checks
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>
20 months agodecouple custom widget classes from designer component
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>
20 months agoMerge branch 'master' of https://scm.osdn.net/gitroot/kde/Katie
Ivailo Monev [Fri, 28 Oct 2022 02:29:48 +0000 (05:29 +0300)]
Merge branch 'master' of https://scm.osdn.net/gitroot/kde/Katie

20 months agobootstrap MOC does not require QTemporaryFile
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>
20 months agopackage footprint file update
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>
20 months agodrop foreach() compat
Ivailo Monev [Thu, 27 Oct 2022 09:46:07 +0000 (12:46 +0300)]
drop foreach() compat

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
20 months agodo not use QByteArray object as default buffer in QBuffer
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>
20 months agocheck for self assignment and copy the codec name in QTextConverter assignment operator
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>
20 months agoallocate one bit for the terminator in QDataStream::readBytes()
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>
20 months agodo not build QTextCodec and QTextConverter code when QT_NO_TEXTCODEC is defined
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>
20 months agorename QTextCodecPrivate and QTextConverterPrivate members
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>
20 months agouse specialized private class for QTextConverter
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>
20 months agopublic classes static data update
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>
20 months agoQTextCodec rewrite
Ivailo Monev [Tue, 25 Oct 2022 05:04:56 +0000 (08:04 +0300)]
QTextCodec rewrite

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
20 months agofix regression since cd5217cdbcf47683f1b63fd42b63d354ea014bda
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>
20 months agoallocate signature after checking the member length in QMetaObject::invokeMethod()
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>
20 months agoallocate buffer via QSTACKARRAY() in QMetaObject::normalizedType()
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>
20 months agoremove QT_NO_DEPRECATED check
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>
20 months agoremove unused header inclusions in qbenchmark source file
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>
20 months agoremove redundant QApplication::exec()
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>
20 months agoMerge branch 'master' of https://scm.osdn.net/gitroot/kde/Katie
Ivailo Monev [Fri, 21 Oct 2022 20:32:10 +0000 (23:32 +0300)]
Merge branch 'master' of https://scm.osdn.net/gitroot/kde/Katie

20 months agominor QMatrix::map() optimization
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>
20 months agoremove redundant QFile::close() call inqt_unix_query() function
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>
20 months agolimit QImage dimensions to USHRT_MAX
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>
20 months agoallocate temporary memory via for the image via malloc in QKatHandler
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>
20 months agode-duplicate code
Ivailo Monev [Fri, 21 Oct 2022 10:56:21 +0000 (13:56 +0300)]
de-duplicate code

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
20 months agoremove unused qbuffer header inclusion in qxml source file
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>
20 months agoremove obsolete QGraphicsView optimization enum
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>
20 months agofix regression since f48725ae734e87d97089b9f3e53219e7487223d2
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>