void CoaSettingsWidgetChangeDebug::loadModel() { BEGIN; if (actionModel != 0) { actionModel->remMasterWindow(this); delete actionModel; actionModel = 0; } actionModel = new CoaDebugSettingsModel( this ); assert(actionModel); if (actionModel == 0) return; actionModel->addMasterWindow(this); connect (actionModel, SIGNAL(allDataChanged() ), this, SLOT (slotEnableAllPersistentEditors ( )) ); CoaTableView *tableView = qFindChild<CoaTableView*>(this, "tableView"); tableView->setItemDelegate (new SelectDebugLevelDelegate(this)); tableView->setModel(actionModel); tableView->verticalHeader()->hide(); }
void CoaDebugSettingsModel::setNewFile(const QString file, const int l) { BEGIN; CoaDebug::DebugLevel level = CoaDebug::mapIntToLevel(l); QPair<QString, CoaDebug::DebugLevel> pair(file, level); if (m_files.indexOf(pair) == -1) { m_files.append(pair); qSort(m_files.begin(), m_files.end()); reset(); emit allDataChanged(); } }
void AbstractResourcesBackend::emitRatingsReady() { emit allDataChanged({ "rating", "ratingPoints", "ratingCount", "sortableRating" }); }