void IncludesWidget::setIncludes( const QStringList& paths ) { bool b = blockSignals( true ); clear(); includesModel->setIncludes( paths ); blockSignals( b ); updateEnablements(); checkIfIncludePathExist(); }
void IncludesWidget::deleteIncludePath() { definesAndIncludesDebug() << "deleting include path" << ui->includePaths->currentIndex(); const QModelIndex curidx = ui->includePaths->currentIndex(); if (curidx.isValid()) { includesModel->removeRows(curidx.row(), 1); } updateEnablements(); }
ParserWidget::ParserWidget(QWidget* parent) : QWidget(parent) , m_ui(new Ui::ParserWidget()) { m_ui->setupUi(this); connect(m_ui->parserOptions, &QLineEdit::textEdited, this, &ParserWidget::textEdited); connect(m_ui->languageStandards, static_cast<void(QComboBox::*)(const QString&)>(&QComboBox::activated), this, &ParserWidget::languageStandardChanged); connect(m_ui->kcfg_useProfile, &QRadioButton::toggled, this, &ParserWidget::updateEnablements); updateEnablements(); }
void IncludesWidget::clear() { includesModel->setIncludes( QStringList() ); updateEnablements(); }
void IncludesWidget::includePathEdited() { updateEnablements(); }
void IncludesWidget::includePathSelected( const QModelIndex& /*selected*/ ) { updateEnablements(); }
void IncludesWidget::includePathUrlSelected(const QUrl &url) { Q_UNUSED(url); updateEnablements(); }
void IncludesWidget::addIncludePath() { includesModel->addInclude( makeIncludeDirAbsolute(ui->includePathRequester->url()) ); ui->includePathRequester->clear(); updateEnablements(); }