Skip to content

Commit 7edaf08

Browse files
committed
Use isValidColorName instead of deprecated isValidColor
1 parent e6db11d commit 7edaf08

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

demos/rlPlanDemo/MainWindow.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2173,7 +2173,11 @@ MainWindow::parseCommandLine()
21732173
{
21742174
QString background = parser.value(backgroundOption);
21752175

2176+
#if QT_VERSION >= 0x060400
2177+
if (!QColor::isValidColorName(background))
2178+
#else
21762179
if (!QColor::isValidColor(background))
2180+
#endif
21772181
{
21782182
parser.showHelp();
21792183
}

extras/wrlview/MainWindow.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,11 @@ MainWindow::parseCommandLine()
735735
{
736736
QString background = parser.value(backgroundOption);
737737

738+
#if QT_VERSION >= 0x060400
739+
if (!QColor::isValidColorName(background))
740+
#else
738741
if (!QColor::isValidColor(background))
742+
#endif
739743
{
740744
parser.showHelp();
741745
}

0 commit comments

Comments
 (0)