1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

tabwidget: port foreach -> range-based for

Signed-off-by: Juraj Oravec <sgd.orava@gmail.com>
This commit is contained in:
Juraj Oravec 2019-12-30 20:31:03 +01:00
parent f02cb62b7b
commit 1a3f887145
No known key found for this signature in database
GPG Key ID: 63ACB65056BC8D07

View File

@ -683,7 +683,8 @@ void TabBar::dropEvent(QDropEvent* event)
int index = tabAt(event->pos());
if (index == -1) {
if (mime->hasUrls()) {
foreach (const QUrl &url, mime->urls()) {
const auto urls = mime->urls();
for (const QUrl &url : urls) {
m_tabWidget->addView(url, Qz::NT_SelectedTabAtTheEnd);
}
} else if (mime->hasText()) {