// Get all the folder URLs.
QList<QString> *folderUrlsListPointer = BookmarksDatabase::getAllFolderUrls(folderId);
- // Open the URLs in new tabs. `true` removes the URL line edit focus, `false` does not load a background tab.
+ // Open the URLs in new tabs. `true` removes the URL line edit focus, `true` opens the new tabs in an adjacent tab. `false` does not load a background tab.
for (QString url : *folderUrlsListPointer)
- tabWidgetPointer->addTab(true, false, url);
+ tabWidgetPointer->addTab(true, true, false, url);
}
);
// Get all the folder URLs.
QList<QString> *folderUrlsListPointer = BookmarksDatabase::getAllFolderUrls(folderId);
- // Open the URLs in new tabs. `true` removes the URL line edit focus, `true` loads a background tab.
+ // Open the URLs in new tabs. `true` removes the URL line edit focus, `true` opens the new tabs in an adjacent tab. `true` loads a background tab.
for (QString url : *folderUrlsListPointer)
- tabWidgetPointer->addTab(true, true, url);
+ tabWidgetPointer->addTab(true, true, true, url);
}
);
// Get a count of the folder URLs.
const int folderUrls = folderUrlsListPointer->count();
- // Load all the other URLs. `true` removes the URL line edit focus, `true` loads a background tab.
+ // Load all the other URLs. `true` removes the URL line edit focus, `false` does not load the new tabs in adjacent tabs. `true` loads a background tab.
for (int i = 1; i < folderUrls; ++i)
- browserWindowPointer->tabWidgetPointer->addTab(true, true, folderUrlsListPointer->value(i));
+ browserWindowPointer->tabWidgetPointer->addTab(true, false, true, folderUrlsListPointer->value(i));
// Show the new browser window.
browserWindowPointer->show();
// Get the bookmark.
BookmarkStruct *bookmarkStructPointer = BookmarksDatabase::getBookmark(databaseId);
- // Open the bookmark in a new tab. `true` removes the URL line edit focus, `false` does not load a background tab.
- tabWidgetPointer->addTab(true, false, bookmarkStructPointer->url);
+ // Open the bookmark in a new tab. `true` removes the URL line edit focus, `true` opens the new tab in an adjacent tab. `false` does not load a background tab.
+ tabWidgetPointer->addTab(true, true, false, bookmarkStructPointer->url);
}
);
// Get the bookmark.
BookmarkStruct *bookmarkStructPointer = BookmarksDatabase::getBookmark(databaseId);
- // Open the bookmark in a new tab. `true` removes the URL line edit focus, `true` loads a background tab.
- tabWidgetPointer->addTab(true, true, bookmarkStructPointer->url);
+ // Open the bookmark in a new tab. `true` removes the URL line edit focus, `true` opens the new tab in an adjacent tab. `true` loads a background tab.
+ tabWidgetPointer->addTab(true, true, true, bookmarkStructPointer->url);
}
);
url = url.prepend(QLatin1String("view-source:"));
}
- // Add the new tab. `true` removes the URL line edit focus, `false` does not open a background tab.
- tabWidgetPointer->addTab(true, false, url);
+ // Add the new tab. `true` removes the URL line edit focus, `true` opens the new tab in an adjacent tab. `false` does not open a background tab.
+ tabWidgetPointer->addTab(true, true, false, url);
}
void BrowserWindow::updateBookmarkedAction() const