OSDN Git Service
Ivailo Monev [Mon, 29 May 2023 17:35:24 +0000 (20:35 +0300)]
format qsvgiohandler source file
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 29 May 2023 17:05:01 +0000 (20:05 +0300)]
QSvgIOHandler::loadDevice() optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 29 May 2023 16:58:37 +0000 (19:58 +0300)]
simplify and optimize QSvgIOHandler
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 29 May 2023 16:17:08 +0000 (19:17 +0300)]
require subType to be passed to QPpmHandler::canRead()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 29 May 2023 15:39:48 +0000 (18:39 +0300)]
require libdeflate and unbundle it
kdelibs requires too
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 29 May 2023 05:46:53 +0000 (08:46 +0300)]
implement option for imgconv utility to save the raw image via QDataStream
mostly for testing purposes (e.g. what compression format can compress the
data quick and with decent compression ratio?)
on a side note that an actual raw image format
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 29 May 2023 01:31:06 +0000 (04:31 +0300)]
QTextStream documentation update
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 27 May 2023 16:02:33 +0000 (19:02 +0300)]
return QString from QFileSystemEngine::getLinkTarget() and rename it
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 27 May 2023 06:19:48 +0000 (09:19 +0300)]
set the QIODevice error from QFile
much like QAbstractSocket the error string is now shared with QIODevice
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 27 May 2023 05:59:59 +0000 (08:59 +0300)]
use the static QFile::setPermissions() method in QStandardPaths::writableLocation()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 27 May 2023 05:45:03 +0000 (08:45 +0300)]
static QFile methods optimizations
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 27 May 2023 05:08:16 +0000 (08:08 +0300)]
remove redundant QIODevicePrivate member
QFile already caches if the fd is sequential in the metadata. QProcess,
QAbstractSocket and other classes simply return true from reimplementation
of QIODevice::isSequential()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 27 May 2023 03:57:52 +0000 (06:57 +0300)]
replace hardcoded enum value in QAbstractSocketEnginePrivate::setError()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 27 May 2023 03:49:44 +0000 (06:49 +0300)]
require all QAbstractSocketEngine::initialize() arguments
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 27 May 2023 03:37:23 +0000 (06:37 +0300)]
QFileSystemEntry optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 27 May 2023 02:44:57 +0000 (05:44 +0300)]
genlocale script comment correction
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 27 May 2023 02:25:20 +0000 (05:25 +0300)]
FreeBSD footprint file update
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 27 May 2023 01:02:04 +0000 (04:02 +0300)]
update tables data to CLDR v43
hacks included
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 26 May 2023 02:38:48 +0000 (05:38 +0300)]
pass the scalable icons support QIconLoader member to QIconTheme
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 26 May 2023 02:15:15 +0000 (05:15 +0300)]
preperations to conditionally check for scalable icons from icon loader
some icon themes provide both scalable and non-scalable icons
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 26 May 2023 01:49:37 +0000 (04:49 +0300)]
add QIcon benchmark
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 26 May 2023 01:18:41 +0000 (04:18 +0300)]
const-correct QIconLoader methods
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 26 May 2023 01:13:14 +0000 (04:13 +0300)]
make QIconLoaderEngineEntry pixmap member private
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 26 May 2023 01:11:22 +0000 (04:11 +0300)]
QIcon documentation update
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 26 May 2023 01:11:11 +0000 (04:11 +0300)]
mark QIconLoaderEngine reimplementations as final
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Thu, 25 May 2023 00:05:43 +0000 (03:05 +0300)]
remove declaration of non-existing QIconLoader::dirInfo() method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Thu, 25 May 2023 00:02:17 +0000 (03:02 +0300)]
QIconLoaderEngineEntry and QIconLoader friendship has been broken
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 24 May 2023 23:33:59 +0000 (02:33 +0300)]
README update
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 24 May 2023 23:29:43 +0000 (02:29 +0300)]
mark QPixmapIconEngine reimplementations as final, QPixmapIconEngine::bestMatch() as private
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 24 May 2023 23:07:37 +0000 (02:07 +0300)]
resolveColor() function optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 24 May 2023 22:28:53 +0000 (01:28 +0300)]
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>
Ivailo Monev [Wed, 24 May 2023 21:40:07 +0000 (00:40 +0300)]
QIcon documentation update
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 24 May 2023 20:33:36 +0000 (23:33 +0300)]
remove redundant QPaintDevice physical DPI getters
return same values as the logical getters for anything but print devices
which have their own resolution option (defaulting to the application DPI)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 24 May 2023 04:43:10 +0000 (07:43 +0300)]
remove unused QWExtra members
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 24 May 2023 02:05:46 +0000 (05:05 +0300)]
drop auxiliary QImage data
no reason to store it when it is calculated from the DPI
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 24 May 2023 00:56:03 +0000 (03:56 +0300)]
QImage::rgbSwapped() optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 22 May 2023 16:29:06 +0000 (19:29 +0300)]
fix random buffer filling in qRandomUuid() function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 22 May 2023 00:50:02 +0000 (03:50 +0300)]
prefix the QML state debug config option
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 20 May 2023 18:00:49 +0000 (21:00 +0300)]
use the QOpacityEffect::cancel() method in qFadeEffect() function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 19 May 2023 23:45:47 +0000 (02:45 +0300)]
FreeBSD footprint file update
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 19 May 2023 23:24:43 +0000 (02:24 +0300)]
use https://scm.osdn.net/gitroot/kde/Katie.git to clone the Katie source for the FreeBSD package
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 19 May 2023 21:06:31 +0000 (00:06 +0300)]
QSettings setup optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 19 May 2023 06:18:54 +0000 (09:18 +0300)]
update bundled libdeflate to v1.18
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 19 May 2023 05:04:36 +0000 (08:04 +0300)]
update URL TLDs table data
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 19 May 2023 02:07:37 +0000 (05:07 +0300)]
drop now unused scripttools component
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Thu, 18 May 2023 23:22:23 +0000 (02:22 +0300)]
correct indentation in rotated270() function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Thu, 18 May 2023 23:22:05 +0000 (02:22 +0300)]
QEasingCurve copy constructor optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Thu, 18 May 2023 22:18:04 +0000 (01:18 +0300)]
remove redundant bits in qRandomUuid() function
at first I was thinking about making it compliant with the RFC but then I
figured none of the use-cases require it to be compliant (e.g.
partitionmanager and the tools that use the generated UUID)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Thu, 18 May 2023 22:16:15 +0000 (01:16 +0300)]
drop support for changing QDataStream precision
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 14 Jan 2023 03:42:31 +0000 (05:42 +0200)]
mark some QThreadPool branches as unlikely
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 14 Jan 2023 03:39:50 +0000 (05:39 +0200)]
mark QThreadPoolThread::run() as final
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 14 Jan 2023 03:39:11 +0000 (05:39 +0200)]
format and indent qthreadpool source file
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 14 Jan 2023 03:24:07 +0000 (05:24 +0200)]
remove unused and internal QThreadPoolPrivate::stealRunnable() method
was used by QFutureInterface
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 2 Jan 2023 04:42:13 +0000 (06:42 +0200)]
someone's typo
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 31 Dec 2022 06:49:17 +0000 (08:49 +0200)]
save errno before calling any other function in QLocalServerPrivate::setError()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 28 Dec 2022 06:44:50 +0000 (08:44 +0200)]
remove unused QTcpServerPrivate members
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Tue, 27 Dec 2022 19:41:19 +0000 (21:41 +0200)]
remove unused socket exception notification
doubles as performance optimization for sockets (QTcpServer and QUdpSocket)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Tue, 27 Dec 2022 00:43:11 +0000 (02:43 +0200)]
implement default QStatInfo constructor and use it as optimization in QFileSystemWatcherPrivate::_q_timeout()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 25 Dec 2022 23:59:24 +0000 (01:59 +0200)]
do not manually set the socket state and error of QTcpServer
that means that once the socket engine is closed the error becomes unknown
tho
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 25 Dec 2022 23:12:39 +0000 (01:12 +0200)]
remove redundant pointer check in QTcpServer::listen()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 24 Dec 2022 14:52:34 +0000 (16:52 +0200)]
remove the unused gamma option of QImageWriter
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 24 Dec 2022 12:17:46 +0000 (14:17 +0200)]
remove now unused katie_setup_object() macro
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 23 Dec 2022 21:54:16 +0000 (23:54 +0200)]
fix regression since
51f2253d73b140638853c97b1351c19ec7e8fa4f
png_read_image() handles interlacing internally
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 23 Dec 2022 19:14:40 +0000 (21:14 +0200)]
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>
Ivailo Monev [Wed, 21 Dec 2022 21:05:24 +0000 (23:05 +0200)]
update PROJECT_LOGO in doxygen.conf
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 21 Dec 2022 20:48:20 +0000 (22:48 +0200)]
static QFile methods optimizations
the QFile::remove() and QFile::rename() methods are used a lot (e.g. to
remove or move temporary files) so the optimization will be noticable
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 21 Dec 2022 20:20:20 +0000 (22:20 +0200)]
QFile documentation review
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 21 Dec 2022 18:32:08 +0000 (20:32 +0200)]
QFileSystemIterator optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 21 Dec 2022 16:00:30 +0000 (18:00 +0200)]
mark the error case in qt_unix_query() as unlikely
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 21 Dec 2022 15:56:26 +0000 (17:56 +0200)]
remove unused qmap header inclusion in qlibrary source file
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 21 Dec 2022 15:53:25 +0000 (17:53 +0200)]
qt_unix_query() function optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 21 Dec 2022 15:43:21 +0000 (17:43 +0200)]
keep reference to QByteArray object in QLibraryPrivate::load_sys()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 21 Dec 2022 15:40:14 +0000 (17:40 +0200)]
const-ify QFactoryLoaderPrivate::suffix member
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 21 Dec 2022 14:05:49 +0000 (16:05 +0200)]
merge QFileSystemWatcherEngineUnix into QFileSystemWatcherPrivate
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Wed, 21 Dec 2022 13:14:10 +0000 (15:14 +0200)]
track watched files and directories only in QFileSystemWatcherEngineUnix
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Tue, 20 Dec 2022 18:49:17 +0000 (20:49 +0200)]
simplify emision of QFileSystemWatcher signals
the proxy signals are just redundant
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 18 Dec 2022 17:57:27 +0000 (19:57 +0200)]
reuse QFontDatabase object in tst_QCssParser::extractFontFamily_data()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 18 Dec 2022 17:56:54 +0000 (19:56 +0200)]
make Debian package depend on fonts-freefont-ttf
it is the last resort font
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 18 Dec 2022 17:46:31 +0000 (19:46 +0200)]
update tables data to CLDR v42
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 18 Dec 2022 16:49:01 +0000 (18:49 +0200)]
update URL TLDs table data
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 17 Dec 2022 12:40:02 +0000 (14:40 +0200)]
remove redundant QFontInfo class
QFontDatabase::font() does the same (i.e. resolves the font)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Tue, 13 Dec 2022 13:24:43 +0000 (15:24 +0200)]
do not return boolean from QBitArray::fill()
the return value is always true
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 12 Dec 2022 08:50:04 +0000 (10:50 +0200)]
drop support for custom QEasingCurve type
use one of the animation classes instead if such is required
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 10 Dec 2022 10:47:17 +0000 (12:47 +0200)]
search for programs in the standard executables locations in addition to PATH
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 10 Dec 2022 10:43:05 +0000 (12:43 +0200)]
look for the program before exec-ing from QProcess
stat-ing multiple times is much more optimal than exec-ing multiple times,
bonus points for using QStandardPaths::findExecutable() to look for the
program (which should check for it in ~/.local/bin too)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Thu, 1 Dec 2022 19:27:11 +0000 (21:27 +0200)]
version bump
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Thu, 1 Dec 2022 16:27:21 +0000 (18:27 +0200)]
remove redundant QTextControl::event() reimplementation
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Tue, 29 Nov 2022 02:22:50 +0000 (04:22 +0200)]
use correct QString constructor for expected data in tst_QJsonDocument::read()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Tue, 29 Nov 2022 01:53:25 +0000 (03:53 +0200)]
always use QImage for QTextDocument resources
now that QPixmap always uses QImage (internally) it's better to use QImage
directly
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 28 Nov 2022 18:37:28 +0000 (20:37 +0200)]
check the time even if the serial is the same in QKeyMapper::translateKeyEvent()
apparently X11 sends key events with same serial even seconds after (if the
key is the same), also now only key presses will be considered
auto-repeated because X11 sends (fake/simulated) key release events
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Mon, 28 Nov 2022 08:43:02 +0000 (10:43 +0200)]
move the static variable outside the conditional code in QKeyMapper::translateKeyEvent()
fun fact: it is very easy to break auto-repeat code by reparenting QWidget
from a QPushButton event (KMediaWidget does it)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sun, 27 Nov 2022 00:51:24 +0000 (02:51 +0200)]
correct memcmp() return value checks in QTextConverter::toUnicode()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 26 Nov 2022 09:14:25 +0000 (11:14 +0200)]
return if ubrk_safeClone() fails in QTextBoundaryFinder assignment operator
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 26 Nov 2022 09:03:16 +0000 (11:03 +0200)]
call ubrk_following() and ubrk_preceding() with the current QTextBoundaryFinder position
I remember ubrk_following() and ubrk_preceding() causing a crash if the
position is not within the text bounds so leaving the -1 checks just in
case
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 26 Nov 2022 06:34:03 +0000 (08:34 +0200)]
check for self-assignment in QTextBoundaryFinder assignment operator
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Sat, 26 Nov 2022 04:44:56 +0000 (06:44 +0200)]
handle strings as UTF-8 encoded from QJsonDocument
the default QString codec is US-ASCII
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 25 Nov 2022 15:20:43 +0000 (17:20 +0200)]
chop BOMs from QTextConverter::toUnicode()
fun fact: anything that is checking for BOMs is either not passing them
to QTextCodec/QTextConverter (e.g. Kate) when converting or was just using
QTextCodec::IgnoreHeader flag (QXmlStreamWriter used to)
okular xps generator now works btw (xml files in .xps files seem to be
UTF-16 encoded with BOM)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 25 Nov 2022 00:53:41 +0000 (02:53 +0200)]
QPngHandler::write() optimization
why allocate when it can be done without?
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 25 Nov 2022 00:05:45 +0000 (02:05 +0200)]
inherit std::bitset<T> as private base class of QTimersSet
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
Ivailo Monev [Fri, 25 Nov 2022 00:03:25 +0000 (02:03 +0200)]
correct indendations in qslider source file
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>