git-svn-id: svn://db.shs.com.ru/libs@154 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -460,6 +460,11 @@ void SQLTableWidget::setTableName(const QString & t) {
|
||||
QStringList wrl = wr.split(";");
|
||||
addRelation(wrl[0], wrl[1], wrl[2], wrl[3]);
|
||||
}
|
||||
QMapIterator<QString, bool> cnit(col_vis);
|
||||
while (cnit.hasNext()) {
|
||||
cnit.next();
|
||||
setColumnVisible(cnit.key(), cnit.value());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -855,6 +860,14 @@ void SQLTableWidget::addFixedColumnTranslation(const QString & col_name, const Q
|
||||
}
|
||||
|
||||
|
||||
void SQLTableWidget::setAdditionalActions(QList<QAction * > a) {
|
||||
foreach (QAction * i, add_actions)
|
||||
popup_menu.removeAction(i);
|
||||
add_actions = a;
|
||||
popup_menu.addActions(a);
|
||||
}
|
||||
|
||||
|
||||
void SQLTableWidget::setCustomQuery(const QString & q) {
|
||||
custom_query = q;
|
||||
updateTable();
|
||||
|
||||
Reference in New Issue
Block a user