void GdbServerProviderConfigWidget::apply() { m_provider->setDisplayName(m_nameLineEdit->text()); m_provider->setStartupMode(startupMode()); applyImpl(); }
void OpenOcdGdbServerProviderConfigWidget::startupModeChanged() { const GdbServerProvider::StartupMode m = startupMode(); const bool isStartup = m != GdbServerProvider::NoStartup; m_executableFileChooser->setVisible(isStartup); m_mainLayout->labelForField(m_executableFileChooser)->setVisible(isStartup); m_rootScriptsDirChooser->setVisible(isStartup); m_mainLayout->labelForField(m_rootScriptsDirChooser)->setVisible(isStartup); m_configurationFileChooser->setVisible(isStartup); m_mainLayout->labelForField(m_configurationFileChooser)->setVisible(isStartup); m_additionalArgumentsLineEdit->setVisible(isStartup); m_mainLayout->labelForField(m_additionalArgumentsLineEdit)->setVisible(isStartup); const bool isNetwork = m != GdbServerProvider::StartupOnPipe; m_hostWidget->setVisible(isNetwork); m_mainLayout->labelForField(m_hostWidget)->setVisible(isNetwork); }
int PgcRouterApp::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QObject::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { if (_id < 12) qt_static_metacall(this, _c, _id, _a); _id -= 12; } #ifndef QT_NO_PROPERTIES else if (_c == QMetaObject::ReadProperty) { void *_v = _a[0]; switch (_id) { case 0: *reinterpret_cast< QString*>(_v) = startupMode(); break; case 1: *reinterpret_cast< QString*>(_v) = source(); break; case 2: *reinterpret_cast< QString*>(_v) = target(); break; case 3: *reinterpret_cast< QString*>(_v) = action(); break; case 4: *reinterpret_cast< QString*>(_v) = mimeType(); break; case 5: *reinterpret_cast< QString*>(_v) = uri(); break; case 6: *reinterpret_cast< QString*>(_v) = data(); break; case 7: *reinterpret_cast< QString*>(_v) = status(); break; } _id -= 8; } else if (_c == QMetaObject::WriteProperty) { _id -= 8; } else if (_c == QMetaObject::ResetProperty) { _id -= 8; } else if (_c == QMetaObject::QueryPropertyDesignable) { _id -= 8; } else if (_c == QMetaObject::QueryPropertyScriptable) { _id -= 8; } else if (_c == QMetaObject::QueryPropertyStored) { _id -= 8; } else if (_c == QMetaObject::QueryPropertyEditable) { _id -= 8; } else if (_c == QMetaObject::QueryPropertyUser) { _id -= 8; } #endif // QT_NO_PROPERTIES return _id; }