Changeset View
Changeset View
Standalone View
Standalone View
kstyle/breezeframeshadow.cpp
Show First 20 Lines • Show All 134 Lines • ▼ Show 20 Line(s) | 133 | { | |||
---|---|---|---|---|---|
135 | widget->removeEventFilter( this ); | 135 | widget->removeEventFilter( this ); | ||
136 | 136 | | |||
137 | const QList<QObject* > children = widget->children(); | 137 | const QList<QObject* > children = widget->children(); | ||
138 | foreach( QObject *child, children ) | 138 | foreach( QObject *child, children ) | ||
139 | { | 139 | { | ||
140 | if( FrameShadow* shadow = qobject_cast<FrameShadow*>(child) ) | 140 | if( FrameShadow* shadow = qobject_cast<FrameShadow*>(child) ) | ||
141 | { | 141 | { | ||
142 | shadow->hide(); | 142 | shadow->hide(); | ||
143 | shadow->setParent(0); | 143 | shadow->setParent(nullptr); | ||
144 | shadow->deleteLater(); | 144 | shadow->deleteLater(); | ||
145 | } | 145 | } | ||
146 | } | 146 | } | ||
147 | 147 | | |||
148 | } | 148 | } | ||
149 | 149 | | |||
150 | //____________________________________________________________________________________ | 150 | //____________________________________________________________________________________ | ||
151 | void FrameShadowFactory::updateShadowsGeometry( const QObject* object, QRect rect ) const | 151 | void FrameShadowFactory::updateShadowsGeometry( const QObject* object, QRect rect ) const | ||
▲ Show 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | 195 | { | |||
197 | { shadow->updateState( focus, hover, opacity, mode ); } | 197 | { shadow->updateState( focus, hover, opacity, mode ); } | ||
198 | } | 198 | } | ||
199 | 199 | | |||
200 | } | 200 | } | ||
201 | 201 | | |||
202 | //____________________________________________________________________________________ | 202 | //____________________________________________________________________________________ | ||
203 | void FrameShadowFactory::installShadow( QWidget* widget, Helper& helper, Side area ) const | 203 | void FrameShadowFactory::installShadow( QWidget* widget, Helper& helper, Side area ) const | ||
204 | { | 204 | { | ||
205 | FrameShadow *shadow(0); | 205 | FrameShadow *shadow(nullptr); | ||
206 | shadow = new FrameShadow( area, helper ); | 206 | shadow = new FrameShadow( area, helper ); | ||
207 | shadow->setParent(widget); | 207 | shadow->setParent(widget); | ||
208 | shadow->hide(); | 208 | shadow->hide(); | ||
209 | } | 209 | } | ||
210 | 210 | | |||
211 | //____________________________________________________________________________________ | 211 | //____________________________________________________________________________________ | ||
212 | void FrameShadowFactory::widgetDestroyed( QObject* object ) | 212 | void FrameShadowFactory::widgetDestroyed( QObject* object ) | ||
213 | { _registeredWidgets.remove( object ); } | 213 | { _registeredWidgets.remove( object ); } | ||
▲ Show 20 Lines • Show All 148 Lines • Show Last 20 Lines |