6 Star 10 Fork 2

bryans/AwardRandom

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
awardpickup.h 1.99 KB
一键复制 编辑 原始数据 按行查看 历史
bryans 提交于 2016-01-08 13:55 . adjust for QT5 and remove phonon
#ifndef AWARDPICKUP_H
#define AWARDPICKUP_H
#include <QWidget>
#include "people.h"
//#include <phonon>
#include <QToolButton>
#include <QListWidget>
namespace Ui {
class AwardPickup;
}
class AwardPickup : public QWidget
{
Q_OBJECT
public:
explicit AwardPickup(QWidget *parent = 0);
~AwardPickup();
void music(int, bool ison);
private:
enum AWARD_LEVEL{NotHave,L1,L2,L3,L4,L5,L6};
Ui::AwardPickup *ui;
QPixmap bg;
QString bgfile;
QString bgmusicfile;
QString pollingmusicfile;
QString stopmusicfile;
QList<QListWidget*> awardnListWidgetList;
QList<QToolButton*> awardToolButtonList;
QList<QPixmap> awardPicture;
QList<People> peopleList;
QList<People> level1people,level2people,level3people,level4people,level5people,level6people;
QStringList peopleNameList;
QStringList awardNameList;
QList<int> awardnTotal;
QList<int> awardnCnt;
QTimer *timer;
int pickupIndex;
int totalPeople;
int totalAward;
int nothaveTotalPeople;
bool isRolling;
bool isSaveResult;
// Phonon::MediaObject *bgmusic,*rollmusic,*rollfinishedmusic;
int curAwardLevel;
void hideAwardInfo(int cnt);
void updateMusic();
signals:
void sigUpdateList(const QStringList &list);
protected:
void paintEvent(QPaintEvent *);
void keyPressEvent(QKeyEvent *);
private slots:
void slotBrowseHeadPath();
void slotTimeout();
void on_award1ToolButton_clicked();
void on_award2ToolButton_clicked();
void on_award3ToolButton_clicked();
void on_award4ToolButton_clicked();
void on_setupToolButton_clicked();
void on_musicToolButton_toggled(bool checked);
void on_award5ToolButton_clicked();
void on_award6ToolButton_clicked();
void slotUpdateAwardPic(int awardlevel, QPixmap);
void slotUpdateBgMusic(QString mp);
void on_saveResultToolButton_clicked();
void on_helpToolButton_clicked();
};
#endif // AWARDPICKUP_H
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/song_df/AwardRandom.git
git@gitee.com:song_df/AwardRandom.git
song_df
AwardRandom
AwardRandom
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385