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()
|
QQmlListProperty<ConfigCategory> ConfigModel::categories()
|
||||||
{
|
{
|
||||||
return QQmlListProperty<ConfigCategory>(this, 0, ConfigModel::categories_append,
|
return QQmlListProperty<ConfigCategory>(this, 0, ConfigModelPrivate::categories_append,
|
||||||
ConfigModel::categories_count,
|
ConfigModelPrivate::categories_count,
|
||||||
ConfigModel::categories_at,
|
ConfigModelPrivate::categories_at,
|
||||||
ConfigModel::categories_clear);
|
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"
|
#include "moc_configmodel.cpp"
|
||||||
|
@ -83,11 +83,6 @@ public:
|
|||||||
**/
|
**/
|
||||||
QQmlListProperty<ConfigCategory> categories();
|
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:
|
Q_SIGNALS:
|
||||||
/**
|
/**
|
||||||
* emitted when the count is changed
|
* emitted when the count is changed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user