void QGalleryQueryRequest::setSortPropertyNames(const QStringList &names) { if (d_func()->sortPropertyNames != names) { d_func()->sortPropertyNames = names; emit sortPropertyNamesChanged(); } }
void QDeclarativeGalleryQueryModel::setSortPropertyNames(const QStringList &names) { if (m_request.sortPropertyNames() != names) { m_request.setSortPropertyNames(names); deferredExecute(); emit sortPropertyNamesChanged(); } }
void setObject(QGalleryQueryModel *object) { q_ptr = object; QObject::connect(&query, SIGNAL(resultSetChanged(QGalleryResultSet*)), q_ptr, SLOT(_q_resultSetChanged(QGalleryResultSet*))); QObject::connect(&query, SIGNAL(stateChanged(QGalleryAbstractRequest::State)), q_ptr, SIGNAL(stateChanged(QGalleryAbstractRequest::State))); QObject::connect(&query, SIGNAL(finished()), q_ptr, SIGNAL(finished())); QObject::connect(&query, SIGNAL(canceled()), q_ptr, SIGNAL(canceled())); QObject::connect(&query, SIGNAL(errorChanged()), q_ptr, SIGNAL(errorChanged())); QObject::connect(&query, SIGNAL(error(int,QString)), q_ptr, SIGNAL(error(int,QString))); QObject::connect(&query, SIGNAL(galleryChanged()), q_ptr, SIGNAL(galleryChanged())); QObject::connect(&query, SIGNAL(sortPropertyNamesChanged()), q_ptr, SIGNAL(sortPropertyNamesChanged())); QObject::connect(&query, SIGNAL(autoUpdateChanged()), q_ptr, SIGNAL(autoUpdateChanged())); QObject::connect(&query, SIGNAL(offsetChanged()), q_ptr, SIGNAL(offsetChanged())); QObject::connect(&query, SIGNAL(limitChanged()), q_ptr, SIGNAL(limitChanged())); QObject::connect(&query, SIGNAL(rootTypeChanged()), q_ptr, SIGNAL(rootTypeChanged())); QObject::connect(&query, SIGNAL(rootItemChanged()), q_ptr, SIGNAL(rootItemChanged())); QObject::connect(&query, SIGNAL(scopeChanged()), q_ptr, SIGNAL(scopeChanged())); QObject::connect(&query, SIGNAL(filterChanged()), q_ptr, SIGNAL(filterChanged())); }