MCPcopy Create free account
hub / github.com/KDE/kdevelop / selectionChanged

Method selectionChanged

plugins/projectfilter/projectfilterconfigpage.cpp:126–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126void ProjectFilterConfigPage::selectionChanged()
127{
128 bool hasSelection = m_ui->filters->currentIndex().isValid();
129 int row = -1;
130 if (hasSelection) {
131 row = m_ui->filters->currentIndex().row();
132 }
133 m_ui->remove->setEnabled(hasSelection);
134
135 m_ui->moveDown->setEnabled(hasSelection && row != m_model->rowCount() - 1);
136 m_ui->moveUp->setEnabled(hasSelection && row != 0);
137}
138
139void ProjectFilterConfigPage::add()
140{

Callers

nothing calls this directly

Calls 5

isValidMethod · 0.45
currentIndexMethod · 0.45
rowMethod · 0.45
setEnabledMethod · 0.45
rowCountMethod · 0.45

Tested by

no test coverage detected