fix: mac build error

This commit is contained in:
rankun 2020-02-16 10:48:26 +08:00
commit bf849d8a1a
2 changed files with 17 additions and 3 deletions

View file

@ -36,6 +36,20 @@ public:
QPointF pos = QPointF(0, 0); // normal key QPointF pos = QPointF(0, 0); // normal key
QPointF extendPos = QPointF(0, 0); // for drag QPointF extendPos = QPointF(0, 0); // for drag
double extendOffset = 0.0; // for steerWheel double extendOffset = 0.0; // for steerWheel
KeyNode(ActionType type = AT_INVALID,
int key = Qt::Key_unknown,
QPointF pos = QPointF(0, 0),
QPointF extendPos = QPointF(0, 0),
double extendOffset = 0.0)
: type(type)
, key(key)
, pos(pos)
, extendPos(extendPos)
, extendOffset(extendOffset)
{
}
}; };
struct KeyMapNode { struct KeyMapNode {
@ -112,7 +126,7 @@ private:
static QString s_keyMapPath; static QString s_keyMapPath;
QVector<KeyMapNode> m_keyMapNodes; QVector<KeyMapNode> m_keyMapNodes;
KeyNode m_switchKey = { AT_KEY, Qt::Key_QuoteLeft }; KeyNode m_switchKey = {AT_KEY, Qt::Key_QuoteLeft};
// just for return // just for return
KeyMapNode m_invalidNode; KeyMapNode m_invalidNode;

View file

@ -19,13 +19,13 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>APPL</string> <string>APPL</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>1.0.4</string> <string>1.2.0</string>
<key>CFBundleSupportedPlatforms</key> <key>CFBundleSupportedPlatforms</key>
<array> <array>
<string>MacOSX</string> <string>MacOSX</string>
</array> </array>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>1.0.4</string> <string>1.2.0</string>
<key>LSMinimumSystemVersion</key> <key>LSMinimumSystemVersion</key>
<string>10.10</string> <string>10.10</string>
<key>NSHumanReadableCopyright</key> <key>NSHumanReadableCopyright</key>