mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 00:44:38 +02:00
elimated uncofigurable items from the list
This commit is contained in:
parent
70ba344f1b
commit
4ba1fdc323
3 changed files with 6 additions and 1 deletions
|
@ -101,8 +101,12 @@ Rectangle {
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if (checked) {
|
if (checked) {
|
||||||
box.model = InputConfiguration.activeInputPlugins();
|
box.model = InputConfiguration.activeInputPlugins();
|
||||||
|
loader.source = "";
|
||||||
|
loader.source = InputConfiguration.configurationLayout(box.currentText);
|
||||||
} else {
|
} else {
|
||||||
box.model = InputConfiguration.inputPlugins();
|
box.model = InputConfiguration.inputPlugins();
|
||||||
|
loader.source = "";
|
||||||
|
loader.source = InputConfiguration.configurationLayout(box.currentText);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,7 @@ QStringList InputConfiguration::inputPlugins() {
|
||||||
QStringList InputConfiguration::activeInputPlugins() {
|
QStringList InputConfiguration::activeInputPlugins() {
|
||||||
QStringList activePlugins;
|
QStringList activePlugins;
|
||||||
for (auto plugin : PluginManager::getInstance()->getInputPlugins()) {
|
for (auto plugin : PluginManager::getInstance()->getInputPlugins()) {
|
||||||
if (plugin->isActive()) {
|
if (plugin->configurable()) {
|
||||||
activePlugins << QString(plugin->getName());
|
activePlugins << QString(plugin->getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,6 +41,7 @@ public:
|
||||||
const QString getName() const override { return NAME; }
|
const QString getName() const override { return NAME; }
|
||||||
|
|
||||||
bool isHandController() const override { return true; }
|
bool isHandController() const override { return true; }
|
||||||
|
bool configurable() override { return true; }
|
||||||
|
|
||||||
QString configurationLayout() override;
|
QString configurationLayout() override;
|
||||||
void configurationSettings(const QJsonObject configurationSettings) override;
|
void configurationSettings(const QJsonObject configurationSettings) override;
|
||||||
|
|
Loading…
Reference in a new issue