diff --git a/src/widgets/helper/NotebookTab.cpp b/src/widgets/helper/NotebookTab.cpp index 8d81ac490..282eb2841 100644 --- a/src/widgets/helper/NotebookTab.cpp +++ b/src/widgets/helper/NotebookTab.cpp @@ -466,7 +466,7 @@ void NotebookTab::mousePressEvent(QMouseEvent *event) switch (event->button()) { case Qt::RightButton: { - this->menu_.popup(event->globalPos()); + this->menu_.popup(event->globalPos() + QPoint(0, 8)); } break; default:; diff --git a/src/widgets/splits/SplitHeader.cpp b/src/widgets/splits/SplitHeader.cpp index b33c81219..73743f3bf 100644 --- a/src/widgets/splits/SplitHeader.cpp +++ b/src/widgets/splits/SplitHeader.cpp @@ -333,7 +333,7 @@ std::unique_ptr SplitHeader::createMainMenu() menu->addAction("Reload channel emotes", this, SLOT(reloadChannelEmotes()), QKeySequence("F5")); menu->addAction("Reload subscriber emotes", this, - SLOT(reloadSubscriberEmotes())); + SLOT(reloadSubscriberEmotes()), QKeySequence("F5")); } menu->addSeparator(); @@ -729,8 +729,8 @@ void SplitHeader::enterEvent(QEvent *event) tooltip->setText(this->tooltipText_); tooltip->setWordWrap(false); tooltip->adjustSize(); - auto pos = this->mapToGlobal(this->rect().bottomLeft()); - pos.setX(pos.x() + (this->width() - tooltip->width()) / 2); + auto pos = this->mapToGlobal(this->rect().bottomLeft()) + + QPoint((this->width() - tooltip->width()) / 2, 0); tooltip->moveTo(this, pos, false); tooltip->show();