This commit is contained in:
朱子楚\zhuzi
2023-05-18 20:57:57 +08:00
parent 1491abc614
commit 0003f8192e
4 changed files with 31 additions and 2 deletions

View File

@ -39,4 +39,27 @@ QString FluTools::readFile(const QString &fileName)
return content;
}
bool FluTools::isMacos(){
#if defined(Q_OS_MACOS)
return true;
#else
return false;
#endif
}
bool FluTools::isLinux(){
#if defined(Q_OS_LINUX)
return true;
#else
return false;
#endif
}
bool FluTools::isWin(){
#if defined(Q_OS_WIN)
return true;
#else
return false;
#endif
}