Subversion Repositories OpenInventory

Compare Revisions

Ignore whitespace Rev 155 → Rev 156

/trunk/DBViewer/database.cpp
505,8 → 505,20
 
 
 
for (int i=0; i < dateFieldList.count(); i++){ // äëÿ âñåõ ïîëåé ñ òèïîì "DATA"
static MyDEDelegate dateDelegate;
QString dateFieldName; // èìÿ ïîëÿ
int dataFieldIndex; //
dateFieldName = dateFieldList.at(i); // îïðåäåëÿåì èìÿ ïîëÿ ñ òèïîì "DATA"
dataFieldIndex = sql_mogel->record().indexOf(dateFieldName); // îïðåäåëÿåì íîìåð ñòîëáöà â ìîäåëå
date_colomns_indexes.append(dataFieldIndex);// çàïîìíèì íîìåð ñòîëáöà ñ äåëåãàòîì äëÿ òèïà "DATA"
ui->tableView->setItemDelegateForColumn(dataFieldIndex, &dateDelegate);
 
}
 
 
 
 
for (int i=0; i < spin_delegate_list.count(); i++){ // óäàëÿåì íåñòàíäàðòíûå äåëåãàòû
delete spin_delegate_list.at(i);
}