OSDN Git Service
Ivailo Monev [Fri, 3 Apr 2020 21:29:50 +0000 (21:29 +0000)]
remove unused Qt::DropAction::TargetMoveAction enum
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 2 Apr 2020 07:03:35 +0000 (07:03 +0000)]
drop MNG image format support
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 2 Apr 2020 07:00:35 +0000 (07:00 +0000)]
remove unused variable in QStyleHelper::drawDial()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 2 Apr 2020 06:34:22 +0000 (06:34 +0000)]
remove icudata entry from ICU_LIBRARIES
fixes Debian package lintian warning
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 2 Apr 2020 06:33:24 +0000 (06:33 +0000)]
remove unused and internal QStyleHelper::drawBorderPixmap()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 2 Apr 2020 05:57:31 +0000 (05:57 +0000)]
prefer the c library when checking for res_ninit()
fixes overlinking in case the symbol is provided by the c library and a
Debian package lintian warning
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 2 Apr 2020 05:02:21 +0000 (05:02 +0000)]
use IANA codec name to find the codec MIB in QIcuCodec::mibEnum()
fixes many warnings from the QTextCodec benchmark
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 2 Apr 2020 03:36:34 +0000 (03:36 +0000)]
optimize named color tables lookup
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 2 Apr 2020 02:58:02 +0000 (02:58 +0000)]
avoid temporaries in dither_to_Mono()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 2 Apr 2020 01:10:03 +0000 (01:10 +0000)]
remove unused and internal QPaintEngineExPrivate methods
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 1 Apr 2020 23:55:44 +0000 (23:55 +0000)]
inline HexString<T> QChar operator
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 1 Apr 2020 23:55:20 +0000 (23:55 +0000)]
use enum type for QX11Data::focus_model
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 1 Apr 2020 22:02:00 +0000 (22:02 +0000)]
remove unused and internal qt_get_bitflip_array()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 1 Apr 2020 21:09:13 +0000 (21:09 +0000)]
replace tabs with spaces in QX11Info::cloneX11Data()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 1 Apr 2020 21:08:48 +0000 (21:08 +0000)]
assume x and y are always zero in qt_rectconvert<DST, SRC>()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 1 Apr 2020 20:25:54 +0000 (20:25 +0000)]
handle formats as exclusive in QX11Data::xdndMimeAtomsForFormat()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 1 Apr 2020 20:02:40 +0000 (20:02 +0000)]
remove unused and internal QX11Data::fc_scale member
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 1 Apr 2020 19:37:23 +0000 (19:37 +0000)]
remove unused and internal X11 atoms
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 1 Apr 2020 19:29:23 +0000 (19:29 +0000)]
use proper types for QTLWExtra::dnd assignment
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 1 Apr 2020 19:26:34 +0000 (19:26 +0000)]
remove unused and internal QX11Data::xdndStringToAtom()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 1 Apr 2020 19:26:00 +0000 (19:26 +0000)]
replace value with enum in qt_init()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 1 Apr 2020 19:07:15 +0000 (19:07 +0000)]
remove unused X11 drag-n-drop handlers arguments
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 1 Apr 2020 12:52:25 +0000 (12:52 +0000)]
remove mac and win QClipboard support leftovers
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 31 Mar 2020 15:52:24 +0000 (15:52 +0000)]
remove unused static QClipboard variables
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 31 Mar 2020 11:14:38 +0000 (11:14 +0000)]
replace x11Time() helper function with its body
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 31 Mar 2020 11:12:57 +0000 (11:12 +0000)]
remove unused QX11Embed enums
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 31 Mar 2020 10:51:51 +0000 (10:51 +0000)]
remove unused QX11EmbedContainerPrivate::activeContainer member
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 31 Mar 2020 10:42:38 +0000 (10:42 +0000)]
format and indent qx11embed_x11 source file
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 31 Mar 2020 10:02:13 +0000 (10:02 +0000)]
use QT_BUFFSIZE as block size for QRingBuffer
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 31 Mar 2020 09:08:57 +0000 (09:08 +0000)]
remove unused and internal QEventLoop::ProcessEventsFlag enums
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 30 Mar 2020 19:35:30 +0000 (19:35 +0000)]
remove redundant QImage rotation functions forward declarations
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 30 Mar 2020 19:34:11 +0000 (19:34 +0000)]
fix tst_QThread::setStackSize() test case
also fixes a regression since
91019ff8de9ba23a45c7920184e473620e5244d0
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 30 Mar 2020 18:03:34 +0000 (18:03 +0000)]
remove unused qt_safe_dup() and qt_safe_dup2() arguments
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 30 Mar 2020 09:04:10 +0000 (09:04 +0000)]
remove unused QtMsgType::QtSystemMsg enum
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 30 Mar 2020 08:25:20 +0000 (08:25 +0000)]
remove unused and internal QPixmapConvolutionFilter
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 30 Mar 2020 08:09:53 +0000 (08:09 +0000)]
mark some environment queries as static and const
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 30 Mar 2020 07:38:10 +0000 (07:38 +0000)]
make qt_error_string() argument non-optional
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 30 Mar 2020 07:37:41 +0000 (07:37 +0000)]
remove unused and internal QFilePrivate::setError() overload
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 30 Mar 2020 00:00:30 +0000 (00:00 +0000)]
remove unused and internal qt_set_current_thread_to_main_thread()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 28 Mar 2020 20:02:41 +0000 (20:02 +0000)]
check for thread-safe resolv function from CMake module
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 26 Mar 2020 23:29:09 +0000 (23:29 +0000)]
remove unused QApplicationPrivate members
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 26 Mar 2020 23:03:50 +0000 (23:03 +0000)]
replace 0 with Q_NULLPTR where applicable
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 26 Mar 2020 02:56:40 +0000 (02:56 +0000)]
update translations [ci skip]
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 26 Mar 2020 01:10:58 +0000 (01:10 +0000)]
update doxygen configuration file [ci skip]
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 25 Mar 2020 21:35:29 +0000 (21:35 +0000)]
unexport/remove unused internal external references
plenty of those, I've grep-ed only for Q_GUI_EXPORT and qt_ prefix
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 25 Mar 2020 21:32:02 +0000 (21:32 +0000)]
remove empty qmenudata header and source
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 25 Mar 2020 21:30:20 +0000 (21:30 +0000)]
replace QSizeGripPrivate::init() with its body
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 25 Mar 2020 21:08:42 +0000 (21:08 +0000)]
replace if with switch statment in QColormap::pixel()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 25 Mar 2020 18:51:28 +0000 (18:51 +0000)]
replace inline if with switch in QColormap::size() statement
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 25 Mar 2020 17:19:18 +0000 (17:19 +0000)]
correct warning message in QThread::terminate()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 25 Mar 2020 17:12:07 +0000 (17:12 +0000)]
inline qdlerror() function
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 25 Mar 2020 17:03:40 +0000 (17:03 +0000)]
use single variable assignment in qstring_to_xtp()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 25 Mar 2020 17:03:12 +0000 (17:03 +0000)]
replace qBinaryFindHelper() with its body
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 25 Mar 2020 16:44:09 +0000 (16:44 +0000)]
unexport qt_try_modal() to mark it as static
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 25 Mar 2020 16:43:44 +0000 (16:43 +0000)]
fix qPRCreate() const correctness
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 25 Mar 2020 16:28:34 +0000 (16:28 +0000)]
mark qt_readEscapedFormatString() and qt_repeatCount() as static
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 25 Mar 2020 01:24:38 +0000 (01:24 +0000)]
remove redundant whitespace in convolute() pixmap filter helper
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 25 Mar 2020 01:23:56 +0000 (01:23 +0000)]
do not compare member to zero in QAbstractEventDispatcherPrivate::init()
part of the Q_NULLPTR-ization effort
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 24 Mar 2020 19:41:45 +0000 (19:41 +0000)]
add tarball.sh script [ci skip]
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 24 Mar 2020 17:46:32 +0000 (17:46 +0000)]
use single variable assignment in QLocalServerPrivate::waitForNewConnection()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 24 Mar 2020 17:40:01 +0000 (17:40 +0000)]
remove unused qlocalsocket_tcp source
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 24 Mar 2020 04:47:26 +0000 (04:47 +0000)]
remove unused variable in QPixmapBlurFilter::draw()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 24 Mar 2020 03:15:45 +0000 (03:15 +0000)]
remove unused TEST_FILE() from declarative compilation benchmark
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 24 Mar 2020 00:04:57 +0000 (00:04 +0000)]
remove unused QPixmapConvolutionFilterPrivate::convoluteAlpha member
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 23 Mar 2020 14:45:18 +0000 (14:45 +0000)]
remove default QListView::event() reimplementation
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 23 Mar 2020 14:44:58 +0000 (14:44 +0000)]
unexport qt_halfScaled() and qt_blurImage() to mark them static
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 21 Mar 2020 23:32:40 +0000 (23:32 +0000)]
remove unused virtual QBenchmarkMeasurerBase::init() method
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 21 Mar 2020 22:48:13 +0000 (22:48 +0000)]
remove unused qScrollEffect() and qFadeEffect() arguments
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 21 Mar 2020 16:34:28 +0000 (16:34 +0000)]
mark results from sysconf() queries as static
that way queries are done once per thread
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 21 Mar 2020 16:13:18 +0000 (16:13 +0000)]
validate stack size in QThread::setStackSize()
that way threads will not fail if it is less than the minimum, the warning
from QThread::start() is basically invisible to GUI users unless
application is started from terminal which is far from ideal. one has
to install own message handler via qInstallMsgHandler() to make such
warnings noticable to GUI users, possible via QErrorMessage, which should
be errors in fact and printed via qCritical() but making such changes is
beyond the scope of this commit
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 20 Mar 2020 23:51:31 +0000 (23:51 +0000)]
avoid copy in qt_toX11Pixmap()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 20 Mar 2020 23:50:53 +0000 (23:50 +0000)]
simplify QPaintEngineEx::supportsTransformations() logic
Ivailo Monev [Fri, 20 Mar 2020 23:50:03 +0000 (23:50 +0000)]
remove redundant forward declaration of QPixmapFilter class in qpaintengineex_p header
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 20 Mar 2020 23:49:11 +0000 (23:49 +0000)]
move misc drawing helper functions to the top of qdrawhelper source
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 20 Mar 2020 20:15:22 +0000 (20:15 +0000)]
mark qt_bayer_matrix constant and qConvertRgb16To32() function as static
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 20 Mar 2020 20:14:49 +0000 (20:14 +0000)]
optimize QRasterPaintEnginePrivate::isUnclipped() methods
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 20 Mar 2020 18:04:30 +0000 (18:04 +0000)]
replace conditional memory rotation templates with their body
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 20 Mar 2020 17:54:54 +0000 (17:54 +0000)]
remove unused and internal virtual QPaintEngineEx methods
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 20 Mar 2020 17:30:13 +0000 (17:30 +0000)]
remove forward declaration of non-existing qt_stroke_dash()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 20 Mar 2020 17:29:37 +0000 (17:29 +0000)]
remove unused and internal QPathClipper::ClipperMode enums
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 20 Mar 2020 17:28:45 +0000 (17:28 +0000)]
return result of QWingedEdge::toPath() directly in QPathClipper::clip()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 20 Mar 2020 17:13:08 +0000 (17:13 +0000)]
remove redundant qt_memrotate90_template<T, T>() specialization
same implementation as the generic one
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 20 Mar 2020 16:13:26 +0000 (16:13 +0000)]
remove code for always false condition in brushes pattern cache
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 20 Mar 2020 04:11:51 +0000 (04:11 +0000)]
remove redundant QFont enums casts and constructs
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 20 Mar 2020 04:11:09 +0000 (04:11 +0000)]
mark CSS parser constants as static
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 20 Mar 2020 04:10:51 +0000 (04:10 +0000)]
remove redundant qglobal header inclusion from qbackingstore source
use local instead of system style headers inclusion while at it
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 20 Mar 2020 02:32:07 +0000 (02:32 +0000)]
remove unused interpolate_pixel_unaligned_2() drawing helper
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Fri, 20 Mar 2020 02:24:06 +0000 (02:24 +0000)]
move qt_get_named_rgb() to qcolor source file, replace qt_get_colornames() with its body
that way the qt_get_named_rgb() function can be made static and marked
inline. the loop in QColor::colorNames() can be unrolled by the compiler
too. while at it, remove the duplicate code in the SVG handler
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 19 Mar 2020 23:40:45 +0000 (23:40 +0000)]
remove unused and internal QWidgetPrivate::DrawWidgetFlags enums
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 19 Mar 2020 23:28:34 +0000 (23:28 +0000)]
remove unused QWidgetBackingStore::beginPaint() argument
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 19 Mar 2020 21:36:11 +0000 (21:36 +0000)]
update tables data to CLDR v36.1
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 19 Mar 2020 20:54:52 +0000 (20:54 +0000)]
mark some constants as static
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 19 Mar 2020 20:34:39 +0000 (20:34 +0000)]
add unifdef to build dependencies of Debian package [ci skip]
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 19 Mar 2020 20:04:36 +0000 (20:04 +0000)]
fix regression since
28d63e9b27d82c2de090d72699b273b77b28de30
apparently if default is used the cursor may not be one from theme set
via XcursorSetTheme(), it affects not only left_ptr alternative too so
try non-alternative first
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 19 Mar 2020 02:55:14 +0000 (02:55 +0000)]
correct cast qualifier in blend_untransformed_argb()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 19 Mar 2020 02:43:37 +0000 (02:43 +0000)]
move non-shared drawing helper functions to qdrawhelper source file
also mark comp_func_Plus_one_pixel() as static while at it
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 19 Mar 2020 02:15:31 +0000 (02:15 +0000)]
add libsm-dev to build dependencies of Debian package [ci skip]
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 19 Mar 2020 00:06:19 +0000 (00:06 +0000)]
optimize blend_src_generic() drawing helper
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 18 Mar 2020 22:04:06 +0000 (22:04 +0000)]
remove unused and internal qt_paint_device_metric()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Thu, 12 Mar 2020 21:45:33 +0000 (21:45 +0000)]
append to OBJECT_DEPENDS property from katie_setup_target() macro
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>