Fix minor code issues

This commit is contained in:
Jonas Kvinge
2019-09-15 20:27:32 +02:00
parent 83e10aac27
commit 2d67279180
147 changed files with 644 additions and 329 deletions

View File

@@ -57,6 +57,8 @@ QSize FavoriteWidget::sizeHint() const {
void FavoriteWidget::paintEvent(QPaintEvent *e) {
Q_UNUSED(e);
QStylePainter p(this);
if (favorite_) {
@@ -69,7 +71,11 @@ void FavoriteWidget::paintEvent(QPaintEvent *e) {
}
void FavoriteWidget::mouseReleaseEvent(QMouseEvent *e) {
Q_UNUSED(e);
favorite_ = !favorite_;
update();
emit FavoriteStateChanged(tab_index_, favorite_);
}