Fix: Pass string list as const so that it's readable from QML.
This commit is contained in:
+1
-1
@@ -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
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user