Changeset View
Changeset View
Standalone View
Standalone View
kstyle/animations/breezeanimations.cpp
Show First 20 Lines • Show All 218 Lines • ▼ Show 20 Line(s) | 218 | { | |||
---|---|---|---|---|---|
219 | int index( _engines.indexOf( qobject_cast<BaseEngine*>(object) ) ); | 219 | int index( _engines.indexOf( qobject_cast<BaseEngine*>(object) ) ); | ||
220 | if( index >= 0 ) _engines.removeAt( index ); | 220 | if( index >= 0 ) _engines.removeAt( index ); | ||
221 | } | 221 | } | ||
222 | 222 | | |||
223 | //_______________________________________________________________ | 223 | //_______________________________________________________________ | ||
224 | void Animations::registerEngine( BaseEngine* engine ) | 224 | void Animations::registerEngine( BaseEngine* engine ) | ||
225 | { | 225 | { | ||
226 | _engines.append( engine ); | 226 | _engines.append( engine ); | ||
227 | connect( engine, SIGNAL(destroyed(QObject*)), this, SLOT(unregisterEngine(QObject*)) ); | 227 | connect( engine, &QObject::destroyed, this, &Animations::unregisterEngine ); | ||
228 | } | 228 | } | ||
229 | 229 | | |||
230 | } | 230 | } |