Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
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
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...