• 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
Name
Last commit
Last update
..
configuration Loading commit data...
translations Loading commit data...
CMakeLists.txt Loading commit data...
hint-over-user-configuration-window.cpp Loading commit data...
hint-over-user-configuration-window.h Loading commit data...
hint.cpp Loading commit data...
hint.h Loading commit data...
hint_manager.cpp Loading commit data...
hint_manager.h Loading commit data...
hints-configuration-ui-handler.cpp Loading commit data...
hints-configuration-ui-handler.h Loading commit data...
hints-configuration-window.cpp Loading commit data...
hints-configuration-window.h Loading commit data...
hints-plugin.cpp Loading commit data...
hints-plugin.h Loading commit data...
hints.desc Loading commit data...
hints_configuration_widget.cpp Loading commit data...
hints_configuration_widget.h Loading commit data...