Fix: Pass string list as const so that it's readable from QML.

This commit is contained in:
Filippo Scognamiglio
2014-12-21 16:09:07 +01:00
parent 5abc46fb0a
commit 71f2f3f9f0
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -175,7 +175,7 @@ QString KSession::getInitialWorkingDirectory()
return _initialWorkingDirectory;
}
void KSession::setArgs(QStringList &args)
void KSession::setArgs(const QStringList &args)
{
m_session->setArguments(args);
}
+3 -3
View File
@@ -60,9 +60,6 @@ public:
void setInitialWorkingDirectory(const QString & dir);
QString getInitialWorkingDirectory();
// Shell program args, default is none
void setArgs(QStringList & args);
//Text codec, default is UTF-8
void setTextCodec(QTextCodec * codec);
@@ -115,6 +112,9 @@ public slots:
// Shell program, default is /bin/bash
void setShellProgram(const QString & progname);
// Shell program args, default is none
void setArgs(const QStringList &args);
int getShellPID();
void changeDir(const QString & dir);