MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / incrementPluginWeight

Function incrementPluginWeight

Gui/NodeCreationDialog.cpp:355–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353}
354
355static void
356incrementPluginWeight(const QString& pluginID,
357 int majVersion)
358{
359 QSettings settings( QString::fromUtf8(NATRON_ORGANIZATION_NAME), QString::fromUtf8(NATRON_APPLICATION_NAME) );
360 QString propName( pluginID + QString::number(majVersion) + QString::fromUtf8("_tab_weight") );
361 int curValue = settings.value( propName, QVariant(0) ).toInt();
362
363 ++curValue;
364 settings.setValue( propName, QVariant(curValue) );
365}
366
367NodeCreationDialog::NodeCreationDialog(const QString& initialFilter,
368 QWidget* parent)

Callers 1

getNodeNameMethod · 0.85

Calls 2

valueMethod · 0.45
setValueMethod · 0.45

Tested by

no test coverage detected