-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
42 lines (34 loc) · 942 Bytes
/
mainwindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QWidget>
#include <QMediaPlayer>
#include <QMediaPlaylist>
#include "PlayWidget.h"
class MainWindow : public QWidget
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = nullptr);
~MainWindow();
void setStyle();
static PlayWidget *getPlayWidget() { return s_widget;}
static void controlMusic(bool state);// true:play, false:pause
signals:
public slots:
void onBtnStageRsp();
protected:
void paintEvent(QPaintEvent *event);
private:
QPushButton *m_btnSetting;
QPushButton *m_btnEasy;
QPushButton *m_btnMedium;
QPushButton *m_btnHard;
QPushButton *m_btnInfernal;
QPushButton *m_btnCustom;
QPushButton *m_btnBoard;
static QMediaPlaylist *s_playerList;
static QMediaPlayer *s_music;
static PlayWidget *s_widget;
static int s_level;
};
#endif // MAINWINDOW_H