Beispiel #1
0
void FileSystem::prepareBeforeLoadFile(const QString &filename)
{
    checkSelectedFileIsSupported(filename);
    createEntry(filename);
    setWorkDirectory(filename);

    Config::changeLastWorkDirectory(filename);
}
Beispiel #2
0
/**
 * @fn QueuedProcess
 */
QueuedProcess::QueuedProcess(QObject *_parent, const QueuedProcessDefinitions &definitions,
                             const long long index)
    : QProcess(_parent)
    , m_definitions(definitions)
    , m_index(index)
{
    qCDebug(LOG_LIB) << __PRETTY_FUNCTION__;

    qRegisterMetaType<QueuedLimits::Limits>("QueuedLimits::Limits");

    m_cgroup = new QueuedControlGroupsAdaptor(this, name());

    // update QProcess related values as well
    setProgram(m_definitions.command);
    setArguments(m_definitions.arguments);
    setWorkDirectory(m_definitions.workingDirectory);

    connect(this, SIGNAL(started()), this, SLOT(applyCGroup()));
}