Хранилища Subversion OpenInventory

Сравнить редакции

Не учитывать пробелы Редакция 62 → Редакция 63

/trunk/ClassEditor/classeditor.cpp
422,17 → 422,31
int i;
i++;
QModelIndex model_index;
QItemSelectionModel *selectionModel = ui->tableView->selectionModel();
QItemSelectionModel *selectionModel = ui->tableView_2->selectionModel();
QModelIndexList indexes = selectionModel->selectedIndexes();
//model_index = mymodel->selec;
//modelList = ui->tableView->SelectItems;
i = indexes.size();
QList<int> selectedRows;
selectedRows.clear();
foreach (model_index, indexes){ // ñïèñîê âñåõ âûäåëåííûõ ñòðîê
if (!selectedRows.contains(model_index.row())) selectedRows.append(model_index.row());
 
}
i = selectedRows.size();
 
if (i > 0) model_index = indexes.at(0);
i++;
}
 
 
void ClassEditor::on_pushButton_5_clicked(){ // îáðàáîò÷èê íàæàòèÿ êíîïêè "Óäàëèòü âñå ïîëÿ"
int row;
row = ClassEditor::modelForDescription->rowCount();
ClassEditor::modelForDescription->removeRows(0, row);
ClassEditor::modelForDescription->submitAll();
}
 
void ClassEditor::on_myModel_dataChanged( const QModelIndex & topLeft, const QModelIndex & bottomRight ){
int i;
i++;
/trunk/ClassEditor/classeditor.h
48,6 → 48,7
void on_pushButton_2_clicked(); // îáðàáîò÷èê íàæàòèÿ êíîïêè "Óäàëèòü êëàññ"
void on_pushButton_3_clicked(); // îáðàáîò÷èê íàæàòèÿ êíîïêè "Íîâîå ïîëå"
void on_pushButton_4_clicked(); // îáðàáîò÷èê íàæàòèÿ êíîïêè "Óäàëèòü ïîëå"
void on_pushButton_5_clicked(); // îáðàáîò÷èê íàæàòèÿ êíîïêè "Óäàëèòü âñå ïîëÿ"
void on_tableView_clicked(const QModelIndex & index );
void on_myModel_dataChanged ( const QModelIndex & topLeft, const QModelIndex & bottomRight );
void on_modelForDescription_dataChanged ( const QModelIndex & topLeft, const QModelIndex & bottomRight );
/trunk/ClassEditor/classeditor.ui
39,7 → 39,7
<rect>
<x>10</x>
<y>40</y>
<width>821</width>
<width>761</width>
<height>192</height>
</rect>
</property>
47,9 → 47,9
<widget class="QPushButton" name="pushButton">
<property name="geometry">
<rect>
<x>840</x>
<y>49</y>
<width>111</width>
<x>780</x>
<y>40</y>
<width>191</width>
<height>21</height>
</rect>
</property>
70,9 → 70,9
<widget class="QPushButton" name="pushButton_2">
<property name="geometry">
<rect>
<x>840</x>
<y>80</y>
<width>111</width>
<x>780</x>
<y>60</y>
<width>191</width>
<height>21</height>
</rect>
</property>
83,9 → 83,9
<widget class="QPushButton" name="pushButton_3">
<property name="geometry">
<rect>
<x>839</x>
<y>149</y>
<width>111</width>
<x>780</x>
<y>170</y>
<width>181</width>
<height>21</height>
</rect>
</property>
96,9 → 96,9
<widget class="QPushButton" name="pushButton_4">
<property name="geometry">
<rect>
<x>840</x>
<y>180</y>
<width>111</width>
<x>780</x>
<y>190</y>
<width>181</width>
<height>21</height>
</rect>
</property>
132,6 → 132,19
<string>Псевдоним</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_5">
<property name="geometry">
<rect>
<x>779</x>
<y>209</y>
<width>181</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>Удалить все поля</string>
</property>
</widget>
</widget>
<widget class="QMenuBar" name="menuBar">
<property name="geometry">
139,7 → 152,7
<x>0</x>
<y>0</y>
<width>983</width>
<height>25</height>
<height>27</height>
</rect>
</property>
</widget>