Skip to content

Commit

Permalink
USE_SOUND not applied where it should
Browse files Browse the repository at this point in the history
  • Loading branch information
Isarhamster committed Sep 26, 2024
1 parent be2e39c commit b2d1025
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/gui/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,9 @@
#include <QProgressBar>
#include <QRegularExpression>
#include <QSizePolicy>
#include <QSoundEffect>
#include <QSplitter>
#include <QStatusBar>
#include <QTabBar>
#ifdef USE_SPEECH
#include <QTextToSpeech>
#endif
#include <QTimer>
#include <QToolBar>
#include "qt6compat.h"
Expand Down Expand Up @@ -503,7 +499,9 @@ MainWindow::MainWindow() : QMainWindow(),
connect(speech, SIGNAL(stateChanged(QTextToSpeech::State)), SLOT(speechStateChanged(QTextToSpeech::State)), Qt::QueuedConnection);
}
#endif
#ifdef USE_SOUND
effect = new QSoundEffect(this);
#endif

/* Setup the dimensions of all widgets and the main board */
slotReconfigure();
Expand Down
4 changes: 4 additions & 0 deletions src/gui/mainwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
#ifdef USE_SPEECH
#include <QTextToSpeech>
#endif
#ifdef USE_SOUND
#include <QSoundEffect>
#endif
#include <QToolBar>
#include <QUndoGroup>

Expand Down Expand Up @@ -778,7 +780,9 @@ private slots:
#endif
int m_readAhead;
Move m_readNextMove;
#ifdef USE_SOUND
QPointer<QSoundEffect> effect;
#endif
QMap<QUrl, QString> copyFileNames;
};

Expand Down

0 comments on commit b2d1025

Please sign in to comment.