forked from qt-creator/qt-creator
Add a comand line editor for environment variables
Task-number: QTCREATORBUG-6499 Change-Id: I43df7bddd10776e0fdb192c668ab0d99a6fea7e6 Reviewed-by: Daniel Teske <daniel.teske@nokia.com> Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -38,6 +38,16 @@
|
||||
|
||||
namespace Utils {
|
||||
|
||||
static bool sortEnvironmentItem(const EnvironmentItem &a, const EnvironmentItem &b)
|
||||
{
|
||||
return a.name < b.name;
|
||||
}
|
||||
|
||||
void EnvironmentItem::sort(QList<EnvironmentItem> *list)
|
||||
{
|
||||
qSort(list->begin(), list->end(), &sortEnvironmentItem);
|
||||
}
|
||||
|
||||
QList<EnvironmentItem> EnvironmentItem::fromStringList(const QStringList &list)
|
||||
{
|
||||
QList<EnvironmentItem> result;
|
||||
|
||||
Reference in New Issue
Block a user