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

Use QDir::homePath() insted of QDir::home().dirName() in doc example

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P4: Low
    • Some future release
    • 4.8.5, 5.2.0
    • Documentation
    • None

    Description

      In QInputDialog usage example (http://qt-project.org/doc/qt-5.1/qtwidgets/qinputdialog.html#details) used code:
      QDir::home().dirName(), but QDir::homePath() is shorter and theoretically faster, because home() is just a wrapper:

      static inline QDir home() { return QDir(homePath()); }

      Attachments

        For Gerrit Dashboard: QTBUG-35575
        # Subject Branch Project Status CR V

        Activity

          People

            vertries Nico Vertriest (Inactive)
            razrfalcon Evgeniy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes