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

Two functions of QProgressBar are not const, so it is not possible to retrieve them in a const environment QProgressBar::invertedAppearance() QProgressBar::textDirection()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 4.7.0
    • 4.6.0
    • None
    • Windows XP SP3
      VC2008
    • 9ecba4c0c963272bbbac627a6742153b5f6f361f

    Description

      Two functions of QProgressBar are not const, so it is not possible to retrieve them in a const environment
      QProgressBar::invertedAppearance()
      QProgressBar::textDirection()

      example:
      int myFunction(const QProgressBar& ProgressBar)
      {
      bool Info1 = ProgressBar.invertedAppearance();
      QProgressBar::Direction Info2 = ProgressBar.textDirection();
      }

      .\source\html_operator.cpp(15) : error C2662: 'QProgressBar::invertedAppearance': this-Zeiger kann nicht von 'const QProgressBar' in 'QProgressBar &' konvertiert werden
      .\source\html_operator.cpp(16) : error C2662: 'QProgressBar::textDirection': this-Zeiger kann nicht von 'const QProgressBar' in 'QProgressBar &' konvertiert werden

      Qt::Alignment alignment () const
      QString format () const
      bool invertedAppearance () !!! const missing
      bool isTextVisible () const
      int maximum () const
      int minimum () const
      Qt::Orientation orientation () const
      virtual QString text () const
      QProgressBar::Direction textDirection () !!! const missing
      int value () const

      Attachments

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

        Activity

          People

            goffart Olivier Goffart (closed Nokia identity) (Inactive)
            troll.soft Reinhold Klein
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes