// +------------------------------------------------------------------------ // | 设置自动更新 // +------------------------------------------------------------------------ void DcSettings::setAutoUpdate( bool isAutoUpdate ) { if( m_autoUpdate == isAutoUpdate ) return; m_autoUpdate = isAutoUpdate; writeSetting( DEFAULT_SETTING_PATH, "autoUpdate", isAutoUpdate ); emit autoUpdateChanged(); return; }
void QGalleryQueryRequest::setAutoUpdate(bool enabled) { if (d_func()->autoUpdate != enabled) { d_func()->autoUpdate = enabled; emit autoUpdateChanged(); } }
void QDeclarativeGeoRoutingModel::setAutoUpdate(bool autoUpdate) { if (autoUpdate_ == autoUpdate) return; autoUpdate_ = autoUpdate; emit autoUpdateChanged(autoUpdate_); }
void QDeclarativeGalleryItem::setAutoUpdate(bool enabled) { if (m_request.autoUpdate() != enabled) { m_request.setAutoUpdate(enabled); if (enabled) deferredExecute(); else if (m_status == Idle) m_request.cancel(); emit autoUpdateChanged(); } }
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())); }