git-svn-id: svn://db.shs.com.ru/libs@287 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2017-10-03 12:35:34 +00:00
parent 7ad19d72c5
commit fc04d04e9b
7 changed files with 20 additions and 5 deletions

View File

@@ -867,6 +867,16 @@ void SQLTableWidget::addFixedColumnTranslation(const QString & col_name, const Q
}
void SQLTableWidget::selectId(int id) {
if (!model) return;
for (int i = 0; i < model->rowCount(); ++i)
if (model->data(model->index(i, 0)).toInt() == id) {
ui->view->selectRow(i);
break;
}
}
void SQLTableWidget::setAdditionalActions(QList<QAction * > a) {
foreach (QAction * i, add_actions)
popup_menu.removeAction(i);