#include "qplatformdefs.h"
#include "qbitmap.h"
#include "qdrag.h"
#include "qpixmap.h"
#include "qevent.h"
#include "qfile.h"
#include "qtextcodec.h"
#include "qapplication.h"
#include "qpoint.h"
#include "qwidget.h"
#include "qbuffer.h"
#include "qimage.h"
#include "qregexp.h"
#include "qdir.h"
#include "qdnd_p.h"
#include "qimagereader.h"
#include "qimagewriter.h"
#include "qdebug.h"
#include <ctype.h>
#include <private/qapplication_p.h>
Go to the source code of this file.
◆ imageReadMimeFormats()
Definition at line 292 of file qdnd.cpp.
Referenced by QInternalMimeData::canReadData(), QInternalMimeData::formats(), QInternalMimeData::hasFormat(), and QInternalMimeData::retrieveData().
296 for (
int i = 0; i < imageFormats.
size(); ++i) {
304 if (pngIndex != -1 && pngIndex != 0)
305 formats.
move(pngIndex, 0);
static QList< QByteArray > supportedImageFormats()
Returns the list of image formats supported by QImageReader.
QByteArray toLower() const
Returns a lowercase copy of the byte array.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
The QString class provides a Unicode character string.
void move(int from, int to)
Moves the item at index position from to index position to.
void append(const T &t)
Inserts value at the end of the list.
int indexOf(const QRegExp &rx, int from=0) const
Returns the index position of the first exact match of rx in the list, searching forward from index p...
const T & at(int i) const
Returns the item at index position i in the list.
The QStringList class provides a list of strings.
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
int size() const
Returns the number of items in the list.
◆ imageWriteMimeFormats()
Definition at line 311 of file qdnd.cpp.
Referenced by QInternalMimeData::formatsHelper(), and QInternalMimeData::hasFormatHelper().
315 for (
int i = 0; i < imageFormats.
size(); ++i) {
323 if (pngIndex != -1 && pngIndex != 0)
324 formats.
move(pngIndex, 0);
QByteArray toLower() const
Returns a lowercase copy of the byte array.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
The QString class provides a Unicode character string.
void move(int from, int to)
Moves the item at index position from to index position to.
void append(const T &t)
Inserts value at the end of the list.
int indexOf(const QRegExp &rx, int from=0) const
Returns the index position of the first exact match of rx in the list, searching forward from index p...
const T & at(int i) const
Returns the item at index position i in the list.
The QStringList class provides a list of strings.
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
int size() const
Returns the number of items in the list.
static QList< QByteArray > supportedImageFormats()
Returns the list of image formats supported by QImageWriter.