1. 22 Apr, 2016 - 9 commits
  2. 21 Apr, 2016 - 2 commits
    • Vyacheslav Grigoryev's avatar
      QHeaderView: fixing selection of reordered rows and columns · 07248504
      Vyacheslav Grigoryev authored
      
      The old code incorrectly calculated visual region for a selection (specified by
      QItemSelection object) in case of reordered / swapped rows or columns. It used
      the leftmost and rightmost (upmost and downmost for vertical mode) logical
      indexes directly. However some middle logical index (in case of reorder) may be
      the leftmost or rightmost visual index. In such cases the repainting didn't
      work properly. This fix first checks whether reordering / swapping is in use.
      If it isn't (ie visual=logical) we use code similar to the old code. Otherwise
      the new code scans all selected logical indexes, translates them into visual
      ones and gets the correct leftmost and rightmost indexes.
      
      [ChangeLog][QtWidgets][QHeaderView] Fixed a repainting issue when items had been reordered.
      
      Task-number: QTBUG-50171
      Change-Id: If6afabebf445cf32a8e0afe262b6ee149e7c4b2b
      Reviewed-by: default avatarThorbjørn Lund Martsum <tmartsum@gmail.com>
      07248504
    • Stephen Kelly's avatar
      QString: Avoid searching for a needle which is longer than the hay · 9def5014
      Stephen Kelly authored
      
      Avoid incurring the cost of converting the latin1 data in that case.
      
      Several existing QString unit tests excercise the new code path.
      
      Task-number: QTBUG-52617
      Change-Id: I27256d9e7db34f09543e244a79d754ff7932f0d0
      Reviewed-by: default avatarThiago Macieira <thiago.macieira@intel.com>
      9def5014
  3. 20 Apr, 2016 - 8 commits
  4. 19 Apr, 2016 - 7 commits
  5. 18 Apr, 2016 - 2 commits
    • Friedemann Kleint's avatar
      QWindowsXP/VistaStyle: Move the Vista treeview handling to QWindowsXPStylePrivate. · f1e0eedc
      Friedemann Kleint authored
      
      QWindowsXPStylePrivate maintains a list of theme handles for various
      style items. The derived class QWindowsVistaStylePrivate had logic
      to use a special helper window with the "explorer" window theme set to
      obtain the correct treeview arrow branch indicator (arrow shape for Vista as
      opposed to '+'/'-' on Windows XP) when creating the "TREEVIEW" theme.
      This required calling the helper function
      QWindowsVistaStylePrivate::initTreeViewTheming() before
      QWindowsXPStylePrivate::createTheme(), which is prone to errors and
      initialization order issues.
      
      This could be solved by making QWindowsXPStylePrivate::createTheme()
      virtual or similar, but since it the fate of QWindowsXPStylePrivate is most likely
      to be merged into QWindowsVistaStylePrivate; it was decided to move
      the entire special handling of the Vista treeviews into
      QWindowsXPStylePrivate. The existing enumeration value
      QWindowsXPStylePrivate::TreeViewTheme is renamed to
      QWindowsXPStylePrivate::XpTreeViewTheme and a new value
      QWindowsXPStylePrivate::VistaTreeViewTheme is added for which
      QWindowsXPStylePrivate::createTheme() invokes the special handling.
      This also removes the need to destroy the helper window in unpolish(),
      which should save some initializations.
      
      Task-number: QTBUG-52230
      Change-Id: I0492ecf38fb3e5eabc4ecbdef70f0bf05e82e104
      Reviewed-by: default avatarAdam Light <aclight@gmail.com>
      Reviewed-by: default avatarJoerg Bornemann <joerg.bornemann@theqtcompany.com>
      f1e0eedc
    • Alexander Volkov's avatar
      Fix detection of the proxy base style when QT_STYLE_OVERRIDE is set · 4d10e55d
      Alexander Volkov authored
      
      QProxyStyle checks QApplicationPrivate::styleOverride but ignores
      QT_STYLE_OVERRIDE when it is trying to detect the name of the base
      style.
      Set styleOverride from QT_STYLE_OVERRIDE to make it work. Thus there
      is no need to check QT_STYLE_OVERRIDE from multiple places.
      
      Change-Id: I2a64b5ff5443701f800ef5d2a9cb425068f909f1
      Task-number: QTBUG-52596
      Reviewed-by: default avatarMarc Mutz <marc.mutz@kdab.com>
      4d10e55d
  6. 17 Apr, 2016 - 1 commit
  7. 16 Apr, 2016 - 1 commit
  8. 15 Apr, 2016 - 6 commits
  9. 14 Apr, 2016 - 4 commits