fix: mac build error

This commit is contained in:
rankun 2020-02-16 10:48:26 +08:00
parent 2098388eda
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 extendPos = QPointF(0, 0); // for drag
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 {
@ -112,7 +126,7 @@ private:
static QString s_keyMapPath;
QVector<KeyMapNode> m_keyMapNodes;
KeyNode m_switchKey = { AT_KEY, Qt::Key_QuoteLeft };
KeyNode m_switchKey = {AT_KEY, Qt::Key_QuoteLeft};
// just for return
KeyMapNode m_invalidNode;

View file

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