Skip to content

Commit

Permalink
Add sound
Browse files Browse the repository at this point in the history
  • Loading branch information
ekkatrina committed Jun 4, 2022
1 parent f0e41b6 commit e0674aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Client/View/client_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ ClientView::ClientView() :
final_screen_(new FinalScreen(this)),
input_controller_(new InputController),
network_problem_widget_(new NetworkProblemWidget(this)) {
QSound sound(":sound.wav");
sound.play(":sound.wav");
AddWidgets();
stacked_widget_->setCurrentWidget(main_menu_);
setCentralWidget(stacked_widget_);
Expand Down
1 change: 1 addition & 0 deletions src/Client/View/client_view.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <QWidget>
#include <QStackedWidget>
#include <QMainWindow>
#include "QSound"

class ClientView : public QMainWindow {
Q_OBJECT
Expand Down

0 comments on commit e0674aa

Please sign in to comment.