void DesignerFormWindowImpl::addAction( QAction *a ) { if ( formWindow->actionList().findRef( a ) != -1 ) return; formWindow->actionList().append( a ); MetaDataBase::addEntry( a ); setPropertyChanged( a, "name", TRUE ); setPropertyChanged( a, "text", TRUE ); setPropertyChanged( a, "menuText", TRUE ); setPropertyChanged( a, "accel", TRUE ); if ( !a->iconSet().isNull() && !a->iconSet().pixmap().isNull() ) setPropertyChanged( a, "iconSet", TRUE ); }
void ScrollingStateFrameScrollingNode::setHeaderLayer(const LayerRepresentation& layerRepresentation) { if (layerRepresentation == m_headerLayer) return; m_headerLayer = layerRepresentation; setPropertyChanged(HeaderLayer); }
void ScrollingStateFrameScrollingNode::setCounterScrollingLayer(const LayerRepresentation& layerRepresentation) { if (layerRepresentation == m_counterScrollingLayer) return; m_counterScrollingLayer = layerRepresentation; setPropertyChanged(CounterScrollingLayer); }
void ScrollingStateFrameScrollingNode::setEventTrackingRegions(const EventTrackingRegions& eventTrackingRegions) { if (m_eventTrackingRegions == eventTrackingRegions) return; m_eventTrackingRegions = eventTrackingRegions; setPropertyChanged(EventTrackingRegion); }
void ScrollingStateFrameScrollingNode::setFixedElementsLayoutRelativeToFrame(bool fixedElementsLayoutRelativeToFrame) { if (fixedElementsLayoutRelativeToFrame == m_fixedElementsLayoutRelativeToFrame) return; m_fixedElementsLayoutRelativeToFrame = fixedElementsLayoutRelativeToFrame; setPropertyChanged(FixedElementsLayoutRelativeToFrame); }
void ScrollingStateScrollingNode::setScrollableAreaParameters(const ScrollableAreaParameters& parameters) { if (m_scrollableAreaParameters == parameters) return; m_scrollableAreaParameters = parameters; setPropertyChanged(ScrollableAreaParams); }
void ScrollingStateScrollingNode::setFooterLayer(const LayerRepresentation& layerRepresentation) { if (layerRepresentation == m_footerLayer) return; m_footerLayer = layerRepresentation; setPropertyChanged(FooterLayer); }
void ScrollingStateScrollingNode::setNonFastScrollableRegion(const Region& nonFastScrollableRegion) { if (m_nonFastScrollableRegion == nonFastScrollableRegion) return; m_nonFastScrollableRegion = nonFastScrollableRegion; setPropertyChanged(NonFastScrollableRegion); }
void ScrollingStateScrollingNode::setScrolledContentsLayer(const LayerRepresentation& layerRepresentation) { if (layerRepresentation == m_scrolledContentsLayer) return; m_scrolledContentsLayer = layerRepresentation; setPropertyChanged(ScrolledContentsLayer); }
void ScrollingStateScrollingNode::setWheelEventHandlerCount(unsigned wheelEventHandlerCount) { if (m_wheelEventHandlerCount == wheelEventHandlerCount) return; m_wheelEventHandlerCount = wheelEventHandlerCount; setPropertyChanged(WheelEventHandlerCount); }
void ScrollingStateScrollingNode::setFooterHeight(int footerHeight) { if (m_footerHeight == footerHeight) return; m_footerHeight = footerHeight; setPropertyChanged(FooterHeight); }
void ScrollingStateScrollingNode::setTopContentInset(float topContentInset) { if (m_topContentInset == topContentInset) return; m_topContentInset = topContentInset; setPropertyChanged(TopContentInset); }
void ScrollingStateScrollingNode::setContentShadowLayer(const LayerRepresentation& layerRepresentation) { if (layerRepresentation == m_contentShadowLayer) return; m_contentShadowLayer = layerRepresentation; setPropertyChanged(ContentShadowLayer); }
void ScrollingStateScrollingNode::setHeaderHeight(int headerHeight) { if (m_headerHeight == headerHeight) return; m_headerHeight = headerHeight; setPropertyChanged(HeaderHeight); }
void ScrollingStateScrollingNode::setSynchronousScrollingReasons(SynchronousScrollingReasons reasons) { if (m_synchronousScrollingReasons == reasons) return; m_synchronousScrollingReasons = reasons; setPropertyChanged(ReasonsForSynchronousScrolling); }
void ScrollingStateScrollingNode::setScrollBehaviorForFixedElements(ScrollBehaviorForFixedElements behaviorForFixed) { if (m_behaviorForFixed == behaviorForFixed) return; m_behaviorForFixed = behaviorForFixed; setPropertyChanged(BehaviorForFixedElements); }
void ScrollingStateScrollingNode::setInsetClipLayer(const LayerRepresentation& layerRepresentation) { if (layerRepresentation == m_insetClipLayer) return; m_insetClipLayer = layerRepresentation; setPropertyChanged(InsetClipLayer); }
void ScrollingStateStickyNode::updateConstraints(const StickyPositionViewportConstraints& constraints) { if (m_constraints == constraints) return; m_constraints = constraints; setPropertyChanged(ViewportConstraints); }
void ScrollingStateScrollingNode::setScrollableAreaSize(const FloatSize& size) { if (m_scrollableAreaSize == size) return; m_scrollableAreaSize = size; setPropertyChanged(ScrollableAreaSize); }
void ScrollingStateScrollingNode::setScrollOrigin(const IntPoint& scrollOrigin) { if (m_scrollOrigin == scrollOrigin) return; m_scrollOrigin = scrollOrigin; setPropertyChanged(ScrollOrigin); }
void ScrollingStateScrollingNode::setScrollPosition(const FloatPoint& scrollPosition) { if (m_scrollPosition == scrollPosition) return; m_scrollPosition = scrollPosition; setPropertyChanged(ScrollPosition); }
void ScrollingStateScrollingNode::setTotalContentsSize(const IntSize& totalContentsSize) { if (m_totalContentsSize == totalContentsSize) return; m_totalContentsSize = totalContentsSize; setPropertyChanged(TotalContentsSize); }
void ScrollingStateScrollingNode::setViewportSize(const FloatSize& size) { if (m_viewportSize == size) return; m_viewportSize = size; setPropertyChanged(ViewportSize); }
void ScrollingStateScrollingNode::setFrameScaleFactor(float scaleFactor) { if (m_frameScaleFactor == scaleFactor) return; m_frameScaleFactor = scaleFactor; setPropertyChanged(FrameScaleFactor); }
void ScrollingStateFixedNode::updateConstraints(const FixedPositionViewportConstraints& constraints) { if (m_constraints == constraints) return; m_constraints = constraints; setPropertyChanged(ViewportConstraints); m_scrollingStateTree->setHasChangedProperties(true); }
void ScrollingStateNode::setLayer(const LayerRepresentation& layerRepresentation) { if (layerRepresentation == m_layer) return; m_layer = layerRepresentation; setPropertyChanged(ScrollLayer); }
void MetaDataBase::setPropertyChanged( QObject *o, const QString &property, bool changed ) { setupDataBase(); MetaDataBaseRecord *r = db->find( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); return; } if ( changed ) { if ( r->changedProperties.findIndex( property ) == -1 ) r->changedProperties.append( property ); } else { if ( r->changedProperties.findIndex( property ) != -1 ) r->changedProperties.remove( property ); } if ( doUpdate && ( property == "hAlign" || property == "vAlign" || property == "wordwrap" ) ) { doUpdate = false; setPropertyChanged( o, "alignment", changed || isPropertyChanged( o, "hAlign" ) || isPropertyChanged( o, "vAlign" ) || isPropertyChanged( o, "wordwrap" ) ); doUpdate = true; } if ( doUpdate && property == "alignment" ) { doUpdate = false; setPropertyChanged( o, "hAlign", changed ); setPropertyChanged( o, "vAlign", changed ); setPropertyChanged( o, "wordwrap", changed ); doUpdate = true; } }
void ScrollingStateScrollingNode::setRequestedScrollPosition(const FloatPoint& requestedScrollPosition, bool representsProgrammaticScroll) { m_requestedScrollPosition = requestedScrollPosition; m_requestedScrollPositionRepresentsProgrammaticScroll = representsProgrammaticScroll; setPropertyChanged(RequestedScrollPosition); }