mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
remove unused QDeclarativeCompiledBindingsPrivate::findgeneric() method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
88461e42ad
commit
847bcb94b0
1 changed files with 0 additions and 64 deletions
|
@ -178,11 +178,6 @@ public:
|
|||
int subIdx,
|
||||
const QScriptDeclarativeClass::Identifier &name,
|
||||
bool isTerminal);
|
||||
void findgeneric(Register *output, // value output
|
||||
int subIdx, // Subscription index in config
|
||||
QDeclarativeContextData *context, // Context to search in
|
||||
const QScriptDeclarativeClass::Identifier &name,
|
||||
bool isTerminal);
|
||||
};
|
||||
|
||||
QDeclarativeCompiledBindingsPrivate::QDeclarativeCompiledBindingsPrivate()
|
||||
|
@ -868,65 +863,6 @@ bool QDeclarativeCompiledBindingsPrivate::findproperty(QObject *obj, Register *o
|
|||
}
|
||||
}
|
||||
|
||||
void QDeclarativeCompiledBindingsPrivate::findgeneric(Register *output,
|
||||
int subIdx,
|
||||
QDeclarativeContextData *context,
|
||||
const QScriptDeclarativeClass::Identifier &name,
|
||||
bool isTerminal)
|
||||
{
|
||||
QDeclarativeEnginePrivate *enginePriv = QDeclarativeEnginePrivate::get(context->engine);
|
||||
|
||||
while (context) {
|
||||
|
||||
int contextPropertyIndex = context->propertyNames?context->propertyNames->value(name):-1;
|
||||
|
||||
|
||||
if (contextPropertyIndex != -1) {
|
||||
|
||||
if (contextPropertyIndex < context->idValueCount) {
|
||||
output->setQObject(context->idValues[contextPropertyIndex]);
|
||||
output->settype(QMetaType::QObjectStar);
|
||||
|
||||
if (subIdx != -1)
|
||||
subscribeId(context, contextPropertyIndex, subIdx);
|
||||
|
||||
} else {
|
||||
QDeclarativeContextPrivate *cp = context->asQDeclarativeContextPrivate();
|
||||
const QVariant &value = cp->propertyValues.at(contextPropertyIndex);
|
||||
|
||||
if (isTerminal) {
|
||||
new (output->typeDataPtr()) QVariant(value);
|
||||
output->settype(qMetaTypeId<QVariant>());
|
||||
} else {
|
||||
bool ok;
|
||||
output->setQObject(variantToQObject(value, &ok));
|
||||
if (!ok) { output->setUndefined(); }
|
||||
else { output->settype(QMetaType::QObjectStar); }
|
||||
return;
|
||||
}
|
||||
|
||||
if (subIdx != -1)
|
||||
subscribe(context->asQDeclarativeContext(), contextPropertyIndex + cp->notifyIndex, subIdx);
|
||||
|
||||
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (QObject *root = context->contextObject) {
|
||||
|
||||
if (findproperty(root, output, enginePriv, subIdx, name, isTerminal))
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
context = context->parent;
|
||||
}
|
||||
|
||||
output->setUndefined();
|
||||
}
|
||||
|
||||
void QDeclarativeCompiledBindingsPrivate::init()
|
||||
{
|
||||
Program *program = (Program *)programData;
|
||||
|
|
Loading…
Add table
Reference in a new issue