formatted all files with clang 9
This commit is contained in:
@@ -1335,8 +1335,7 @@ void ChannelView::mousePressEvent(QMouseEvent *event)
|
||||
// check if message is collapsed
|
||||
switch (event->button())
|
||||
{
|
||||
case Qt::LeftButton:
|
||||
{
|
||||
case Qt::LeftButton: {
|
||||
this->lastPressPosition_ = event->screenPos();
|
||||
this->isMouseDown_ = true;
|
||||
|
||||
@@ -1354,8 +1353,7 @@ void ChannelView::mousePressEvent(QMouseEvent *event)
|
||||
}
|
||||
break;
|
||||
|
||||
case Qt::RightButton:
|
||||
{
|
||||
case Qt::RightButton: {
|
||||
this->lastRightPressPosition_ = event->screenPos();
|
||||
this->isRightMouseDown_ = true;
|
||||
}
|
||||
@@ -1473,8 +1471,7 @@ void ChannelView::handleMouseClick(QMouseEvent *event,
|
||||
{
|
||||
switch (event->button())
|
||||
{
|
||||
case Qt::LeftButton:
|
||||
{
|
||||
case Qt::LeftButton: {
|
||||
if (this->selecting_)
|
||||
{
|
||||
// this->pausedBySelection = false;
|
||||
@@ -1498,8 +1495,7 @@ void ChannelView::handleMouseClick(QMouseEvent *event,
|
||||
}
|
||||
}
|
||||
break;
|
||||
case Qt::RightButton:
|
||||
{
|
||||
case Qt::RightButton: {
|
||||
auto insertText = [=](QString text) {
|
||||
if (auto split = dynamic_cast<Split *>(this->parentWidget()))
|
||||
{
|
||||
@@ -1714,16 +1710,14 @@ void ChannelView::handleLinkClick(QMouseEvent *event, const Link &link,
|
||||
switch (link.type)
|
||||
{
|
||||
case Link::UserWhisper:
|
||||
case Link::UserInfo:
|
||||
{
|
||||
case Link::UserInfo: {
|
||||
auto user = link.value;
|
||||
this->showUserInfoPopup(user);
|
||||
qDebug() << "Clicked " << user << "s message";
|
||||
}
|
||||
break;
|
||||
|
||||
case Link::Url:
|
||||
{
|
||||
case Link::Url: {
|
||||
if (getSettings()->openLinksIncognito && supportsIncognitoLinks())
|
||||
openLinkIncognito(link.value);
|
||||
else
|
||||
@@ -1731,8 +1725,7 @@ void ChannelView::handleLinkClick(QMouseEvent *event, const Link &link,
|
||||
}
|
||||
break;
|
||||
|
||||
case Link::UserAction:
|
||||
{
|
||||
case Link::UserAction: {
|
||||
QString value = link.value;
|
||||
|
||||
value.replace("{user}", layout->getMessage()->loginName)
|
||||
@@ -1744,14 +1737,12 @@ void ChannelView::handleLinkClick(QMouseEvent *event, const Link &link,
|
||||
}
|
||||
break;
|
||||
|
||||
case Link::AutoModAllow:
|
||||
{
|
||||
case Link::AutoModAllow: {
|
||||
getApp()->accounts->twitch.getCurrent()->autoModAllow(link.value);
|
||||
}
|
||||
break;
|
||||
|
||||
case Link::AutoModDeny:
|
||||
{
|
||||
case Link::AutoModDeny: {
|
||||
getApp()->accounts->twitch.getCurrent()->autoModDeny(link.value);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user