mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
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:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user