From f9e9ed8ed0263ce13305b831dbb12a14b0cbf498 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Fri, 16 Aug 2019 23:40:30 +0300 Subject: [PATCH] Improved stream header creation. --- src/widgets/splits/SplitHeader.cpp | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/src/widgets/splits/SplitHeader.cpp b/src/widgets/splits/SplitHeader.cpp index d77118ebe..7a3bb5d62 100644 --- a/src/widgets/splits/SplitHeader.cpp +++ b/src/widgets/splits/SplitHeader.cpp @@ -77,20 +77,15 @@ namespace { } auto formatTooltip(const TwitchChannel::StreamStatus &s) { - return QStringList{"", - "
",
- s.title.toHtmlEscaped(),
- "
",
- s.game.toHtmlEscaped(),
- "
",
- s.rerun ? "Vod-casting" : "Live",
- " for ",
- s.uptime,
- " with ",
- QString::number(s.viewerCount),
- " viewers",
- "
%1%2%3%4%5 for %6 with %7 viewers
") + .arg(s.title.toHtmlEscaped()) + .arg(s.title.isEmpty() ? QString() : "