open twitch usercard on middle mouse (#1669)

Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
Daniel Pasch
2020-05-10 12:45:19 +02:00
committed by GitHub
parent 8532c6d3bc
commit be6ef6dcd5
6 changed files with 47 additions and 7 deletions
+12
View File
@@ -0,0 +1,12 @@
#include "util/Twitch.hpp"
#include <QDesktopServices>
namespace chatterino {
void openTwitchUsercard(QString channel, QString username)
{
QDesktopServices::openUrl("https://www.twitch.tv/popout/" + channel +
"/viewercard/" + username);
}
} // namespace chatterino
+9
View File
@@ -0,0 +1,9 @@
#pragma once
#include <QString>
namespace chatterino {
void openTwitchUsercard(const QString channel, const QString username);
} // namespace chatterino