equal
deleted
inserted
replaced
1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the Qt Designer of the Qt Toolkit. |
7 ** This file is part of the Qt Designer of the Qt Toolkit. |
8 ** |
8 ** |
159 |
159 |
160 QStringList QDesignerSharedSettings::additionalFormTemplatePaths() const |
160 QStringList QDesignerSharedSettings::additionalFormTemplatePaths() const |
161 { |
161 { |
162 // get template paths excluding internal ones |
162 // get template paths excluding internal ones |
163 QStringList rc = formTemplatePaths(); |
163 QStringList rc = formTemplatePaths(); |
164 foreach (QString internalTemplatePath, defaultFormTemplatePaths()) { |
164 foreach (const QString &internalTemplatePath, defaultFormTemplatePaths()) { |
165 const int index = rc.indexOf(internalTemplatePath); |
165 const int index = rc.indexOf(internalTemplatePath); |
166 if (index != -1) |
166 if (index != -1) |
167 rc.removeAt(index); |
167 rc.removeAt(index); |
168 } |
168 } |
169 return rc; |
169 return rc; |