rgheck schreef:
bool QFileInfo::operator!= ( const QFileInfo & /fileinfo/ )
Returns true if this QFileInfo <qfileinfo.html> object refers to a
_*different file*_ than the one specified by /fileinfo/; otherwise
returns false.
bool QFileInfo::operator== ( const QFileInfo & /fileinfo/ )
Returns true if this QFileInfo <qfileinfo.html> object refers to a
file _*in the same location*_ as /fileinfo/; otherwise returns false.
WHAT ??????
see http://doc.trolltech.com/4.5/qfileinfo.html#operator-not-eq
Did this change? I remember that there was a problem about the
symlinks that we had at one point.
rh
Well, I see now that the documentation of 4.4.3 is the same. Maybe they
only changed the implementation.
Anyway, it makes no sense at all to me.. but something changed
I made a very small test program, containing the following lines:
QFileInfo a("C:/Users/Vincent/OpenSource/test/test12.cpp");
QFileInfo b("C:/Users/Vincent/OpenSource/test/test13.cpp");
Now, a==b returns false in Qt4.4.3 and true in Qt4.5.
(attached is the small test file.)
Vincent
#include <QString>
#include <QFileInfo>
#include <QApplication>
#include <QPushButton>
#include <stdlib.h>
int main(int argc, char * argv[])
{
QApplication app(argc, argv);
QFileInfo a("C:/Users/Vincent/OpenSource/test/test12.cpp");
QFileInfo b("C:/Users/Vincent/OpenSource/test/test13.cpp");
QString num;
num.setNum(a==b);
QPushButton hello(num);
hello.show();
return app.exec();
}