OSDN Git Service
Ivailo Monev [Tue, 24 Dec 2019 19:19:32 +0000 (19:19 +0000)]
simplify the QSettings write check
the previous implementation was supposed to be write-optimized, for cases
when QSettings::setValue() followed by QSettings::sync() is called often.
it turns out that optimizing for reading from the settings without changing
the object is more beneficial as that is often the case.
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 24 Dec 2019 18:18:09 +0000 (18:18 +0000)]
optimize key/value and section/key splitting in ini_settings_read() function
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 24 Dec 2019 09:35:43 +0000 (09:35 +0000)]
lock QSettingsPrivate object that work with the same file only from QSettingsPrivate::write()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 24 Dec 2019 08:54:24 +0000 (08:54 +0000)]
link QCssParser test to xml component
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 24 Dec 2019 08:49:13 +0000 (08:49 +0000)]
link QThread test to system thread library
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 24 Dec 2019 08:43:58 +0000 (08:43 +0000)]
make use of QThread::yieldCurrentThread() in sql component threading test
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 24 Dec 2019 08:37:34 +0000 (08:37 +0000)]
link svg component to zlib libraries explicitly
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 24 Dec 2019 08:37:20 +0000 (08:37 +0000)]
link network component to OpenSSL libraries explicitly
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 24 Dec 2019 08:31:03 +0000 (08:31 +0000)]
set extra link libraries as private where applicable
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 24 Dec 2019 07:29:08 +0000 (07:29 +0000)]
use consistent name for locker in QSettingsPrivate::write()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 24 Dec 2019 07:28:40 +0000 (07:28 +0000)]
do not include Shell profile and linker config in Debian package
Shell profile file breaks cross-compilation because it exports
PKG_CONFIG_PATH
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 24 Dec 2019 05:53:06 +0000 (05:53 +0000)]
take prefix into account and use HEX string in QSharedMemoryPrivate::makePlatformSafeKey()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 24 Dec 2019 05:14:42 +0000 (05:14 +0000)]
remove redundant QT_NO_QOBJECT definition checks from qsettings_p header
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 24 Dec 2019 05:13:55 +0000 (05:13 +0000)]
fix synchronization of QSettings between multiple processes
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 24 Dec 2019 02:29:16 +0000 (02:29 +0000)]
replace QMetaType with QVariant enums where applicable in QVariant test
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 23 Dec 2019 21:05:10 +0000 (21:05 +0000)]
rework QSettings, use JSON as native format for it
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 23 Dec 2019 21:03:59 +0000 (21:03 +0000)]
adjust expected QVariant test data
it is possible to convert negative strings to integers now
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 23 Dec 2019 03:23:45 +0000 (03:23 +0000)]
quote varibles that may contain whitespace in KatieMacros and KatieBuildMacros CMake files
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 23 Dec 2019 03:18:46 +0000 (03:18 +0000)]
install translations as part of Runtime component
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 23 Dec 2019 02:09:46 +0000 (02:09 +0000)]
add QVariant test
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 23 Dec 2019 02:08:27 +0000 (02:08 +0000)]
fix extra core types QVariant conversion
Ivailo Monev [Mon, 23 Dec 2019 01:34:24 +0000 (01:34 +0000)]
avoid sorting and one condition in exportscan() function in genmap.py script
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 23 Dec 2019 01:08:58 +0000 (01:08 +0000)]
update options in qconfig header
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 22 Dec 2019 22:16:56 +0000 (22:16 +0000)]
install CMake files into architecture specific library directory [ci skip]
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 22 Dec 2019 20:55:04 +0000 (20:55 +0000)]
make the custom moc command depend on KATIE_MOC
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 22 Dec 2019 20:32:10 +0000 (20:32 +0000)]
replace xorg-dev with specific package names available for non-i386 architectures too
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 22 Dec 2019 20:29:45 +0000 (20:29 +0000)]
replace arm with armhf architecture in Debian control file
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 22 Dec 2019 20:29:08 +0000 (20:29 +0000)]
introduce KATIE_CROSS_EXEC for use in cross-compiling
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 22 Dec 2019 19:33:49 +0000 (19:33 +0000)]
remove g++ from Build-Depends in Debian control file [ci skip]
build-essential depends on it
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 22 Dec 2019 18:35:11 +0000 (18:35 +0000)]
add all supported architectures to Debian package control file [ci skip]
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 22 Dec 2019 18:24:24 +0000 (18:24 +0000)]
remove redundant QT_PREPEND_NAMESPACE() macro call in qt_debug_component() function
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 22 Dec 2019 18:21:46 +0000 (18:21 +0000)]
replace C-style cast with reinterpret_cast in qt_unix_query() function
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 22 Dec 2019 18:00:21 +0000 (18:00 +0000)]
update classes list in namefsck.py script [ci skip]
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 22 Dec 2019 17:58:34 +0000 (17:58 +0000)]
update classes map [ci skip]
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 22 Dec 2019 16:43:22 +0000 (16:43 +0000)]
rename qfontdatabase_x11 header to qfontdatabase_x11_p as it is private
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 22 Dec 2019 16:42:35 +0000 (16:42 +0000)]
create fancy QGraphicsSceneEvent header
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 22 Dec 2019 16:14:24 +0000 (16:14 +0000)]
guard qtestevent, qtestkeyboard, qtestmouse and qtesttouch headers with QT_GUI_LIB
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 22 Dec 2019 16:05:32 +0000 (16:05 +0000)]
exclude qtest_gui header from QtTest meta header again
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 22 Dec 2019 15:54:24 +0000 (15:54 +0000)]
replace FALSE with false
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 22 Dec 2019 15:30:34 +0000 (15:30 +0000)]
rework fancy and meta header generators
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 22 Dec 2019 03:18:27 +0000 (03:18 +0000)]
update Debian package symbols file [ci skip]
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 22 Dec 2019 02:42:16 +0000 (02:42 +0000)]
do not require certain fonts for QFont test
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 22 Dec 2019 01:52:45 +0000 (01:52 +0000)]
make QMetaType::Float core type and reorder enums while at it
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
asd
Ivailo Monev [Sun, 22 Dec 2019 01:29:50 +0000 (01:29 +0000)]
optimize static meta types table lookup
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 22 Dec 2019 01:23:27 +0000 (01:23 +0000)]
replace 0 with Q_NULLPTR where applicable
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 21 Dec 2019 19:46:45 +0000 (19:46 +0000)]
remove superfluous semicolon in QFile::encodeName()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 21 Dec 2019 19:45:47 +0000 (19:45 +0000)]
simplify QFontDatabase::addApplicationFont()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 21 Dec 2019 19:45:06 +0000 (19:45 +0000)]
fix registerFont() function regression since
fb253d03c77d31fd4d56c93d8ee961c8d4ddb0c1
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 21 Dec 2019 19:44:19 +0000 (19:44 +0000)]
add QFontMetrics test
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 21 Dec 2019 19:19:10 +0000 (19:19 +0000)]
add QFont test
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 21 Dec 2019 19:01:47 +0000 (19:01 +0000)]
take pixel size into account when creating QFont from string
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 21 Dec 2019 17:10:44 +0000 (17:10 +0000)]
use proper type for argument in qIsNumericType() and qIsFloatingPoint() functions
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 21 Dec 2019 16:30:55 +0000 (16:30 +0000)]
fix GUI QVariant types conversion
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 21 Dec 2019 01:34:49 +0000 (01:34 +0000)]
remove raw fonts support leftovers
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 20 Dec 2019 23:46:46 +0000 (23:46 +0000)]
stream and cast QVariant type member as int
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 20 Dec 2019 23:46:07 +0000 (23:46 +0000)]
replace QMetaType::Float with QVariant::Float where applicable
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 20 Dec 2019 23:44:45 +0000 (23:44 +0000)]
use consistent way to detect if colored message should be logged in messageType2String()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 20 Dec 2019 19:36:53 +0000 (19:36 +0000)]
make QVariant::Double from/to QVariant::Float conversion explicit and fix it
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 20 Dec 2019 16:46:47 +0000 (16:46 +0000)]
move QVariant::String specific case to switch in QVariant::canConvert()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 20 Dec 2019 15:48:06 +0000 (15:48 +0000)]
fix QVariant::Float type conversion regression since
71bd691d09470882be77dfa51f1509362c196d6b
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 20 Dec 2019 02:00:41 +0000 (02:00 +0000)]
compiler warning fixes
upstream commit:
https://github.com/qt/qtbase/commit/
ef36fd02178482cd312ea551303856ef563421af
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 19 Dec 2019 23:51:19 +0000 (23:51 +0000)]
remove threads build option
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 19 Dec 2019 23:39:22 +0000 (23:39 +0000)]
avoid temporary in QCacheItem::writeHeader()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 19 Dec 2019 23:39:05 +0000 (23:39 +0000)]
avoid temporaries in QNetworkDiskCachePrivate::prepareLayout()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 19 Dec 2019 23:07:56 +0000 (23:07 +0000)]
avoid temporaries in QXmlSimpleReaderPrivate::parseString()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 19 Dec 2019 22:03:55 +0000 (22:03 +0000)]
use proper type in QMutexPool::get()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 19 Dec 2019 22:03:19 +0000 (22:03 +0000)]
replace 0 with Q_NULLPTR in QMutexPool::createMutex() and QMutexPool::globalInstanceGet()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 19 Dec 2019 19:16:58 +0000 (19:16 +0000)]
replace qmutexlocker with qmutex header inclusion
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 19 Dec 2019 19:16:29 +0000 (19:16 +0000)]
add some missing class visibility attributes
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 19 Dec 2019 18:58:01 +0000 (18:58 +0000)]
merge qsharedpointer_impl header into qsharedpointer header
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 19 Dec 2019 14:40:52 +0000 (14:40 +0000)]
headers compat
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 19 Dec 2019 13:40:01 +0000 (13:40 +0000)]
remove now redundant dblinc.py script
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 19 Dec 2019 13:38:44 +0000 (13:38 +0000)]
remove redundant DECLARE_COMPAT_WIDGET() macro definition
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 19 Dec 2019 13:33:20 +0000 (13:33 +0000)]
the public headers checker in kate_generate_public() has served its purpose
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 19 Dec 2019 12:46:38 +0000 (12:46 +0000)]
remove non-existing classes leftovers
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 19 Dec 2019 12:44:26 +0000 (12:44 +0000)]
QtContainerFwd fancy header compat
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 19 Dec 2019 12:38:27 +0000 (12:38 +0000)]
remove fancy headers for non-existing classes
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 19 Dec 2019 12:31:18 +0000 (12:31 +0000)]
remove redundant string header inclusion from qtextcodec_p header
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 19 Dec 2019 12:30:46 +0000 (12:30 +0000)]
remove QHashDummyNode and QHashDummyValue leftovers
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 19 Dec 2019 02:07:58 +0000 (02:07 +0000)]
avoid temporaries in moc generated code
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 19 Dec 2019 01:23:41 +0000 (01:23 +0000)]
remove unused and internal Qt::WidgetAttribute::WA_PendingUpdate enum
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 19 Dec 2019 00:42:41 +0000 (00:42 +0000)]
quote value of GETCWDFUNCNAME so that it is considered as literal string by the compiler
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 19 Dec 2019 00:30:42 +0000 (00:30 +0000)]
replace QT_DEBUG with QT_NO_DEBUG
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 19 Dec 2019 00:13:38 +0000 (00:13 +0000)]
avoid stat() in QFileSystemEngine::currentPath()
both get_current_dir_name() and getcwd() do it internally, atleast in glibc
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 18 Dec 2019 23:46:51 +0000 (23:46 +0000)]
PATH_MAX is not required to call get_current_dir_name()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 18 Dec 2019 22:57:35 +0000 (22:57 +0000)]
optimize QFileSystemEngine::homePath() and QFileSystemEngine::tempPath()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 18 Dec 2019 22:50:45 +0000 (22:50 +0000)]
use QImage::constBits() in QRasterWindowSurface::prepareBuffer()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 18 Dec 2019 22:50:13 +0000 (22:50 +0000)]
avoid temporary in QFileSystemEngine::setCurrentPath()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 18 Dec 2019 21:11:00 +0000 (21:11 +0000)]
rebrand code generated by moc
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 18 Dec 2019 21:05:36 +0000 (21:05 +0000)]
remove QT_NO_SETTINGS and QT_NO_COMPRESS definitions checks unrelated to bootstrap
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 18 Dec 2019 18:57:29 +0000 (18:57 +0000)]
use KATIE_GIT as build-key and remove redundant QT_EDITION definition
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 18 Dec 2019 18:55:07 +0000 (18:55 +0000)]
assume QT_KATIE is not defined anywhere else
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 18 Dec 2019 16:50:25 +0000 (16:50 +0000)]
remove redundant Debian package maintainer scripts
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 18 Dec 2019 16:50:03 +0000 (16:50 +0000)]
remove redundant libc suplements from qcore_unix_p header
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 18 Dec 2019 16:17:22 +0000 (16:17 +0000)]
ensure resources for DBus performance benchmark are generated
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 18 Dec 2019 15:25:10 +0000 (15:25 +0000)]
set argv to full path to program in QProcessPrivate::startDetached()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 18 Dec 2019 03:19:12 +0000 (03:19 +0000)]
replace NDEBUG with QT_NO_DEBUG definition
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 17 Dec 2019 22:15:46 +0000 (22:15 +0000)]
mark certain core component options unsupported
this is mostly automated change set, a lot to be done later on
especially about the definitions in core component. the goal is
to make most of the options of the core component available so
that they can be utilized in other components and tools without
restrictions as shown by some of the changes done to the GUI
component in this commit
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 17 Dec 2019 21:48:37 +0000 (21:48 +0000)]
remove redundant QT_NO_CODECS definition
it is the same as QT_NO_TEXTCODEC
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 17 Dec 2019 21:29:04 +0000 (21:29 +0000)]
no need to execute moc via exec.sh during build, it is bootstrapped
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>