• Bartosz Brachaczek's avatar
    qt5: Use QPointer for QObject tracking instead of QWeakPointer · 45a91918
    Bartosz Brachaczek authored
    QWeakPointer is pretty much unusable for this purpose in Qt5. Its only
    purpose is to represent a weak reference to a QSharedPointer.
    
    BTW, QPointer has the big advantage of actually having implicit T* conversion
    operator and operator->() so you don't have to use the data() method
    everywhere. I converted some usages with a very conservative grep+sed:
    
    git grep '\.data()->' | egrep -vi \
    	'account|avatar|budd|group|chat|contact|file|identit|message|proxy|encryption_ng' \
    	| cut -f1 -d: | sort -u | xargs sed -i 's/\.data()->/->/g'
    Signed-off-by: default avatarBartosz Brachaczek <b.brachaczek@gmail.com>
    45a91918
hints-configuration-ui-handler.h 2.52 KB