Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

now we call process can give arguments by js array

  • Loading branch information...
commit 7a07acfa702ccb8e2eade08b6fa05813868b19f3 1 parent 76329af
xunxin authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 mainwindow.h
5 mainwindow.h
View
@@ -74,9 +74,10 @@ public slots:
m_view->page()->mainFrame()->evaluateJavaScript(m_processCallback + "(" + QString::number(exitCode) + ");");
}
- bool callProcess(const QString& process, const QString& callback) {
+ bool callProcess(const QString& process, const QStringList& list, const QString& callback) {
m_processCallback = callback;
- m_callProc->start(process);
+ qDebug() << "run process: " << process << " args: " << list;
+ m_callProc->start(process, list);
return true;
}
Please sign in to comment.
Something went wrong with that request. Please try again.