libkmahjongg
kmahjonggtilesetselector.cpp
Go to the documentation of this file.
53 QStringList tilesAvailable = KGlobal::dirs()->findAllResources("kmahjonggtileset", QLatin1String( "*.desktop"), KStandardDirs::Recursive);
76 connect(tilesetList, SIGNAL(currentItemChanged(QListWidgetItem*,QListWidgetItem*)), this, SLOT(tilesetChanged()));
97 //Let the tileset calculate its ideal size for the preview area, but reduce the margins a bit (pass oversized drawing area)
~KMahjonggTilesetSelector()
Definition: kmahjonggtilesetselector.cpp:34
void setupData(KConfigSkeleton *config)
Definition: kmahjonggtilesetselector.cpp:39
void setupUi(QWidget *widget)
int width() const
bool end()
QSize preferredTileSize(const QSize &boardsize, int horizontalCells, int verticalCells)
Definition: kmahjonggtileset.cpp:101
const T & at(int i) const
void tilesetChanged()
Definition: kmahjonggtilesetselector.cpp:79
QPixmap fromImage(const QImage &image, QFlags< Qt::ImageConversionFlag > flags)
void clear()
int size() const
void fill(uint pixelValue)
void drawPixmap(const QRectF &target, const QPixmap &pixmap, const QRectF &source)
bool reloadTileset(const QSize &newTilesize)
Definition: kmahjonggtileset.cpp:277
bool loadTileset(const QString &tilesetPath)
Definition: kmahjonggtileset.cpp:180
Definition: kmahjonggtileset.h:30
QString authorProperty(const QString &key) const
Definition: kmahjonggtileset.cpp:137
int height() const
KMahjonggTilesetSelector(QWidget *parent, KConfigSkeleton *config)
Definition: kmahjonggtilesetselector.cpp:27
iterator insert(const Key &key, const T &value)
QMap< QString, KMahjonggTileset * > tilesetMap
Definition: kmahjonggtilesetselector.h:36
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
const T value(const Key &key) 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.