forked from qt-creator/qt-creator
Core: Replace preprocessor with HostOsInfo
Change-Id: I2f227277fc52df3e4902ea24838f7601dfb84014 Reviewed-by: Daniel Teske <qt@squorn.de> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
b547b5b078
commit
074b61c3a7
@@ -28,6 +28,8 @@
|
||||
#include <coreplugin/core_global.h>
|
||||
#include <coreplugin/id.h>
|
||||
|
||||
#include <utils/hostosinfo.h>
|
||||
|
||||
#include <QObject>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
@@ -41,11 +43,7 @@ namespace Core {
|
||||
|
||||
class Context;
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
enum { UseMacShortcuts = 1 };
|
||||
#else
|
||||
enum { UseMacShortcuts = 0 };
|
||||
#endif
|
||||
enum { UseMacShortcuts = Utils::HostOsInfo::isMacHost() ? 1 : 0 };
|
||||
|
||||
class CORE_EXPORT Command : public QObject
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user