1. 15 Jun, 2016 - 4 commits
  2. 14 Jun, 2016 - 8 commits
    • Timur Pocheptsov's avatar
      tst_QUdpSocket - remove insignificance · 17143bf4
      Timur Pocheptsov authored
      
      This is the second attempt to remove 'insignificant' from UDP socket test to:
      - make changes ending up in regressions more difficult (hopefully impossible)  to merge
      - switch to BLACKLIST if needed
      - make flaky tests more visible.
      
      For now this 'back to significant' will be accompanied by extended BLACKLIST.
      New in BLACKLIST:
      * OS X - datagram size-related problems (fixed in 5.7)
      * OS X - multicastLeaveAfterClose - will probably stay BLACKLISTED,
        seems to be a Darwin's quirk, can be fixed in OS X >=  10.10.
      * windows ...
      
      tst_QUdpSocket::echo seems to fail randomly on OS X/linux and
      it looks like it fails at the same time on different machines,
      should be something server-related (a guess only).
      
      Change-Id: Ib344348ffab03fab1b9309b80449a04d8ce247c6
      Reviewed-by: default avatarEdward Welbourne <edward.welbourne@qt.io>
      Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@qt.io>
      17143bf4
    • Jesus Fernandez's avatar
      Fix UNSIGNED values in QMYSQL · 8e889378
      Jesus Fernandez authored
      
      The unsigned flag in columns was ignored when creating the list of
      bound values in a mysql table. So the result iteration with
      QSqlQuery::next stops after the first wrong truncated value.
      
      [ChangeLog][QtSql] Fixed QSqlQuery::prepare value truncation error when
      using UNSIGNED values in a MySQL database.
      
      Task-number: QTBUG-53969
      Task-number: QTBUG-53237
      Change-Id: I10d977993445f2794f1dd8c88b2e83517ef524f3
      Reviewed-by: default avatarMilian Wolff <milian.wolff@kdab.com>
      8e889378
    • Tor Arne Vestbø's avatar
      UIKit: Don't populate font families with no matching fonts · e5e93345
      Tor Arne Vestbø authored
      
      [UIFont familyNames] will return a list of fonts that include the fonts
      Telugu Sangam MN, Heiti SC, Heiti TC, and Bangla Sangam MN, but when
      calling [UIFont fontNamesForFamilyName:] for these fonts we get an
      empty list.
      
      The problem appeared when we tried to then populate these fonts, as
      CTFontDescriptorCreateMatchingFontDescriptors() would return a list
      of font descriptors from the PingFang SC font when called with
      NSFontFamilyAttribute = "Heiti SC". This is due to PingFang being a
      replacement for Heiti in later iOS versions.
      
      Task-number: QTBUG-50624
      Change-Id: I22684e247d472c30775321b6976b3aeb6ea579f5
      Reviewed-by: default avatarJake Petroules <jake.petroules@qt.io>
      e5e93345
    • Laszlo Agocs's avatar
      Fix the RPi3 spec a bit · 91bf773b
      Laszlo Agocs authored
      
      So that it actually compiles with gcc-linaro-arm-linux-gnueabihf-raspbian.
      
      Remove also flags a device spec should not set (like -std and -O).
      
      Change-Id: Ib7a3bc298e60715410d5c00fbc22199ab4711fa7
      Reviewed-by: default avatarAndy Nichols <andy.nichols@qt.io>
      91bf773b
    • Laszlo Agocs's avatar
      Add Mesa VC4 based RPi3 device spec · 23d08dec
      Laszlo Agocs authored
      
      The rpi3 spec added previously is only half of the story now that we
      have the option to use another GL driver.
      
      Change-Id: I1b1edde77bcc6d2f382f1021de9c594c27c34d6f
      Reviewed-by: default avatarAndy Nichols <andy.nichols@qt.io>
      23d08dec
    • Eskil Abrahamsen Blomfeldt's avatar
      Fix crash when creating distance field for large glyph · c2d3c2b9
      Eskil Abrahamsen Blomfeldt authored
      
      Do the multiplication of the normal components in floating point to
      avoid integer overflows. Also add an assert, since a scale of 0 here
      will cause a normal of (0, 0) which will assert further into the
      drawRectangle() function, and the cause is not immediately clear.
      
      Task-number: QTBUG-51956
      Change-Id: If7187d56af28eaa149f8f362050a587da5adb262
      Reviewed-by: default avatarYoann Lopes <yoann.lopes@qt.io>
      c2d3c2b9
    • Eskil Abrahamsen Blomfeldt's avatar
      Make it possible to create distance fields with any height · fe97ecf4
      Eskil Abrahamsen Blomfeldt authored
      
      Assuming a certain max height for glyphs would make it impossible
      to render certain fonts. The follow up to this change is in
      Qt Quick, where the code must also be adapted to make it work.
      
      Task-number: QTBUG-52389
      Change-Id: Iabebb2de21a92d1537b2965aa6603529c1d5d587
      Reviewed-by: default avatarYoann Lopes <yoann.lopes@qt.io>
      fe97ecf4
    • Timur Pocheptsov's avatar
      QSslSocket (OpenSSL) - handle abort/close on sslErrors emitted · 23173c72
      Timur Pocheptsov authored
      
      If a user's code, attached to sslErrors signal, calls abort/close
      or disconnectFromHost but our SSL socket was configured not to verify a peer,
      no need to continue handshake after calling checkSslErrors
      (and finally crashing on invalid 'ssl' pointer).
      
      Task-number: QTBUG-53906
      Change-Id: I7f185511d278f9d6f16e7d6c5ba424707141459c
      Reviewed-by: default avatarEdward Welbourne <edward.welbourne@qt.io>
      Reviewed-by: default avatarTimur Pocheptsov <timur.pocheptsov@theqtcompany.com>
      23173c72
  3. 13 Jun, 2016 - 8 commits
    • James McDonnell's avatar
      Fix cast warnings when pthread_t is smaller than a pointer · e969e6d2
      James McDonnell authored
      
      Push conversions from pthread_t to Qt::HANDLE and back into functions.
      The casts that were being used didn't work for the unusual 64-bit
      pointer/32-bit int combination that QNX is using for 7.0.  HANDLE ends
      up as a 64-bit pointer and pthread_t ends up as a 32-bit integer.  g++
      considers the precision loss when converting from the 64-bit pointer
      to the 32-bit integer an error.  Better to have the casts hidden in
      functions so it's easier to adjust them for unusual combinations such
      as this.
      
      Change-Id: Ia156b26224a0f7edc1c31e3d1ee8b21191381698
      Reviewed-by: default avatarThiago Macieira <thiago.macieira@intel.com>
      e969e6d2
    • Maurice Kalinowski's avatar
      winrt: Fix potential crash in QCoreApplication · 27e94bd9
      Maurice Kalinowski authored
      
      GetModuleFileName exists for Windows 10 and upwards, hence use the
      generic version from the win32 mkspec. This allows to create a
      QCoreApplication object with nullptr argv, as the application filename
      is identified via the binary itself and not via arguments. A couple of
      auto-tests use this method to create multiple application objects during
      runtime.
      
      Unfortunately we cannot apply this for msvc2013, even though MSDN states
      the GetModuleFileName exists, it fails to compile for Windows Phone 8.1.
      
      Change-Id: I2b8b988107487ef3785462f8ca40b0a6e0623e32
      Reviewed-by: default avatarThiago Macieira <thiago.macieira@intel.com>
      Reviewed-by: default avatarOliver Wolff <oliver.wolff@qt.io>
      27e94bd9
    • Maurice Kalinowski's avatar
      winrt: Close IAsyncInfo manually in case of error · 038c57f4
      Maurice Kalinowski authored
      
      In case QEventDispatcherWinRT::runOnXamlThread returns an error the
      runtime sets the status of IAsyncInfo to Error. At the point when the
      IAsyncInfo destructor is invoked, an unhandled exception is thrown
      indicating the error has not been handled, causing any application to
      just crash deep inside the Windows platform libraries.
      
      Hence, in case runOnXamlThread returns non-S_OK we have to manually
      invoke Close() of the IAsyncInfo to tell the system we have taken care
      of everything.
      
      Change-Id: I3ac1e2ec2726f42e44f4f9a92191e454711120dd
      Reviewed-by: default avatarOliver Wolff <oliver.wolff@qt.io>
      038c57f4
    • Maurice Kalinowski's avatar
      winrt: Add privateNetworkClientServer to default capabilities · 3394d97e
      Maurice Kalinowski authored
      
      Contrary to our initial assumption, this should be added by default to
      allow full functionality during development by default. Developers need
      to decide which capabilities to use during the publishing step already,
      hence improve DX by adding this.
      
      Task-number: QTBUG-50847
      Change-Id: I36e0214f7bcf8610d31851eea172aba3944cfd99
      Reviewed-by: default avatarOliver Wolff <oliver.wolff@qt.io>
      Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@qt.io>
      3394d97e
    • Oliver Wolff's avatar
      WinRT: Avoid asserts in socket function with bool return values · 6fa74764
      Oliver Wolff authored
      
      There is no need for the functions to assert. By returning false they
      show that something went wrong and the error will be handled
      gracefully.
      
      Change-Id: Ib026adf5c6fb23b5e6b5598533caec3b3669220c
      Reviewed-by: default avatarMaurice Kalinowski <maurice.kalinowski@qt.io>
      6fa74764
    • Oliver Wolff's avatar
      WinRT: fixed error reporting of QNativeSocketEngine::initialize · c111abe0
      Oliver Wolff authored
      
      If runOnXamlThread returns anything but S_OK an exception is thrown
      which might cause the application to terminate. So we give the lambda
      a reference to hr and check that reference instead of runOnXamlThread's
      return value for errors.
      
      Change-Id: I1188ea720c63f6fdf43400f2f3ff928b72afc58e
      Reviewed-by: default avatarMaurice Kalinowski <maurice.kalinowski@qt.io>
      c111abe0
    • Oliver Wolff's avatar
      WinRT: Proper error handling in socket engine's "bind" · 0f6ededb
      Oliver Wolff authored
      
      runOnXamlThread should always return S_OK (causes exceptions otherwise)
      so we need another way of error reporting to the outside (hr reference).
      A failed hr is reported to the outside (of the lambda) and interpreted
      as an unknown error.
      
      Specific error cases like the given address not being a local address
      or the given address being in use already are handled inside the lambda.
      The specificErrorSet variable is necessary in these cases so that the
      error is not overwritten by unknownError.
      
      Change-Id: I198d66fe97726d5127bf31e50c7eff3363d5259c
      Reviewed-by: default avatarMaurice Kalinowski <maurice.kalinowski@qt.io>
      0f6ededb
    • James McDonnell's avatar
      Move __cpp_constexpr check inside Q_COMPILER_CONSTEXPR check · d4e98a9a
      James McDonnell authored
      Q_COMPILER_CONSTEXPR can be undefined (or not defined at all) to
      indicate that constexpr should not be used regardless of the compiler's
      ability to support it.  This is done for QNX because some C library
      floating point functions used in the Dinkumware C++ library aren't
      constexpr functions; i.e., the library doesn't have proper constexpr
      support even though the compiler does.
      
      (cherry picked from commit d8724296
      
      )
      Change-Id: If0bdeb2180710dd9ccd97d79fa91cf9ff42f7990
      Reviewed-by: default avatarThiago Macieira <thiago.macieira@intel.com>
      d4e98a9a
  4. 11 Jun, 2016 - 2 commits
  5. 10 Jun, 2016 - 8 commits
  6. 08 Jun, 2016 - 10 commits