mirror of
https://github.com/KDE/konsole.git
synced 2026-06-10 06:55:13 -04:00
Port to KF5/Qt5
To build for KF5 pass the option -DQT5_BUILD=ON to CMake TerminalDisplayAccessible is disabled for Qt5 currently since I don't have any experience with accessible stuff and it is more complicated than just changing a few includes REVIEW: 111937
This commit is contained in:
@@ -141,7 +141,7 @@ bool ShellCommand::expandEnv(QString& text)
|
||||
|
||||
const int len = endPos - dollarPos;
|
||||
const QString key = text.mid(dollarPos + 1, len - 1);
|
||||
const QString value = QString::fromLocal8Bit(qgetenv(key.toLocal8Bit()));
|
||||
const QString value = QString::fromLocal8Bit(qgetenv(key.toLocal8Bit().constData()));
|
||||
|
||||
if (!value.isEmpty()) {
|
||||
text.replace(dollarPos, len, value);
|
||||
|
||||
Reference in New Issue
Block a user