コード例 #1
0
void QgsFloatingWidget::setAnchorPoint( QgsFloatingWidget::AnchorPoint point )
{
  if ( point == mFloatAnchorPoint )
    return;

  mFloatAnchorPoint = point;
  onAnchorPointChanged();
  emit anchorPointChanged( mFloatAnchorPoint );
}
コード例 #2
0
ファイル: qquickitemanimation.cpp プロジェクト: ghjinlei/qt5
void QQuickPathAnimation::setAnchorPoint(const QPointF &point)
{
    Q_D(QQuickPathAnimation);
    if (d->anchorPoint == point)
        return;

    d->anchorPoint = point;
    emit anchorPointChanged(point);
}
コード例 #3
0
bool QgsFloatingWidgetEventFilter::eventFilter( QObject *object, QEvent *event )
{
  Q_UNUSED( object );
  switch ( event->type() )
  {
    case QEvent::Move:
    case QEvent::Resize:
      emit anchorPointChanged();
      return false;
    default:
      return false;
  }
}