From 2c108e00360f7d5824cd32543057fe0c6c7a4b85 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 11 Sep 2013 14:44:28 +0200 Subject: [PATCH] get rid of QQmlListProperty accessors in public clas --- src/plasmaquick/configmodel.cpp | 28 ++++------------------------ src/plasmaquick/configmodel.h | 5 ----- 2 files changed, 4 insertions(+), 29 deletions(-) diff --git a/src/plasmaquick/configmodel.cpp b/src/plasmaquick/configmodel.cpp index 7d7e75f0a..f188ebd59 100644 --- a/src/plasmaquick/configmodel.cpp +++ b/src/plasmaquick/configmodel.cpp @@ -303,32 +303,12 @@ Plasma::Applet *ConfigModel::applet() const QQmlListProperty ConfigModel::categories() { - return QQmlListProperty(this, 0, ConfigModel::categories_append, - ConfigModel::categories_count, - ConfigModel::categories_at, - ConfigModel::categories_clear); + return QQmlListProperty(this, 0, ConfigModelPrivate::categories_append, + ConfigModelPrivate::categories_count, + ConfigModelPrivate::categories_at, + ConfigModelPrivate::categories_clear); } -ConfigCategory *ConfigModel::categories_at(QQmlListProperty *prop, int index) -{ - return ConfigModelPrivate::categories_at(prop, index); -} - -void ConfigModel::categories_append(QQmlListProperty *prop, ConfigCategory *o) -{ - ConfigModelPrivate::categories_append(prop, o); -} - -int ConfigModel::categories_count(QQmlListProperty *prop) -{ - return ConfigModelPrivate::categories_count(prop); -} - -void ConfigModel::categories_clear(QQmlListProperty *prop) -{ - ConfigModelPrivate::categories_clear(prop); -} - #include "moc_configmodel.cpp" diff --git a/src/plasmaquick/configmodel.h b/src/plasmaquick/configmodel.h index 1a49116ba..daa9cced3 100644 --- a/src/plasmaquick/configmodel.h +++ b/src/plasmaquick/configmodel.h @@ -83,11 +83,6 @@ public: **/ QQmlListProperty categories(); - static ConfigCategory *categories_at(QQmlListProperty *prop, int index); - static void categories_append(QQmlListProperty *prop, ConfigCategory *o); - static int categories_count(QQmlListProperty *prop); - static void categories_clear(QQmlListProperty *prop); - Q_SIGNALS: /** * emitted when the count is changed