Vi: support align and indent commands

This commit is contained in:
Le Tan 2021-07-18 10:39:44 +08:00
parent 91527aed58
commit edfdd68c36
3 changed files with 6 additions and 4 deletions

@ -1 +1 @@
Subproject commit 8bcd2f0416df45409bb3b97c330adea7e3e3295b Subproject commit 76a963c0e2ac488001872ac6f324ba1c8b177bfd

View File

@ -1,6 +1,7 @@
#include "graphvizhelper.h" #include "graphvizhelper.h"
#include <QDebug> #include <QDebug>
#include <QDir>
#include <utils/processutils.h> #include <utils/processutils.h>
@ -37,7 +38,7 @@ void GraphvizHelper::prepareProgramAndArgs(const QString &p_graphvizFile,
p_program.clear(); p_program.clear();
p_args.clear(); p_args.clear();
p_program = p_graphvizFile.isEmpty() ? QStringLiteral("dot") : p_graphvizFile; p_program = p_graphvizFile.isEmpty() ? QStringLiteral("dot") : QDir::toNativeSeparators(p_graphvizFile);
} }
QPair<bool, QString> GraphvizHelper::testGraphviz(const QString &p_graphvizFile) QPair<bool, QString> GraphvizHelper::testGraphviz(const QString &p_graphvizFile)

View File

@ -1,6 +1,7 @@
#include "plantumlhelper.h" #include "plantumlhelper.h"
#include <QDebug> #include <QDebug>
#include <QDir>
#include <utils/processutils.h> #include <utils/processutils.h>
@ -58,12 +59,12 @@ void PlantUmlHelper::prepareProgramAndArgs(const QString &p_plantUmlJarFile,
p_args << "-Djava.awt.headless=true"; p_args << "-Djava.awt.headless=true";
p_args << "-jar" << p_plantUmlJarFile; p_args << "-jar" << QDir::toNativeSeparators(p_plantUmlJarFile);
p_args << "-charset" << "UTF-8"; p_args << "-charset" << "UTF-8";
if (!p_graphvizFile.isEmpty()) { if (!p_graphvizFile.isEmpty()) {
p_args << "-graphvizdot" << p_graphvizFile; p_args << "-graphvizdot" << QDir::toNativeSeparators(p_graphvizFile);
} }
p_args << "-pipe"; p_args << "-pipe";