]> granicus.if.org Git - nethack/commitdiff
QSoundEffect supported in Qt6 but needs conditional code rework
authornhmall <nhmall@nethack.org>
Wed, 27 Apr 2022 11:40:40 +0000 (07:40 -0400)
committernhmall <nhmall@nethack.org>
Wed, 27 Apr 2022 11:40:40 +0000 (07:40 -0400)
win/Qt/qt_bind.cpp

index 4b1950a217f7feb0c039a87571b10723acf9dcce..88935d70f91f28ca8f0e4b21e25cef15fc66bee2 100644 (file)
@@ -18,8 +18,7 @@ extern "C" {
 #include <QtMultimedia/QSoundEffect>
 #else
 #include <QtWidgets/QtWidgets>
-#undef QT_NO_SOUND
-#define QT_NO_SOUND 1
+#include <QSoundEffect>
 #endif
 #include "qt_post.h"
 #include "qt_bind.h"
@@ -1100,9 +1099,7 @@ struct window_procs Qt_procs = {
 #ifndef WIN32
 extern "C" void play_usersound(const char *, int);
 
-#if QT_VERSION < 0x060000
 QSoundEffect *effect = NULL;
-#endif
 
 /* called from core, sounds.c */
 void