MCPcopy Create free account
hub / github.com/KDAB/GammaRay / selectionChanged

Method selectionChanged

ui/modelpickerdialog.cpp:106–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106void ModelPickerDialog::selectionChanged()
107{
108 const QModelIndex index = m_view->selectionModel() ? m_view->selectionModel()->selectedRows().value(0) : QModelIndex();
109 m_buttons->button(QDialogButtonBox::Ok)->setEnabled(index.isValid());
110}
111
112void ModelPickerDialog::accept()
113{

Callers

nothing calls this directly

Calls 5

QModelIndexClass · 0.70
selectionModelMethod · 0.45
valueMethod · 0.45
setEnabledMethod · 0.45
isValidMethod · 0.45

Tested by

no test coverage detected