bool QAbstractItemModel::setData ( const QModelIndex & index, const QVariant & value, int role = Qt::EditRole )void QAbstractItemModel::reset ()
void QAbstractItemModel::layoutChanged ()void QAbstractItemModel::dataChanged ( const QModelIndex & topLeft, const QModelIndex & bottomRight )
void FamilyBudget::openArticleForm(){ ArticleWindow form1(this); form1.resize(400, 300); form1.exec(); updateLinesPanel();}
void FamilyBudget::updateLinesPanel(){ linesModel->submit(); linesModel->select(); linesView->setModel(linesModel);}
void ArticleWindow::done(int result){ articleModel->submit(); articleModel->select(); //articleView->setModel(articleModel); QDialog::done(result);}
articleModel->relationModel(int column)->select();
linesModel->relationModel(2)->select();
void MMalc::editAgreement(){ stackedWidget->setCurrentIndex(1); QModelIndex index = tableViewMagazine->currentIndex(); if (!index.isValid()) return; mapper->setCurrentIndex(index.row());}<....>void MMalc::addDepartment(){ if (stackedDepart->currentIndex()) { stackedDepart->setCurrentIndex(0); buttonAddDepar->setText(tr("Save")); buttonSave->setEnabled(FALSE); int row = departmentModel->rowCount(); departmentModel->insertRow(row); mapperDep->setCurrentIndex(row); lineEditDepartment->setFocus(); } else { stackedDepart->setCurrentIndex(1); buttonAddDepar->setText(tr("Add")); buttonSave->setEnabled(TRUE); mapperDep->submit(); int row = departmentModel->rowCount(); comboBoxDepartment->setCurrentIndex(--row); }}