added more playsound stuff

This commit is contained in:
apa420
2018-08-24 18:05:36 +02:00
parent 8d5b93fe82
commit e58e76ef1e
5 changed files with 43 additions and 22 deletions
+12
View File
@@ -559,6 +559,18 @@ void ChannelView::setChannel(ChannelPtr newChannel)
if (tc != nullptr) {
tc->tabHighlightRequested.connect([this](HighlightState state) {
this->tabHighlightRequested.invoke(HighlightState::Notification);
/*
QPainter painter(this);
painter.setRenderHint(QPainter::Antialiasing, true);
painter.translate(2, 2);
painter.setPen(QColor("#6441A4"));
painter.drawEllipse(QRectF(10, 10, 5, 5));
*/
QPainter painter(this);
auto radius = 10;
painter.setPen(QColor("#6441A4"));
painter.drawEllipse(this->rect().center(), radius, radius);
});
}
}