![]() |
Qt 6.x
The Qt SDK
|
Additional Inherited Members | |
![]() | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
using | ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData > |
![]() | |
static bool | removeConnection (Connection *c) |
static QObjectPrivate * | get (QObject *o) |
static const QObjectPrivate * | get (const QObject *o) |
template<typename Func1 , typename Func2 > | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1 , typename Func2 > | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
Definition at line 190 of file qmovie.cpp.
QMoviePrivate::QMoviePrivate | ( | QMovie * | ) |
Definition at line 241 of file qmovie.cpp.
References nextImageTimer, QObjectData::q_ptr, and QTimer::setSingleShot().
void QMoviePrivate::_q_loadNextFrame | ( | ) |
Definition at line 450 of file qmovie.cpp.
References _q_loadNextFrame().
Referenced by _q_loadNextFrame(), and jumpToFrame().
void QMoviePrivate::_q_loadNextFrame | ( | bool | starting | ) |
Definition at line 455 of file qmovie.cpp.
References currentFrameNumber, currentPixmap, emit, enterState(), QImageReader::error(), frameRect, isDone(), isFirstIteration, movieState, next(), nextDelay, nextFrameNumber, nextImageTimer, QMovie::NotRunning, QMovie::Paused, playCounter, reader, QPixmap::rect(), QMovie::Running, QRect::size(), and QTimer::start().
|
inline |
Definition at line 206 of file qmovie.cpp.
References emit, movieState, and newState().
Referenced by _q_loadNextFrame().
int QMoviePrivate::frameCount | ( | ) | const |
Definition at line 531 of file qmovie.cpp.
References greatestFrameNumber, QImageReader::imageCount(), and reader.
QFrameInfo QMoviePrivate::infoForFrame | ( | int | frameNumber | ) |
Returns the QFrameInfo for the given frameNumber.
If the frame number is invalid, an invalid QFrameInfo is returned.
If the end of the animation has been reached, a special end marker QFrameInfo is returned.
Definition at line 296 of file qmovie.cpp.
References absoluteFilePath, QImageReader::backgroundColor(), QMovie::CacheNone, QImageReader::canRead(), currentFrameNumber, QImageReader::device(), device, emit, QFrameInfo::endMarker(), QImageReader::error(), QImageReader::fileName(), fileName, QImageReader::format(), frameMap, QPixmap::fromImage(), greatestFrameNumber, i, info, initialDevicePos, QMap< Key, T >::insert(), QImage::isNull(), QIODevice::isSequential(), QImageReader::jumpToImage(), QImageReader::nextImageDelay(), QImageReader::read(), reader, QImageReader::scaledSize(), QIODevice::seek(), QImageReader::setBackgroundColor(), QImageReader::setScaledSize(), and QMap< Key, T >::value().
Referenced by next().
bool QMoviePrivate::isDone | ( | ) |
Definition at line 266 of file qmovie.cpp.
References playCounter.
Referenced by _q_loadNextFrame().
bool QMoviePrivate::isValid | ( | ) | const |
Definition at line 494 of file qmovie.cpp.
References QImageReader::canRead(), emit, error, QImageReader::error(), greatestFrameNumber, and reader.
bool QMoviePrivate::jumpToFrame | ( | int | frameNumber | ) |
Definition at line 515 of file qmovie.cpp.
References _q_loadNextFrame(), currentFrameNumber, movieState, nextFrameNumber, nextImageTimer, QMovie::Running, and QTimer::stop().
Referenced by jumpToNextFrame().
bool QMoviePrivate::jumpToNextFrame | ( | ) |
Definition at line 544 of file qmovie.cpp.
References currentFrameNumber, and jumpToFrame().
bool QMoviePrivate::next | ( | ) |
Attempts to advance the animation to the next frame. If successful, currentFrameNumber, currentPixmap and nextDelay are updated accordingly, and true is returned. Otherwise, false is returned. When false is returned, isDone() can be called to determine whether the animation ended gracefully or an error occurred when reading the frame.
Definition at line 399 of file qmovie.cpp.
References currentFrameNumber, currentPixmap, QPixmap::fromImage(), info, infoForFrame(), isFirstIteration, QSize::isValid(), QImageReader::loopCount(), next(), nextDelay, nextFrameNumber, playCounter, reader, QImageReader::scaledSize(), QFileInfo::size(), speedAdjustedDelay(), and time.
Referenced by _q_loadNextFrame(), and next().
QMoviePrivate::Q_OBJECT_BINDABLE_PROPERTY_WITH_ARGS | ( | QMoviePrivate | , |
QMovie::CacheMode | , | ||
cacheMode | , | ||
QMovie::CacheNone | |||
) |
void QMoviePrivate::reset | ( | ) |
Definition at line 249 of file qmovie.cpp.
References QMap< Key, T >::clear(), currentFrameNumber, QImageReader::device(), frameMap, greatestFrameNumber, initialDevicePos, isFirstIteration, nextDelay, nextFrameNumber, nextImageTimer, playCounter, QIODevice::pos(), reader, and QTimer::stop().
|
inline |
Definition at line 217 of file qmovie.cpp.
int QMoviePrivate::speedAdjustedDelay | ( | int | delay | ) | const |
Given the original delay, this function returns the actual number of milliseconds to delay according to the current speed. E.g. if the speed is 200%, the result will be half of the original delay.
Definition at line 279 of file qmovie.cpp.
Referenced by next().
QString QMoviePrivate::absoluteFilePath |
Definition at line 234 of file qmovie.cpp.
Referenced by infoForFrame().
int QMoviePrivate::currentFrameNumber = -1 |
Definition at line 223 of file qmovie.cpp.
Referenced by _q_loadNextFrame(), infoForFrame(), jumpToFrame(), jumpToNextFrame(), next(), and reset().
QPixmap QMoviePrivate::currentPixmap |
Definition at line 222 of file qmovie.cpp.
Referenced by _q_loadNextFrame(), and next().
QMap<int, QFrameInfo> QMoviePrivate::frameMap |
Definition at line 233 of file qmovie.cpp.
Referenced by infoForFrame(), and reset().
QRect QMoviePrivate::frameRect |
Definition at line 221 of file qmovie.cpp.
Referenced by _q_loadNextFrame().
int QMoviePrivate::greatestFrameNumber = -1 |
Definition at line 225 of file qmovie.cpp.
Referenced by frameCount(), infoForFrame(), isValid(), and reset().
qint64 QMoviePrivate::initialDevicePos = 0 |
Definition at line 228 of file qmovie.cpp.
Referenced by infoForFrame(), and reset().
bool QMoviePrivate::isFirstIteration = true |
Definition at line 232 of file qmovie.cpp.
Referenced by _q_loadNextFrame(), next(), and reset().
QMovie::MovieState QMoviePrivate::movieState = QMovie::NotRunning |
Definition at line 220 of file qmovie.cpp.
Referenced by _q_loadNextFrame(), enterState(), and jumpToFrame().
int QMoviePrivate::nextDelay = 0 |
Definition at line 226 of file qmovie.cpp.
Referenced by _q_loadNextFrame(), next(), and reset().
int QMoviePrivate::nextFrameNumber = 0 |
Definition at line 224 of file qmovie.cpp.
Referenced by _q_loadNextFrame(), jumpToFrame(), next(), and reset().
QTimer QMoviePrivate::nextImageTimer |
Definition at line 236 of file qmovie.cpp.
Referenced by QMoviePrivate(), _q_loadNextFrame(), jumpToFrame(), and reset().
int QMoviePrivate::playCounter = -1 |
Definition at line 227 of file qmovie.cpp.
Referenced by _q_loadNextFrame(), isDone(), next(), and reset().
QImageReader* QMoviePrivate::reader = nullptr |
Definition at line 215 of file qmovie.cpp.
Referenced by _q_loadNextFrame(), frameCount(), infoForFrame(), isValid(), next(), and reset().