42 #include "private/qdeclarativescalegrid_p_p.h" 105 : _l(-1), _r(-1), _t(-1), _b(-1),
165 if (l < 0 || r < 0 || t < 0 || b < 0 || imgFile.
isEmpty())
182 qWarning(
"QDeclarativeGridScaledImage: Invalid tile rule specified. Using Stretch.");
QDeclarativeScaleGrid(QObject *parent=0)
QDeclarativeGridScaledImage & operator=(const QDeclarativeGridScaledImage &)
#define QT_END_NAMESPACE
This macro expands to.
The QByteArray class provides an array of bytes.
static QDeclarativeBorderImage::TileMode stringToRule(const QString &)
bool startsWith(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the string starts with s; otherwise returns false.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
The QString class provides a Unicode character string.
The QObject class is the base class of all Qt objects.
void append(const T &t)
Inserts value at the end of the list.
#define QT_BEGIN_NAMESPACE
This macro expands to.
QString left(int n) const Q_REQUIRED_RESULT
Returns a substring that contains the n leftmost characters of the string.
QString trimmed() const Q_REQUIRED_RESULT
Returns a string that has whitespace removed from the start and the end.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
QByteArray trimmed() const
Returns a byte array that has whitespace removed from the start and the end.
The QStringList class provides a list of strings.
static int toInt(const QByteArray &str)
static QString fromUtf8(const char *, int size=-1)
Returns a QString initialized with the first size bytes of the UTF-8 string str.
Q_CORE_EXPORT void qWarning(const char *,...)
static const char * data(const QByteArray &arr)
int indexOf(QChar c, int from=0, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
QDeclarativeGridScaledImage()
QString mid(int position, int n=-1) const Q_REQUIRED_RESULT
Returns a string that contains n characters of this string, starting at the specified position index...
QDeclarativeBorderImage::TileMode _v
qint64 readLine(char *data, qint64 maxlen)
This function reads a line of ASCII characters from the device, up to a maximum of maxSize - 1 bytes...
QDeclarativeBorderImage::TileMode _h
bool isEmpty() const
Returns true if the byte array has size 0; otherwise returns false.
The QIODevice class is the base interface class of all I/O devices in Qt.
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
QString pixmapUrl() const