-
Notifications
You must be signed in to change notification settings - Fork 3
/
tile.h
42 lines (36 loc) · 2.07 KB
/
tile.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
/************************************************************************************
* QSlippyMap - Tile based slippery map *
* Copyright (C) 2017 Michael Carpenter (malcom2073@gmail.com) *
* *
* This file is a part of QSlippyMap *
* *
* QSlippyMap is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public *
* License as published by the Free Software Foundation, version *
* 2.1 of the License. *
* *
* QSlippyMap is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
* Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public *
* License along with this program; if not, write to the Free Software *
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
************************************************************************************/
#ifndef TILE_H
#define TILE_H
#include <QGraphicsItem>
class Tile : public QGraphicsItem
{
public:
explicit Tile(QGraphicsItem *parent = 0);
void setImage(QImage image,int x,int y);
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0);
QRectF boundingRect() const;
private:
QImage m_image;
signals:
public slots:
};
#endif // TILE_H