Logo Search packages:      
Sourcecode: qt4-x11 version File versions

bool QFile::exists (  )  const [inherited]

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Returns true if the file specified by fileName() exists; otherwise returns false.

See also:
fileName(), setFileName()

Definition at line 546 of file qfile.cpp.

References QFile::fileEngine().

Referenced by QFile::copy(), Q3FileDialog::done(), QDir::exists(), QFile::rename(), QDir::rename(), Q3Process::start(), and QDesktopServices::storageLocation().

{
    // 0x1000000 = QAbstractFileEngine::Refresh, forcing an update
    return (fileEngine()->fileFlags(QAbstractFileEngine::FlagsMask
                                    | QAbstractFileEngine::FileFlag(0x1000000)) & QAbstractFileEngine::ExistsFlag);
}


Generated by  Doxygen 1.6.0   Back to index