- * @return a QPair with first containing the index of the tab with the
- * desired URL or -1 if not found. Second says true if URL is in primary
- * view container, false otherwise. False means the URL is in the secondary
- * view container, unless first == -1. In that case the value of second
- * is meaningless.
- */
- QPair<int, bool> indexByUrl(const QUrl& url) const;
+ * @param childUrlBehavior Whether a tab with opened parent of the URL can be returned too
+ * @return a QPair with:
+ * First containing the index of the tab with the desired URL or -1 if not found.
+ * Second says true if URL is in primary view container, false otherwise.
+ * False means the URL is in the secondary view container, unless first == -1.
+ * In that case the value of second is meaningless.
+ */
+ QPair<int, bool> indexByUrl(const QUrl& url, ChildUrlBehavior childUrlBehavior = ReturnIndexForOpenedUrlOnly) const;