void ECOListWidget::slotLinkClicked(const QUrl& url) { if(url.scheme().startsWith("player")) { QString tag = (url.scheme().contains("white")) ? TagNameWhite : TagNameBlack; emit filterEcoPlayerRequest(tag, ui->detailText->documentTitle(), url.path()); emit filterEcoPlayerRequest(url.path(), ui->detailText->documentTitle()); } else if(url.scheme().startsWith("eco")) { emit filterRequest(url.path()); } }
void PlayerListWidget::slotLinkClicked(const QUrl& url) { if (url.scheme().startsWith("eco")) { QString player = ui->tagList->currentIndex().data().toString(); QString tag = (url.scheme().contains("white")) ? TagNameWhite : TagNameBlack; emit filterEcoPlayerRequest(tag, url.path(), player); } }
void ECOListWidget::slotLinkClicked(const QUrl& url) { if (url.scheme().startsWith("player")) { QString eco = ui->tagList->currentIndex().data().toString(); emit filterEcoPlayerRequest(url.scheme().contains("white") ? TagNameWhite:TagNameBlack, eco, url.path()); } }