get rid of QQmlListProperty accessors in public clas
This commit is contained in:
parent
6bf3f54783
commit
2c108e0036
@ -303,32 +303,12 @@ Plasma::Applet *ConfigModel::applet() const
|
||||
|
||||
QQmlListProperty<ConfigCategory> ConfigModel::categories()
|
||||
{
|
||||
return QQmlListProperty<ConfigCategory>(this, 0, ConfigModel::categories_append,
|
||||
ConfigModel::categories_count,
|
||||
ConfigModel::categories_at,
|
||||
ConfigModel::categories_clear);
|
||||
return QQmlListProperty<ConfigCategory>(this, 0, ConfigModelPrivate::categories_append,
|
||||
ConfigModelPrivate::categories_count,
|
||||
ConfigModelPrivate::categories_at,
|
||||
ConfigModelPrivate::categories_clear);
|
||||
|
||||
}
|
||||
|
||||
ConfigCategory *ConfigModel::categories_at(QQmlListProperty<ConfigCategory> *prop, int index)
|
||||
{
|
||||
return ConfigModelPrivate::categories_at(prop, index);
|
||||
}
|
||||
|
||||
void ConfigModel::categories_append(QQmlListProperty<ConfigCategory> *prop, ConfigCategory *o)
|
||||
{
|
||||
ConfigModelPrivate::categories_append(prop, o);
|
||||
}
|
||||
|
||||
int ConfigModel::categories_count(QQmlListProperty<ConfigCategory> *prop)
|
||||
{
|
||||
return ConfigModelPrivate::categories_count(prop);
|
||||
}
|
||||
|
||||
void ConfigModel::categories_clear(QQmlListProperty<ConfigCategory> *prop)
|
||||
{
|
||||
ConfigModelPrivate::categories_clear(prop);
|
||||
}
|
||||
|
||||
|
||||
#include "moc_configmodel.cpp"
|
||||
|
@ -83,11 +83,6 @@ public:
|
||||
**/
|
||||
QQmlListProperty<ConfigCategory> categories();
|
||||
|
||||
static ConfigCategory *categories_at(QQmlListProperty<ConfigCategory> *prop, int index);
|
||||
static void categories_append(QQmlListProperty<ConfigCategory> *prop, ConfigCategory *o);
|
||||
static int categories_count(QQmlListProperty<ConfigCategory> *prop);
|
||||
static void categories_clear(QQmlListProperty<ConfigCategory> *prop);
|
||||
|
||||
Q_SIGNALS:
|
||||
/**
|
||||
* emitted when the count is changed
|
||||
|
Loading…
Reference in New Issue
Block a user