mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-08 09:03:57 -07:00
remove more qt checks up to min version (6.4)
This commit is contained in:
parent
9b02dae1fa
commit
544906042a
3 changed files with 1 additions and 22 deletions
|
|
@ -636,19 +636,12 @@ 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:
|
||||
|
|
|
|||
|
|
@ -138,12 +138,7 @@ MessagesSettingsPage::MessagesSettingsPage()
|
|||
|
||||
void MessagesSettingsPage::updateColor(const QString &value)
|
||||
{
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6, 4, 0))
|
||||
QColor colorToSet = QColor::fromString("#" + value);
|
||||
#else
|
||||
QColor colorToSet;
|
||||
colorToSet.setNamedColor("#" + value);
|
||||
#endif
|
||||
if (colorToSet.isValid()) {
|
||||
SettingsCache::instance().setChatMentionColor(value);
|
||||
updateMentionPreview();
|
||||
|
|
@ -152,12 +147,7 @@ void MessagesSettingsPage::updateColor(const QString &value)
|
|||
|
||||
void MessagesSettingsPage::updateHighlightColor(const QString &value)
|
||||
{
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6, 4, 0))
|
||||
QColor colorToSet = QColor::fromString("#" + value);
|
||||
#else
|
||||
QColor colorToSet;
|
||||
colorToSet.setNamedColor("#" + value);
|
||||
#endif
|
||||
if (colorToSet.isValid()) {
|
||||
SettingsCache::instance().setChatHighlightColor(value);
|
||||
updateHighlightPreview();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue