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/plugins/Ui/qsui/actionmanager.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/plugins/Ui/qsui/actionmanager.cpp')
| -rw-r--r-- | src/plugins/Ui/qsui/actionmanager.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/Ui/qsui/actionmanager.cpp b/src/plugins/Ui/qsui/actionmanager.cpp index 52597aad8..8e8e0ca7c 100644 --- a/src/plugins/Ui/qsui/actionmanager.cpp +++ b/src/plugins/Ui/qsui/actionmanager.cpp @@ -198,7 +198,7 @@ void ActionManager::saveStates() void ActionManager::saveActions() { QSettings settings(Qmmp::configFile(), QSettings::IniFormat); - foreach(QAction *action, m_actions.values()) + for(const QAction *action : m_actions.values()) { settings.setValue(QString("SimpleUiShortcuts/")+action->objectName(), action->shortcut()); } @@ -206,7 +206,7 @@ void ActionManager::saveActions() void ActionManager::resetShortcuts() { - foreach (QAction *action, m_actions.values()) + for(QAction *action : m_actions.values()) { action->setShortcut(action->property("defaultShortcut").toString()); } @@ -254,7 +254,7 @@ void ActionManager::updateToolBar(QToolBar *toolBar, ActionManager::ToolBarInfo { toolBar->clear(); toolBar->setIconSize(info.iconSize); - foreach (QString name, info.actionNames) + for(const QString &name : qAsConst(info.actionNames)) { if(name == "separator") { @@ -276,7 +276,7 @@ ActionManager::ToolBarInfo ActionManager::defaultToolBar() const idList << PL_ADD_FILE << PL_ADD_DIRECTORY << PREVIOUS << PLAY << PAUSE << STOP << NEXT << EJECT; idList << UI_SEPARATOR << UI_POS_SLIDER << UI_SEPARATOR << UI_VOL_SLIDER << VOL_MUTE; QStringList names; - foreach (Type id, idList) + for(const Type &id : qAsConst(idList)) { if(id == UI_SEPARATOR) { |
