On Tue, Jul 22, 2008 at 11:58:38AM -0400, rgheck wrote:
> {
> // There seems to be a bug in Qt 4.3.5, at least, that causes problems with
> // QFileInfo::refresh() on Linux. So we recreate the object in that case.
> #if defined(__linux__) && (QT_VERSION >= 0x040300)
> fi = QFileInfo(fi.absoluteFilePath());
> #else
> fi.refresh();
> #endif
> }
> ///
> QFileInfo fi;
> };
>
> Presumably, 0x040300 should be changed to 0x040200, but I'm not  
> sufficiently familiar with preprocessor stuff to know what we should do  
> about checking for "unix".

Since we are in Qt world there anyway, #ifdef Q_OS_UNIX should do fine.

Andre'
>
>

Reply via email to