Skip to content

Commit

Permalink
Use isValidColorName instead of deprecated isValidColor
Browse files Browse the repository at this point in the history
  • Loading branch information
rickertm committed Dec 28, 2024
1 parent e6db11d commit 7edaf08
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions demos/rlPlanDemo/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2173,7 +2173,11 @@ MainWindow::parseCommandLine()
{
QString background = parser.value(backgroundOption);

#if QT_VERSION >= 0x060400
if (!QColor::isValidColorName(background))
#else
if (!QColor::isValidColor(background))
#endif
{
parser.showHelp();
}
Expand Down
4 changes: 4 additions & 0 deletions extras/wrlview/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,11 @@ MainWindow::parseCommandLine()
{
QString background = parser.value(backgroundOption);

#if QT_VERSION >= 0x060400
if (!QColor::isValidColorName(background))
#else
if (!QColor::isValidColor(background))
#endif
{
parser.showHelp();
}
Expand Down

0 comments on commit 7edaf08

Please sign in to comment.