mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-22 09:40:52 +01:00
Replace foreach function by for, please try and report problem
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4900 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -116,7 +116,7 @@ void TitleBlockTemplateLocationChooser::updateCollections() {
|
||||
collections_index_.clear();
|
||||
|
||||
int index = 0;
|
||||
foreach(TitleBlockTemplatesCollection *collection, QETApp::availableTitleBlockTemplatesCollections()) {
|
||||
for (TitleBlockTemplatesCollection *collection: QETApp::availableTitleBlockTemplatesCollections()) {
|
||||
collections_ -> addItem(collection -> title());
|
||||
collections_index_.insert(index, collection);
|
||||
++ index;
|
||||
@@ -136,7 +136,7 @@ void TitleBlockTemplateLocationChooser::updateTemplates() {
|
||||
|
||||
QStringList available_templates = current_collection -> templates();
|
||||
if (available_templates.count()) {
|
||||
foreach (QString template_name, available_templates) {
|
||||
for (QString template_name: available_templates) {
|
||||
templates_ -> addItem(template_name, QVariant(true));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user