On Wednesday 31 July 2013 00:01:29 Thomas Lübking wrote: > On Dienstag, 30. Juli 2013 23:23:13 CEST, Kevin Krammer wrote: > >> +void KDEAddressbookProcess::slotApplicationLoaded() > >> this is superfluous, you can bind the finished signal to > > > > Might even connect the signal to deleteLater directly? > > That's what i meant - it's rarely required to write a slot to > delete(Later) any watchers in Qt. > > connect (watcher, SIGNAL(finished()), SLOT(foo())); > connect (watcher, SIGNAL(finished()), watcher, > SLOT(deleteLater())); > > > Cheers, > Thomas
Ok, I will change code. Then one extra slot which calling function and deleteLater will not be needed. -- Pali Rohár pali.ro...@gmail.com
signature.asc
Description: This is a digitally signed message part.