mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-24 04:36:34 +01:00
tabwidget: port foreach -> range-based for
Signed-off-by: Juraj Oravec <sgd.orava@gmail.com>
This commit is contained in:
parent
f02cb62b7b
commit
1a3f887145
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user