I just started using qtsingleapplication from qt solutions. I see that recently
Christian Dähn responded to a reported problem in this component, so I'm
hopeful that there is still interest in improving it. But I don't see a clear
way to file bugs- is there a way?
We compile with QT_NO_CAST_FROM_BYTEARRAY and QT_NO_CAST_FROM_ASCII defined.
The file qtlocalpeer.cpp gives a couple of compile errors with those
definitions:
/qtbuild/install/macosx/include/QtCore/qstring.h: In constructor
'QtLocalPeer::QtLocalPeer(QObject*, const QString&)':
/qtbuild/install/macosx/include/QtCore/qstring.h:597: error:
'QString::QString(const char*)' is private
../IgorSrc7/qtsingleapplication/src/qtlocalpeer.cpp:80: error: within this
context
/qtbuild/install/macosx/include/QtCore/qbytearray.h: In member function 'void
QtLocalPeer::receiveConnection()':
/qtbuild/install/macosx/include/QtCore/qbytearray.h:383: error:
'QByteArray::operator QNoImplicitBoolCast() const' is private
../IgorSrc7/qtsingleapplication/src/qtlocalpeer.cpp:197: error: within this
context
../IgorSrc7/qtsingleapplication/src/qtlocalpeer.cpp:197: error: invalid
conversion from 'QNoImplicitBoolCast' to 'const char*'
../IgorSrc7/qtsingleapplication/src/qtlocalpeer.cpp:197: error: initializing
argument 1 of 'static QString QString::fromUtf8(const char*, int)'
It's easy to fix, as far as I can see:
Line 80:
prefix.remove(QRegExp(QLatin1String("[^a-zA-Z]")));
Line 197:
QString message(QString::fromUtf8(uMsgBuf));
and I don't think that will cause problems when those macros are NOT defined.
-John Weeks
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest