mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
xd
This commit is contained in:
parent
bbcbad23a1
commit
b2dab3cf21
|
@ -466,7 +466,7 @@ void NotebookTab::mousePressEvent(QMouseEvent *event)
|
||||||
switch (event->button())
|
switch (event->button())
|
||||||
{
|
{
|
||||||
case Qt::RightButton: {
|
case Qt::RightButton: {
|
||||||
this->menu_.popup(event->globalPos());
|
this->menu_.popup(event->globalPos() + QPoint(0, 8));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:;
|
default:;
|
||||||
|
|
|
@ -333,7 +333,7 @@ std::unique_ptr<QMenu> SplitHeader::createMainMenu()
|
||||||
menu->addAction("Reload channel emotes", this,
|
menu->addAction("Reload channel emotes", this,
|
||||||
SLOT(reloadChannelEmotes()), QKeySequence("F5"));
|
SLOT(reloadChannelEmotes()), QKeySequence("F5"));
|
||||||
menu->addAction("Reload subscriber emotes", this,
|
menu->addAction("Reload subscriber emotes", this,
|
||||||
SLOT(reloadSubscriberEmotes()));
|
SLOT(reloadSubscriberEmotes()), QKeySequence("F5"));
|
||||||
}
|
}
|
||||||
|
|
||||||
menu->addSeparator();
|
menu->addSeparator();
|
||||||
|
@ -729,8 +729,8 @@ void SplitHeader::enterEvent(QEvent *event)
|
||||||
tooltip->setText(this->tooltipText_);
|
tooltip->setText(this->tooltipText_);
|
||||||
tooltip->setWordWrap(false);
|
tooltip->setWordWrap(false);
|
||||||
tooltip->adjustSize();
|
tooltip->adjustSize();
|
||||||
auto pos = this->mapToGlobal(this->rect().bottomLeft());
|
auto pos = this->mapToGlobal(this->rect().bottomLeft()) +
|
||||||
pos.setX(pos.x() + (this->width() - tooltip->width()) / 2);
|
QPoint((this->width() - tooltip->width()) / 2, 0);
|
||||||
|
|
||||||
tooltip->moveTo(this, pos, false);
|
tooltip->moveTo(this, pos, false);
|
||||||
tooltip->show();
|
tooltip->show();
|
||||||
|
|
Loading…
Reference in a new issue