libkmahjongg
kmahjonggbackground.cpp
Go to the documentation of this file.
68 KGlobal::dirs()->addResourceType("kmahjonggbackground", "data", QString::fromLatin1("kmahjongglib/backgrounds/"));
108 d->authorproperties.insert(QLatin1String( "Name" ), group.readEntry("Name"));// Returns translated data
114 d->authorproperties.insert(QLatin1String( "Plain" ), d->isPlain ? QLatin1String("1") : QLatin1String("0"));
118 //Format is increased when we have incompatible changes, meaning that older clients are not able to use the remaining information safely
175 return authorproperties[QLatin1String( "Name" )]+ elementid+QString::fromLatin1( "W%1H%2").arg(w).arg(h);
QPixmap fromImage(const QImage &image, QFlags< Qt::ImageConversionFlag > flags)
~KMahjonggBackground()
Definition: kmahjonggbackground.cpp:74
bool isEmpty() const
QString authorProperty(const QString &key) const
Definition: kmahjonggbackground.cpp:206
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
bool load(const QString &file, short width, short height)
Definition: kmahjonggbackground.cpp:92
virtual void close()
void sizeChanged(int newW, int newH)
Definition: kmahjonggbackground.cpp:164
QPixmap * find(const QString &key)
QString fromLatin1(const char *str, int size)
bool insert(const QString &key, const QPixmap &pixmap)
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
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.