mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Specify QPoint in QWidget::mapToGlobal(QPoint &pos)
There's now both QPoint and QPointF overloads Reference: - https://doc.qt.io/qt-6/qwidget.html#mapToGlobal
This commit is contained in:
parent
2a8daaea05
commit
d6450a8f78
|
@ -540,7 +540,7 @@ void SplitInput::showCompletionPopup(const QString &text, bool emoteCompletion)
|
|||
else // autocomplete usernames
|
||||
popup->updateUsers(text, this->split_->getChannel());
|
||||
|
||||
auto pos = this->mapToGlobal({0, 0}) - QPoint(0, popup->height()) +
|
||||
auto pos = this->mapToGlobal(QPoint{0, 0}) - QPoint(0, popup->height()) +
|
||||
QPoint((this->width() - popup->width()) / 2, 0);
|
||||
|
||||
popup->move(pos);
|
||||
|
|
Loading…
Reference in a new issue