3 Star 2 Fork 2

oisc/Qt 2048

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
tile.h 535 Bytes
一键复制 编辑 原始数据 按行查看 历史
oisc 提交于 2014-06-05 12:42 . Game 2048 目前没有Issue
#ifndef TILE_H
#define TILE_H
#include <QPushButton>
#include <QPropertyAnimation>
#include <QMap>
#include "gamedatadef.h"
#include <QDebug>
#include <qmath.h>
#include <QRect>
class Tile : public QPushButton
{
Q_OBJECT
//定义Qt属性 用于完成动画
Q_PROPERTY(int value READ getValue WRITE setValue)
public:
explicit Tile(QWidget *parent = 0);
int getValue();
void setValue(int value);
void animateTo(int i);
signals:
public slots:
private:
int value;
QRect c_rect;
};
#endif // TILE_H
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/gitoisc/Qt-2048.git
git@gitee.com:gitoisc/Qt-2048.git
gitoisc
Qt-2048
Qt 2048
master

搜索帮助