void QDeclarativeAnchors::resetTop() { Q_D(QDeclarativeAnchors); d->usedAnchors &= ~TopAnchor; d->remDepend(d->top.item); d->top = QDeclarativeAnchorLine(); emit topChanged(); d->updateVerticalAnchors(); }
/*! * Sets the projection's top window coordinate to \a top. This triggers a * projection matrix update. * * \note this has no effect if the projection type is * Qt3DCore::QCameraLens::PerspectiveProjection. */ void QCameraLens::setTop(float top) { Q_D(QCameraLens); if (qFuzzyCompare(d->m_top, top)) return; d->m_top = top; emit topChanged(top); d->updateProjectionMatrix(); }
/*! \internal */ QCamera::QCamera(QCameraPrivate &dd, QNode *parent) : QEntity(dd, parent) { QObject::connect(d_func()->m_lens, SIGNAL(projectionTypeChanged()), this, SIGNAL(projectionMatrixChanged())); QObject::connect(d_func()->m_lens, SIGNAL(nearPlaneChanged()), this, SIGNAL(nearPlaneChanged())); QObject::connect(d_func()->m_lens, SIGNAL(farPlaneChanged()), this, SIGNAL(farPlaneChanged())); QObject::connect(d_func()->m_lens, SIGNAL(fieldOfViewChanged()), this, SIGNAL(fieldOfViewChanged())); QObject::connect(d_func()->m_lens, SIGNAL(aspectRatioChanged()), this, SIGNAL(aspectRatioChanged())); QObject::connect(d_func()->m_lens, SIGNAL(leftChanged()), this, SIGNAL(leftChanged())); QObject::connect(d_func()->m_lens, SIGNAL(rightChanged()), this, SIGNAL(rightChanged())); QObject::connect(d_func()->m_lens, SIGNAL(bottomChanged()), this, SIGNAL(bottomChanged())); QObject::connect(d_func()->m_lens, SIGNAL(topChanged()), this, SIGNAL(topChanged())); QObject::connect(d_func()->m_lens, SIGNAL(projectionMatrixChanged()), this, SIGNAL(projectionMatrixChanged())); QObject::connect(d_func()->m_lookAt, SIGNAL(positionChanged()), this, SIGNAL(positionChanged())); QObject::connect(d_func()->m_lookAt, SIGNAL(upVectorChanged()), this, SIGNAL(upVectorChanged())); QObject::connect(d_func()->m_lookAt, SIGNAL(viewCenterChanged()), this, SIGNAL(viewCenterChanged())); QObject::connect(d_func()->m_transform, SIGNAL(matrixChanged()), this, SIGNAL(matrixChanged())); d_func()->m_transform->addTransform(d_func()->m_lookAt); addComponent(d_func()->m_lens); addComponent(d_func()->m_transform); }
void QIntValidator::setRange(int bottom, int top) { if (b != bottom) { b = bottom; emit bottomChanged(b); } if (t != top) { t = top; emit topChanged(t); } }
void QDoubleValidator::setRange(double minimum, double maximum, int decimals) { if (b != minimum) { b = minimum; emit bottomChanged(b); } if (t != maximum) { t = maximum; emit topChanged(t); } if (dec != decimals) { dec = decimals; emit decimalsChanged(dec); } }
void History::slotMoveToTop(int pos ) { if ( pos < 0 || static_cast<unsigned>( pos ) >= itemList.count() ) { kdDebug() << "Argument pos out of range: " << pos << endl; return; } m_topIsUserSelected = true; itemList.first(); for ( ; pos; pos-- ) { itemList.next(); } HistoryItem* item = itemList.take(); itemList.prepend( item ); emit changed(); emit topChanged(); }
void QIntValidator::setRange(int bottom, int top) { bool rangeChanged = false; if (b != bottom) { b = bottom; rangeChanged = true; emit bottomChanged(b); } if (t != top) { t = top; rangeChanged = true; emit topChanged(t); } if (rangeChanged) emit changed(); }
void History::insert( const HistoryItem* item ) { if ( !item ) return; m_topIsUserSelected = false; // Optimisation: Compare with top item. if ( !itemList.isEmpty() && *itemList.first() == *item ) { delete item; return; } remove( item ); forceInsert( item ); emit topChanged(); }
void QDeclarativeAnchors::setTop(const QDeclarativeAnchorLine &edge) { Q_D(QDeclarativeAnchors); if (!d->checkVAnchorValid(edge) || d->top == edge) return; d->usedAnchors |= TopAnchor; if (!d->checkVValid()) { d->usedAnchors &= ~TopAnchor; return; } d->remDepend(d->top.item); d->top = edge; d->addDepend(d->top.item); emit topChanged(); d->updateVerticalAnchors(); }
void QDoubleValidator::setRange(double minimum, double maximum, int decimals) { bool rangeChanged = false; if (b != minimum) { b = minimum; rangeChanged = true; emit bottomChanged(b); } if (t != maximum) { t = maximum; rangeChanged = true; emit topChanged(t); } if (dec != decimals) { dec = decimals; rangeChanged = true; emit decimalsChanged(dec); } if (rangeChanged) emit changed(); }