Changeset View
Changeset View
Standalone View
Standalone View
src/engine/texturehelper.h
Show All 36 Lines | 31 | public: | |||
---|---|---|---|---|---|
37 | static Palapeli::TextureHelper* instance(); | 37 | static Palapeli::TextureHelper* instance(); | ||
38 | int currentIndex() const; | 38 | int currentIndex() const; | ||
39 | public Q_SLOTS: | 39 | public Q_SLOTS: | ||
40 | void readSettings(); | 40 | void readSettings(); | ||
41 | void addScene(QGraphicsScene* scene); | 41 | void addScene(QGraphicsScene* scene); | ||
42 | void removeScene(QObject* object); | 42 | void removeScene(QObject* object); | ||
43 | private: | 43 | private: | ||
44 | TextureHelper(); | 44 | TextureHelper(); | ||
45 | static QPixmap render(const QString& fileName); | 45 | static QPixmap render(const QString& filePath); | ||
46 | 46 | | |||
47 | QList<QGraphicsScene*> m_scenes; | 47 | QList<QGraphicsScene*> m_scenes; | ||
48 | int m_currentIndex; | 48 | int m_currentIndex; | ||
49 | QBrush m_currentBrush; | 49 | QBrush m_currentBrush; | ||
50 | 50 | | |||
51 | static const QSize DefaultThumbnailSize; | 51 | static const QSize DefaultThumbnailSize; | ||
52 | static const QSize DefaultPixmapSize; | 52 | static const QSize DefaultPixmapSize; | ||
53 | }; | 53 | }; | ||
54 | } | 54 | } | ||
55 | 55 | | |||
56 | #endif // PALAPELI_TEXTUREHELPER_H | 56 | #endif // PALAPELI_TEXTUREHELPER_H |