OSDN Git Service
Ivailo Monev [Mon, 22 Jun 2020 17:06:43 +0000 (17:06 +0000)]
replace switch with if statement in QAbstractSlider::changeEvent()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 22 Jun 2020 16:58:24 +0000 (16:58 +0000)]
optimize QAbstractSlider::keyPressEvent()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 22 Jun 2020 16:44:42 +0000 (16:44 +0000)]
remove stub QSystemTrayIconPrivate::updateMenu_sys()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 22 Jun 2020 16:44:21 +0000 (16:44 +0000)]
remove redundant Q_UNUSED() macro calls in QCompletionEngine::filterHistory()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 22 Jun 2020 16:43:58 +0000 (16:43 +0000)]
replace zero with Q_NULLPTR check in QCompletionEngine::filterHistory()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 22 Jun 2020 16:23:42 +0000 (16:23 +0000)]
avoid redundant qreal construct in QMatrix4x4::determinant()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 22 Jun 2020 16:22:21 +0000 (16:22 +0000)]
mark constant as static in QStandardPaths::writableLocation()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 22 Jun 2020 11:52:32 +0000 (11:52 +0000)]
remove non-documented and unused qIntCast() functions
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 21 Jun 2020 18:35:05 +0000 (18:35 +0000)]
reimplement QDesktopService via QStandardPaths
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 21 Jun 2020 18:34:38 +0000 (18:34 +0000)]
optimize QStandardPaths getters
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 20 Jun 2020 16:36:11 +0000 (16:36 +0000)]
Revert "remove unused StyleSelector::freeNode()"
This reverts commit
0ecbc71d82bbdfb41953229981f4dd9cd9654d24.
used by selector in CSS parser test
Ivailo Monev [Sat, 20 Jun 2020 16:25:20 +0000 (16:25 +0000)]
avoid temporaries in QTextHtmlParser::declarationsForNode()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 20 Jun 2020 16:02:45 +0000 (16:02 +0000)]
do not check for built-in styles in QStyleFactory::keys()
styles are not build as plugins
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 20 Jun 2020 15:48:46 +0000 (15:48 +0000)]
make widget argument of drawArrow() function required
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 20 Jun 2020 15:10:39 +0000 (15:10 +0000)]
optimize QCommonStyle::drawPrimitive() and QCommonStyle::drawControl()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 19 Jun 2020 19:27:03 +0000 (19:27 +0000)]
use foreach() for iteration in QScript::__setupPackage__()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 19 Jun 2020 19:04:39 +0000 (19:04 +0000)]
remove unused integerFromString() overload
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 19 Jun 2020 18:50:44 +0000 (18:50 +0000)]
replace qt_openDocument() and qt_launchWebBrowser() with their body
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 19 Jun 2020 18:49:03 +0000 (18:49 +0000)]
de-inline if condition in QThread::setTerminationEnabled()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 18 Jun 2020 01:13:53 +0000 (01:13 +0000)]
remove unused constructWindowTitleFromFilePath() function
should've been removed with
231dc75f8a1f84db6093de7ab2a279fa0e36bd3f
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 18 Jun 2020 00:45:17 +0000 (00:45 +0000)]
optimize some QMainWindowLayoutState methods
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 18 Jun 2020 00:43:56 +0000 (00:43 +0000)]
avoid temporary in QMainWindow::menuWidget()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 18 Jun 2020 00:13:50 +0000 (00:13 +0000)]
replace QVarLengthArray with dynamic arrays where possible
avoids resizing in e.g. qDrawBorderPixmap(), there are more places where
performance can be squeezed by doing the same thing
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 17 Jun 2020 23:50:46 +0000 (23:50 +0000)]
use single variable assignment in getPatternFill() function
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 17 Jun 2020 23:16:11 +0000 (23:16 +0000)]
Set theme jekyll-theme-slate
Ivailo Monev [Wed, 17 Jun 2020 23:03:03 +0000 (23:03 +0000)]
remove unused QX11Data::PatternFills::opaque member
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 17 Jun 2020 23:02:08 +0000 (23:02 +0000)]
remove redundant cases in gesture recognizers
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 17 Jun 2020 22:41:34 +0000 (22:41 +0000)]
use new style cast in QClipboard::mimeData()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 17 Jun 2020 22:26:29 +0000 (22:26 +0000)]
avoid temporary in QKeySequence::toString()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 17 Jun 2020 22:26:08 +0000 (22:26 +0000)]
indent qt_XTranslateKey() function
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 17 Jun 2020 18:29:03 +0000 (18:29 +0000)]
update QChar normalization test data
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 17 Jun 2020 17:56:01 +0000 (17:56 +0000)]
optimize QKeySequence::matches()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 17 Jun 2020 17:11:48 +0000 (17:11 +0000)]
optimize QKeySequencePrivate::keyBindings table
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 17 Jun 2020 17:07:47 +0000 (17:07 +0000)]
optimize assert in QGestureManager::deliverEvents()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 17 Jun 2020 16:11:36 +0000 (16:11 +0000)]
optimize qt_pixmap_thread_test() function
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 16 Jun 2020 22:11:22 +0000 (22:11 +0000)]
update URL TLDs
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 16 Jun 2020 20:39:24 +0000 (20:39 +0000)]
remove unused window filepath setter and getter of QWidget class
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 16 Jun 2020 20:35:13 +0000 (20:35 +0000)]
remove redundant const_cast<> in QWidget getters
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 15 Jun 2020 22:27:01 +0000 (22:27 +0000)]
remove redundant QSystemTrayIconSys::updateIcon()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 15 Jun 2020 22:26:23 +0000 (22:26 +0000)]
remove unused qtsystray_sendActivated() function
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 28 May 2020 02:02:10 +0000 (02:02 +0000)]
review internal callbacks system
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 23 May 2020 13:41:55 +0000 (13:41 +0000)]
move ELF output file support check to qplugin header
Q_OF_ELF is internal, generalize by checking only if __ELF__ is defined
while at it
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 23 May 2020 13:14:22 +0000 (13:14 +0000)]
replace qCmdLineArgs() with its body
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 23 May 2020 13:00:12 +0000 (13:00 +0000)]
convert qt_static_shift<> to static function
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 23 May 2020 12:34:09 +0000 (12:34 +0000)]
remove unused QGraphicsSystem::createPixmapData() method
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 23 May 2020 12:00:58 +0000 (12:00 +0000)]
avoid temporary in QBrush data streaming operator
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 23 May 2020 11:59:54 +0000 (11:59 +0000)]
rename variable for consistency in QBrush debug operator
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 23 May 2020 11:56:17 +0000 (11:56 +0000)]
move temporary closer to the scope it is used in qt_x11_drawImage()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 23 May 2020 11:55:38 +0000 (11:55 +0000)]
mark brush styles enums tables as static in QBrush constructor
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 23 May 2020 11:54:44 +0000 (11:54 +0000)]
fix QBrush debug operator for Qt::TexturePattern style case
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 10 May 2020 02:02:49 +0000 (02:02 +0000)]
correct scoped array size in QX11PaintEngine::updatePen()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 6 May 2020 02:35:18 +0000 (02:35 +0000)]
move QCryptographicHash benchmark to network and link it to the component
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 6 May 2020 02:32:17 +0000 (02:32 +0000)]
remove unused QWindowSurface::grabWidget() argument
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 2 May 2020 01:32:48 +0000 (01:32 +0000)]
remove code for always false condition in gray raster functions
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 2 May 2020 00:57:58 +0000 (00:57 +0000)]
remove unused INV_EPS() pre-proccessor macro
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 1 May 2020 19:16:05 +0000 (19:16 +0000)]
remove unused QDummyWindowSurface
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 1 May 2020 19:14:06 +0000 (19:14 +0000)]
use single variable assignment in QWidgetPrivate::scrollRect()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 1 May 2020 19:13:50 +0000 (19:13 +0000)]
remove non-existing QWidgetPrivate methods declarations
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 1 May 2020 19:02:30 +0000 (19:02 +0000)]
remove qws support leftovers
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 1 May 2020 19:01:28 +0000 (19:01 +0000)]
remove unused and internal QRasterPaintEngine::releaseBuffer()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 1 May 2020 18:51:35 +0000 (18:51 +0000)]
convert pixmap filter templates to static functions
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 1 May 2020 18:50:29 +0000 (18:50 +0000)]
make lists static in parseBrushValue()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 22 Apr 2020 21:52:05 +0000 (21:52 +0000)]
remove unused qt_blurImage() argument
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 22 Apr 2020 21:51:24 +0000 (21:51 +0000)]
update documentation about formats supported by QImageReader
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 21 Apr 2020 23:44:33 +0000 (23:44 +0000)]
update translations
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 21 Apr 2020 23:02:44 +0000 (23:02 +0000)]
remove redundant RGB gamma tables
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 21 Apr 2020 23:02:04 +0000 (23:02 +0000)]
correct qcryptographichash header references
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 21 Apr 2020 21:37:33 +0000 (21:37 +0000)]
use proper type for QRgbMap::used member
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 21 Apr 2020 21:11:04 +0000 (21:11 +0000)]
move QCryptographicHash class implementation to network component
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 21 Apr 2020 20:50:53 +0000 (20:50 +0000)]
make QThreadPoolPrivate::startThread() argument required
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 21 Apr 2020 20:49:04 +0000 (20:49 +0000)]
remove obsolete QDialog extension functionality
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 14 Apr 2020 23:28:38 +0000 (23:28 +0000)]
get rid of QFilePrivate::cachedSize member
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 14 Apr 2020 01:07:22 +0000 (01:07 +0000)]
use LFS-aware QT_FSTRUNCATE definition in QSharedMemoryPrivate::create()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 14 Apr 2020 00:40:40 +0000 (00:40 +0000)]
regenerate javascriptcore grammar
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 14 Apr 2020 00:32:45 +0000 (00:32 +0000)]
remove unused QX11PixmapData::InvertedWhenBoundToTexture enum
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 14 Apr 2020 00:32:02 +0000 (00:32 +0000)]
remove unused QScriptClassPropertyIteratorPrivate::q_ptr member
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 13 Apr 2020 16:29:50 +0000 (16:29 +0000)]
remove unused StyleSelector::freeNode()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 9 Apr 2020 07:27:59 +0000 (07:27 +0000)]
replace hardcoded value with enum in QDBusMetaObjectGenerator::parseProperties()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 9 Apr 2020 07:27:43 +0000 (07:27 +0000)]
use foreach() for iteration in QDBusMetaObjectGenerator::parseProperties()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 9 Apr 2020 07:26:35 +0000 (07:26 +0000)]
mark some helper functions as static and variables as const
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 9 Apr 2020 07:15:06 +0000 (07:15 +0000)]
remove redundant const_cast<T>() in QDBusInterface::qt_metacast()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 9 Apr 2020 07:14:37 +0000 (07:14 +0000)]
store QImage::bytesPerLine() result outside loop in QImage::createMaskFromColor()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 9 Apr 2020 07:12:58 +0000 (07:12 +0000)]
remove unused and internal Qt::GestureType::LastGestureType enum
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 8 Apr 2020 04:48:49 +0000 (04:48 +0000)]
replace getFileIcon() helper with its body
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 8 Apr 2020 04:27:28 +0000 (04:27 +0000)]
remove unused and internal QAbstractItemView virtual slots
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 8 Apr 2020 04:20:06 +0000 (04:20 +0000)]
avoid temporary in QAbstractItemView::mouseReleaseEvent()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 8 Apr 2020 00:44:31 +0000 (00:44 +0000)]
remove declaration of non-existent QRasterPixmapData::setImage()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 8 Apr 2020 00:43:46 +0000 (00:43 +0000)]
remove default cases in QX11PixmapData::metric()
also fixes a compiler warning about shadowing member
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 8 Apr 2020 00:42:47 +0000 (00:42 +0000)]
avoid temporary in QMetaObject::constructor()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 6 Apr 2020 14:33:02 +0000 (14:33 +0000)]
assume platforms support POSIX signals
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 6 Apr 2020 14:32:05 +0000 (14:32 +0000)]
return result dup2() result from qt_safe_dup2()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 6 Apr 2020 14:31:00 +0000 (14:31 +0000)]
remove redundant header inclusions from qcore_unix_p header
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 6 Apr 2020 12:51:25 +0000 (12:51 +0000)]
correct static monthDays array type
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 6 Apr 2020 01:55:05 +0000 (01:55 +0000)]
avoid temporary in QBitmap::operator=()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 6 Apr 2020 01:51:45 +0000 (01:51 +0000)]
mark pseudo-elements table as static in QStyleSheetStyle::drawComplexControl()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 6 Apr 2020 01:47:18 +0000 (01:47 +0000)]
remove unused QImageData::create() argument
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 6 Apr 2020 01:44:14 +0000 (01:44 +0000)]
remove non-existent QString::updateProperties() method declaration
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 5 Apr 2020 00:55:33 +0000 (00:55 +0000)]
get rid of qt_grayscale() argument
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 5 Apr 2020 00:40:17 +0000 (00:40 +0000)]
make translateKeyEventInternal() static, remove unused argument and return value
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 4 Apr 2020 07:49:37 +0000 (07:49 +0000)]
update Qt::WindowType documentation
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>