diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-08-12 05:55:36 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-08-12 05:55:36 (GMT) |
commit | d855ed094c16e9b4058722e6ceef965669211b48 (patch) | |
tree | fff8b5cc0754b559b3085e78035e773ca5338946 | |
parent | da706bdce88107c4d5fe0ca492b94e67466862e6 (diff) | |
download | Qt-d855ed094c16e9b4058722e6ceef965669211b48.zip Qt-d855ed094c16e9b4058722e6ceef965669211b48.tar.gz Qt-d855ed094c16e9b4058722e6ceef965669211b48.tar.bz2 |
Remove unused/incorrect string convertors.
-rw-r--r-- | src/declarative/util/qfxview.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/declarative/util/qfxview.cpp b/src/declarative/util/qfxview.cpp index bb436cd..2c02cee 100644 --- a/src/declarative/util/qfxview.cpp +++ b/src/declarative/util/qfxview.cpp @@ -65,18 +65,6 @@ QT_BEGIN_NAMESPACE DEFINE_BOOL_CONFIG_OPTION(frameRateDebug, QML_SHOW_FRAMERATE) -static QVariant stringToPixmap(const QString &str) -{ - //XXX need to use correct paths - return QVariant(QPixmap(str)); -} - -static QVariant stringToIcon(const QString &str) -{ - //XXX need to use correct paths - return QVariant(QIcon(str)); -} - static QVariant stringToKeySequence(const QString &str) { return QVariant::fromValue(QKeySequence(str)); @@ -143,9 +131,6 @@ QFxView::QFxView(QWidget *parent) void QFxViewPrivate::init() { // XXX: These need to be put in a central location for this kind of thing - - QmlMetaType::registerCustomStringConverter(QVariant::Pixmap, &stringToPixmap); - QmlMetaType::registerCustomStringConverter(QVariant::Icon, &stringToIcon); QmlMetaType::registerCustomStringConverter(QVariant::KeySequence, &stringToKeySequence); #ifdef Q_ENABLE_PERFORMANCE_LOG |