summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qkeysequence.cpp
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2012-03-02 14:48:09 +0100
committerQt by Nokia <qt-info@nokia.com>2012-03-06 13:37:17 +0100
commiteb24dfcccb304c84a147f0eafd3b3fc3df3ef4f3 (patch)
tree24f6ed9f377f52a69006488ba24af4762581105b /src/gui/kernel/qkeysequence.cpp
parent9a5c728e4664cdd22ab999a9c7c15b7ed4965ce1 (diff)
Add template specialization of QMetaType for QObject derived pointers.
This makes it possible to do things like QVariant::fromValue(new SomeObject); without first using Q_DECLARE_METATYPE(Something*) This functionality was originally part of http://codereview.qt-project.org/#change,11710 but was rejected because the functionality was based on specialization of QVariant::fromValue which could be dangerous. This new implementation doesn't have such danger. Change-Id: I83fe941b6984be54469bc6b9191f6eacaceaa036 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com> Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/gui/kernel/qkeysequence.cpp')
0 files changed, 0 insertions, 0 deletions