Exemple #1
0
void SumatraSynctex::syncView(const QString& pdfFile, int page)
{
   QStringList args = standardSumatraArgs();
   args.append(QString::fromUtf8("-page"));
   args.append(QString::fromStdString(safe_convert::numberToString(page)));
   args.append(inverseSearchArgs(mainWindowId()));
   args.append(pdfFile);
   QProcess::startDetached(sumatraExePath_, args);
}
Exemple #2
0
void SumatraSynctex::syncView(const QString& pdfFile,
                              const QString& srcFile,
                              const QPoint& srcLoc)
{
   QStringList args = standardSumatraArgs();
   args.append(QString::fromAscii("-forward-search"));
   args.append(srcFile);
   args.append(
      QString::fromStdString(safe_convert::numberToString(srcLoc.x())));
   args.append(inverseSearchArgs(mainWindowId()));
   args.append(pdfFile);
   QProcess::startDetached(sumatraExePath_, args);
}