mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-21 03:21:43 -06:00
Made field adding easier to use
- the table now scroll to the bottom so the newly inserted field will be in view - the first column (Name) is now auto-selected for easy text update - related to #769
This commit is contained in:
@@ -488,7 +488,10 @@ void EditTableDialog::addField()
|
||||
tbitem->setCheckState(kPrimaryKey, Qt::Unchecked);
|
||||
tbitem->setCheckState(kAutoIncrement, Qt::Unchecked);
|
||||
tbitem->setCheckState(kUnique, Qt::Unchecked);
|
||||
|
||||
ui->treeWidget->addTopLevelItem(tbitem);
|
||||
ui->treeWidget->scrollToBottom();
|
||||
ui->treeWidget->editItem(tbitem, 0);
|
||||
|
||||
// add field to table object
|
||||
sqlb::FieldPtr f(new sqlb::Field(
|
||||
|
||||
Reference in New Issue
Block a user