dbaseeditorplugin.cc
QStringList dBaseProject::processEntries(const QStringList &paths,
                                           QHash<QString, QString> *map) const
{
    const QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
    const QDir projectDir(projectDirectory().toString());

    QFileInfo fileInfo;
    QStringList absolutePaths;
    foreach (const QString &path, paths) {
        QString trimmedPath = path.trimmed();
        if (trimmedPath.isEmpty())
            continue;

        expandEnvironmentVariables(env, trimmedPath);

        trimmedPath = FileName::fromUserInput(trimmedPath).toString();

        fileInfo.setFile(projectDir, trimmedPath);
        if (fileInfo.exists()) {
            const QString absPath = fileInfo.absoluteFilePath();
            absolutePaths.append(absPath);
            if (map)
                map->insert(absPath, trimmedPath);
        }
    }
    absolutePaths.removeDuplicates();
    return absolutePaths;
}
/**
 * Expands environment variables and converts the path from relative to the
 * project to an absolute path.
 *
 * The \a map variable is an optional argument that will map the returned
 * absolute paths back to their original \a entries.
 */
Expands environment variables and converts the path from relative to the
project to an absolute path.

The \a map variable is an optional argument that will map the returned
absolute paths back to their original \a entries.
Expands environment variables and converts the path from relative to the project to an absolute path . The \ a map variable is an optional argument that will map the returned absolute paths back to their original \ a entries .
QStringList dBaseProject::processEntries(const QStringList &paths,
                                           QHash<QString, QString> *map) const
{
    const QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
    const QDir projectDir(projectDirectory().toString());
    QFileInfo fileInfo;
    QStringList absolutePaths;
    foreach (const QString &path, paths) {
        QString trimmedPath = path.trimmed();
        if (trimmedPath.isEmpty())
            continue;
        expandEnvironmentVariables(env, trimmedPath);
        trimmedPath = FileName::fromUserInput(trimmedPath).toString();
        fileInfo.setFile(projectDir, trimmedPath);
        if (fileInfo.exists()) {
            const QString absPath = fileInfo.absoluteFilePath();
            absolutePaths.append(absPath);
            if (map)
                map->insert(absPath, trimmedPath);
        }
    }
    absolutePaths.removeDuplicates();
    return absolutePaths;
}
QStringList dBaseProject :: processEntries ( const QStringList & paths , QHash < QString , QString > * map ) const { const QProcessEnvironment env = QProcessEnvironment :: systemEnvironment ( ) ; const QDir projectDir ( projectDirectory ( ) . toString ( ) ) ; QFileInfo fileInfo ; QStringList absolutePaths ; foreach ( const QString & path , paths ) { QString trimmedPath = path . trimmed ( ) ; if ( trimmedPath . isEmpty ( ) ) continue ; expandEnvironmentVariables ( env , trimmedPath ) ; trimmedPath = FileName :: fromUserInput ( trimmedPath ) . toString ( ) ; fileInfo . setFile ( projectDir , trimmedPath ) ; if ( fileInfo . exists ( ) ) { const QString absPath = fileInfo . absoluteFilePath ( ) ; absolutePaths . append ( absPath ) ; if ( map ) map -> insert ( absPath , trimmedPath ) ; } } absolutePaths . removeDuplicates ( ) ; return absolutePaths ; }
Expands environment variables and converts the path from relative to the
 project to an absolute path.
Expands environment variables and converts the path from relative to the project to an absolute path .