Skip to content

Commit

Permalink
use Q_OS_MACOS instead of deprecated Q_WS_MAC
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Aug 20, 2018
1 parent 444bf12 commit 5e050a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/grass/qtermwidget/tools.cpp
Expand Up @@ -33,7 +33,7 @@ QString get_kb_layout_dir()
//qDebug() << d.path();
if (d.exists())
return QCoreApplication::applicationDirPath() + "/kb-layouts/";
#ifdef Q_WS_MAC
#ifdef Q_OS_MACOS
d.setPath(QCoreApplication::applicationDirPath() + "/../Resources/kb-layouts/");
if (d.exists())
return QCoreApplication::applicationDirPath() + "/../Resources/kb-layouts/";
Expand Down Expand Up @@ -68,7 +68,7 @@ QString get_color_schemes_dir()
//qDebug() << d.path();
if (d.exists())
rval = QCoreApplication::applicationDirPath() + "/color-schemes/";
#ifdef Q_WS_MAC
#ifdef Q_OS_MACOS
d.setPath(QCoreApplication::applicationDirPath() + "/../Resources/color-schemes/");
if (d.exists())
rval = QCoreApplication::applicationDirPath() + "/../Resources/color-schemes/";
Expand Down

0 comments on commit 5e050a4

Please sign in to comment.