Skip to content

Commit b2ea421

Browse files
DarthGandalfCalcProgrammer1
authored andcommitted
Use a common way to check for Qt6 instead of introducing UB
1 parent 4903631 commit b2ea421

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

OpenRGB.pro

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ CONFIG += c++17
2121

2222
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
2323

24-
greaterThan(QT_MAJOR_VERSION, 5): DEFINES += _QT6
25-
2624
#-----------------------------------------------------------------------------------------------#
2725
# Application Configuration #
2826
#-----------------------------------------------------------------------------------------------#

qt/OpenRGBSupportedDevicesPage/OpenRGBSupportedDevicesPage.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void OpenRGBSupportedDevicesPage::on_GetHardwareIDsButton_clicked()
7070

7171
void OpenRGBSupportedDevicesPage::on_Filter_textChanged(const QString &arg1)
7272
{
73-
#ifdef _QT6
73+
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
7474
detectorSortModel->setFilterRegularExpression(QRegularExpression(arg1 , QRegularExpression::CaseInsensitiveOption));
7575
#else
7676
detectorSortModel->setFilterRegExp(QRegExp(arg1, Qt::CaseInsensitive));

0 commit comments

Comments
 (0)