qt5base-lts/tests/auto/widgets
Marc Mutz be94e009ae QFileDialog: optimize string handling in qt_tildeExpansion
- Instead of QString::split()-ing the path, just to inspect the
  first item in the list returned, simply find the location of
  the first separator and work with that.
  -> saves creating a QList, and its QString elements
  -> saves attempted detaches of that list when calling
     first()
- When extracting the user name, don't do it in a QString, do
  it in a QStringRef.
- When constructing the result, don't use QString::replace(),
  use QStringBuilder with a QStringRef into the original string.
- Eradicate the out parameter, it is easily calculated from the
  return value.
- Don't calculate userName on VXWORKS and INTEGRITY, where it
  is not used. Requires a different #ifdef sequence. Fixed
  preprocessor directives' indention as a drive-by.

Costs 84b in text size on optimized GCC 4.9 Linux AMD64 builds.

Change-Id: I61f1e8d558db7fb0c5c1170bdfd6f5ac1f1a9e62
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
2016-01-01 23:32:13 +00:00
..
dialogs QFileDialog: optimize string handling in qt_tildeExpansion 2016-01-01 23:32:13 +00:00
effects Tests: Remove empty init/cleanup slots, constructors and destructors. 2015-12-10 05:26:05 +00:00
gestures Merge remote-tracking branch 'origin/5.5' into dev 2015-07-01 11:05:26 +02:00
graphicsview Refactor tst_QGraphicsWidget::setTabOrderAndReparent(). 2015-12-22 11:45:47 +00:00
itemviews QHeaderView - fix broken stretchLastSection 2016-01-01 12:56:29 +00:00
kernel Merge remote-tracking branch 'origin/5.6' into dev 2015-12-18 08:37:31 +01:00
styles Tests: Remove empty init/cleanup slots, constructors and destructors. 2015-12-10 05:26:05 +00:00
util tests/auto/widgets: Remove some placeholder formatting. 2015-10-19 12:39:16 +00:00
widgets Merge remote-tracking branch 'origin/5.6' into dev 2015-12-18 08:37:31 +01:00
widgets.pro Add autotest for QGestureRecognizer. 2014-10-23 21:11:28 +02:00