mirror of
https://github.com/overte-org/overte.git
synced 2025-04-11 01:42:11 +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: {
|
||||
if (checked) {
|
||||
box.model = InputConfiguration.activeInputPlugins();
|
||||
loader.source = "";
|
||||
loader.source = InputConfiguration.configurationLayout(box.currentText);
|
||||
} else {
|
||||
box.model = InputConfiguration.inputPlugins();
|
||||
loader.source = "";
|
||||
loader.source = InputConfiguration.configurationLayout(box.currentText);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ QStringList InputConfiguration::inputPlugins() {
|
|||
QStringList InputConfiguration::activeInputPlugins() {
|
||||
QStringList activePlugins;
|
||||
for (auto plugin : PluginManager::getInstance()->getInputPlugins()) {
|
||||
if (plugin->isActive()) {
|
||||
if (plugin->configurable()) {
|
||||
activePlugins << QString(plugin->getName());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -41,6 +41,7 @@ public:
|
|||
const QString getName() const override { return NAME; }
|
||||
|
||||
bool isHandController() const override { return true; }
|
||||
bool configurable() override { return true; }
|
||||
|
||||
QString configurationLayout() override;
|
||||
void configurationSettings(const QJsonObject configurationSettings) override;
|
||||
|
|
Loading…
Reference in a new issue