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

Can't use QComboBox with Sun Studio because of type mismatch

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 4.7.0
    • 4.6.1
    • None
    • SunOS stars 5.11 snv_132 i86pc i386 i86pc Solaris
      Sun Studio 12u1
    • 24c56ac5309150cf7ba42cd974df4e98d97ebb81

    Description

      I tried to compile LyX on OpenSolaris, using Sun Studio 12u1. LyX includes QtGui/qcombobox.h which incorreclty uses QFlags. Error messages are:

      "/opt/foss/qt4/include/QtGui/qcombobox.h", line 114: Error: Formal argument flags of type QFlags<Qt::MatchFlag> in call to QComboBox::findText(const QString&, QFlags<Qt::MatchFlag>) const is being passed int.
      "/opt/foss/qt4/include/QtGui/qcombobox.h", line 114: Error: Formal argument flags of type QFlags<Qt::MatchFlag> in call to QComboBox::findText(const QString&, QFlags<Qt::MatchFlag>) const is being passed int.

      This is because

      inline int findText(const QString &text,
      Qt::MatchFlags flags = Qt::MatchExactly|Qt::MatchCaseSensitive) const

      { return findData(text, Qt::DisplayRole, flags); }

      int findData(const QVariant &data, int role = Qt::UserRole,
      Qt::MatchFlags flags = Qt::MatchExactly|Qt::MatchCaseSensitive) const;

      where Qt::MatchExactly|Qt::MatchCaseSensitive gets an int...

      Attachments

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

        Activity

          People

            vfm Thierry Bastian (closed Nokia identity) (Inactive)
            fthieme Frank Thieme
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes