diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2019-09-07 22:08:54 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2019-09-07 22:08:54 +0000 |
| commit | 1e31fe896524513577911e382897b841e40a4814 (patch) | |
| tree | 153483337dcab82e0bc32cc19f7876a7eb9593c7 /src/qmmpui/detailsdialog.cpp | |
| parent | 1d6f69e20769d902a70001277199129361d0a761 (diff) | |
| download | qmmp-1e31fe896524513577911e382897b841e40a4814.tar.gz qmmp-1e31fe896524513577911e382897b841e40a4814.tar.bz2 qmmp-1e31fe896524513577911e382897b841e40a4814.zip | |
removed foreach macro
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9067 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/detailsdialog.cpp')
| -rw-r--r-- | src/qmmpui/detailsdialog.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qmmpui/detailsdialog.cpp b/src/qmmpui/detailsdialog.cpp index 0480d5077..06216a116 100644 --- a/src/qmmpui/detailsdialog.cpp +++ b/src/qmmpui/detailsdialog.cpp @@ -212,14 +212,14 @@ void DetailsDialog::updatePage() if(m_metaDataModel) { - foreach(TagModel *tagModel, m_metaDataModel->tags()) + for(TagModel *tagModel : m_metaDataModel->tags()) { TagEditor *editor = new TagEditor(tagModel, this); editor->setEnabled(!m_metaDataModel->isReadOnly()); m_ui->tabWidget->addTab(editor, tagModel->name()); } - foreach(MetaDataItem item, m_metaDataModel->descriptions()) + for(const MetaDataItem &item : m_metaDataModel->descriptions()) { QTextEdit *textEdit = new QTextEdit(this); textEdit->setReadOnly(true); @@ -254,7 +254,7 @@ void DetailsDialog::printInfo() //stream information if(core->state() == Qmmp::Playing && core->path() == m_info.path()) { - foreach(QString key, core->streamInfo().keys()) + for(const QString &key : core->streamInfo().keys()) streamInfoRows += formatRow(key, core->streamInfo().value(key)); } streamInfoRows = streamInfoRows.trimmed(); @@ -276,7 +276,7 @@ void DetailsDialog::printInfo() } if(m_metaDataModel) items << m_metaDataModel->extraProperties(); - foreach (MetaDataItem item, items) + for(const MetaDataItem &item : qAsConst(items)) propertyRows += formatRow(item); propertyRows = propertyRows.trimmed(); if(!propertyRows.isEmpty()) |
