bool RvctToolChainConfigWidget::isDirty() const { RvctToolChain *tc = static_cast<RvctToolChain *>(toolChain()); Q_ASSERT(tc); return tc->compilerCommand() != m_ui->compilerPath->fileName() || tc->armVersion() != static_cast<RvctToolChain::ArmVersion>(m_ui->versionComboBox->currentIndex()) || tc->environmentChanges() != environmentChanges() || tc->debuggerCommand() != debuggerCommand() || tc->mkspecList() != mkspecList(); }
char *gui_debug_prompt() { #ifdef MOBILE_UI return const_cast<char*>("c"); #else QEventLoop ev; ev.connect(main_window, SIGNAL(debuggerCommand()), &ev, SLOT(quit())); ev.exec(); return main_window->debug_command.data(); #endif }
void RvctToolChainConfigWidget::apply() { RvctToolChain *tc = static_cast<RvctToolChain *>(toolChain()); Q_ASSERT(tc); QList<Utils::EnvironmentItem> changes = environmentChanges(); tc->setCompilerCommand(m_ui->compilerPath->fileName()); tc->setArmVersion(static_cast<RvctToolChain::ArmVersion>(m_ui->versionComboBox->currentIndex())); tc->setEnvironmentChanges(changes); tc->setDebuggerCommand(debuggerCommand()); tc->setMkspecList(mkspecList()); m_model->setUserChanges(changes); }
void MainWindow::debugCommand() { debug_command = ui->lineEdit->text().toLatin1(); ui->lineEdit->clear(); emit debuggerCommand(); }