Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-5046

Incomplete documentation for QTableView::setSortingEnabled (bool)

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • Not Evaluated
    • 4.6.1
    • 4.5.2
    • Documentation
    • None

    Description

      Platform
      Linux
      Platform details
      Compilers
      GCC

      As can be confirmed by looking at QTableView::setSortingEnabled(bool) in qtableview.cpp, calling this function with 'true' will trigger a call to sortByColumn(...) which undoubtedly be advertised in the documentation since this not quite logical and sometimes not desired.

      Documentation could say something like:
      "Setting this property to true will trigger a call to sortByColumn() with current sort section and order".

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            gbk Martin Smith (Qt)
            dajansen Damian Jansen (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes