mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-22 01:25:10 -07:00
[CI] Remove Qt5 (#7071)
* [CI] Remove Qt5 Took 10 minutes Took 9 minutes * Revert CI failure and fix up comments Took 4 minutes --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
parent
59d90db3c7
commit
c4316c40e9
60 changed files with 103 additions and 555 deletions
|
|
@ -636,19 +636,11 @@ void UserInfoPopup::refreshGames()
|
|||
|
||||
// ── Mouse events ──────────────────────────────────────────────────────────────
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||
void UserInfoPopup::enterEvent(QEnterEvent *e)
|
||||
{
|
||||
QFrame::enterEvent(e);
|
||||
emit mouseEnteredPopup();
|
||||
}
|
||||
#else
|
||||
void UserInfoPopup::enterEvent(QEvent *e)
|
||||
{
|
||||
QFrame::enterEvent(e);
|
||||
emit mouseEnteredPopup();
|
||||
}
|
||||
#endif
|
||||
void UserInfoPopup::leaveEvent(QEvent *e)
|
||||
{
|
||||
QFrame::leaveEvent(e);
|
||||
|
|
|
|||
|
|
@ -143,11 +143,7 @@ signals:
|
|||
void demoteFromJudgeRequested(const QString &userName);
|
||||
|
||||
protected:
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||
void enterEvent(QEnterEvent *e) override;
|
||||
#else
|
||||
void enterEvent(QEvent *e) override;
|
||||
#endif
|
||||
void leaveEvent(QEvent *e) override;
|
||||
|
||||
private slots:
|
||||
|
|
|
|||
|
|
@ -340,11 +340,7 @@ bool UserListItemDelegate::editorEvent(QEvent *event,
|
|||
if ((event->type() == QEvent::MouseButtonPress) && index.isValid()) {
|
||||
QMouseEvent *const mouseEvent = static_cast<QMouseEvent *>(event);
|
||||
if (mouseEvent->button() == Qt::RightButton) {
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
|
||||
static_cast<UserListWidget *>(parent())->showContextMenu(mouseEvent->globalPosition().toPoint(), index);
|
||||
#else
|
||||
static_cast<UserListWidget *>(parent())->showContextMenu(mouseEvent->globalPos(), index);
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue