libkmahjongg
kmahjonggtileset.cpp
Go to the documentation of this file.
78 KGlobal::dirs()->addResourceType("kmahjonggtileset", "data", QString::fromLatin1("kmahjongglib/tilesets/"));
101 QSize KMahjonggTileset::preferredTileSize(const QSize & boardsize, int horizontalCells, int verticalCells)
199 d->authorproperties.insert(QLatin1String( "Name" ), group.readEntry("Name"));// Returns translated data
206 //Format is increased when we have incompatible changes, meaning that older clients are not able to use the remaining information safely
299 //Build a list for faster lookup of element ids, mapped to the enumeration used by GameData and BoardWidget
333 return authorProperty(QLatin1String( "Name" ))+ elementid + QString::fromLatin1( "W%1H%2").arg(d->scaleddata.w).arg(d->scaleddata.h);
int width() const
void buildElementIdTable(void)
Definition: kmahjonggtileset.cpp:298
QSize preferredTileSize(const QSize &boardsize, int horizontalCells, int verticalCells)
Definition: kmahjonggtileset.cpp:101
QPixmap fromImage(const QImage &image, QFlags< Qt::ImageConversionFlag > flags)
void fill(uint pixelValue)
bool isEmpty() const
bool reloadTileset(const QSize &newTilesize)
Definition: kmahjonggtileset.cpp:277
void clear()
void updateScaleInfo(short tilew, short tileh)
Definition: kmahjonggtileset.cpp:90
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
bool loadTileset(const QString &tilesetPath)
Definition: kmahjonggtileset.cpp:180
virtual void close()
QString authorProperty(const QString &key) const
Definition: kmahjonggtileset.cpp:137
QPixmap * find(const QString &key)
int height() const
QString fromLatin1(const char *str, int size)
bool insert(const QString &key, const QPixmap &pixmap)
QString pixmapCacheNameFromElementId(const QString &elementid)
Definition: kmahjonggtileset.cpp:332
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
QPixmap renderElement(short width, short height, const QString &elementid)
Definition: kmahjonggtileset.cpp:336
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.