Make many methods and attributes of classes private

Make most variables, functions, slots etc. private instead of public.

Also make the constructors explicit.
This commit is contained in:
Martin Kleusberg
2013-01-20 16:00:09 +01:00
parent a0c209efd8
commit e4e840dc38
13 changed files with 70 additions and 69 deletions

View File

@@ -667,7 +667,7 @@ void MainWindow::editWinAway()
{
editWin->hide();
activateWindow();
ui->dataTable->setRangeSelected( QTableWidgetSelectionRange(editWin->curRow, editWin->curCol, editWin->curRow, editWin->curCol), true);
ui->dataTable->setRangeSelected(QTableWidgetSelectionRange(editWin->getCurrentRow(), editWin->getCurrentCol(), editWin->getCurrentRow(), editWin->getCurrentCol()), true);
}
void MainWindow::editText(int row, int col)
@@ -972,8 +972,8 @@ void MainWindow::editField()
EditFieldDialog dialog(&db, false, item->parent()->text(0), item->text(0), item->text(2), this);
if(dialog.exec())
{
item->setText(0, dialog.field_name);
item->setText(2, dialog.field_type);
item->setText(0, dialog.getFieldName());
item->setText(2, dialog.getFieldType());
}
}