示例#1
0
void IncludesWidget::setIncludes( const QStringList& paths )
{
    bool b = blockSignals( true );
    clear();
    includesModel->setIncludes( paths );
    blockSignals( b );
    updateEnablements();
    checkIfIncludePathExist();
}
示例#2
0
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();
}
示例#3
0
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();
}
示例#4
0
void IncludesWidget::clear()
{
    includesModel->setIncludes( QStringList() );
    updateEnablements();
}
示例#5
0
void IncludesWidget::includePathEdited()
{
    updateEnablements();
}
示例#6
0
void IncludesWidget::includePathSelected( const QModelIndex& /*selected*/ )
{
    updateEnablements();
}
示例#7
0
void IncludesWidget::includePathUrlSelected(const QUrl &url)
{
    Q_UNUSED(url);
    updateEnablements();
}
示例#8
0
void IncludesWidget::addIncludePath()
{
    includesModel->addInclude( makeIncludeDirAbsolute(ui->includePathRequester->url()) );
    ui->includePathRequester->clear();
    updateEnablements();
}