diff --git a/c++/widgets/pixmapkeyboard.cpp b/c++/widgets/pixmapkeyboard.cpp index 50501df..e005891 100644 --- a/c++/widgets/pixmapkeyboard.cpp +++ b/c++/widgets/pixmapkeyboard.cpp @@ -81,7 +81,20 @@ static const std::map kMidiKeyboard2KeyMap = { {Qt::Key_U, 71} }; +#ifndef Q_COMPILER_LAMBDA +static QVector kBlackNotes; +static struct BlackNotesInit { + BlackNotesInit() { + kBlackNotes << 1; + kBlackNotes << 3; + kBlackNotes << 6; + kBlackNotes << 8; + kBlackNotes << 10; + } +} _blackNotesInit ; +#else static const QVector kBlackNotes = {1, 3, 6, 8, 10}; +#endif PixmapKeyboard::PixmapKeyboard(QWidget* parent) : QWidget(parent),