Add UIAbstractView SelectionKind to set if Multiple selection is enabled.

Git plugin minor changes.
Replace getTranslatorString in favor of i18n when possible.
UIAbstractTableView allow to start editing with keyboard shortcuts.
Some micro-optimizations.
This commit is contained in:
Martín Lucas Golini
2024-02-06 00:42:56 -03:00
parent 997fe458b3
commit e953aa3687
17 changed files with 146 additions and 62 deletions

View File

@@ -707,8 +707,8 @@ void UIBuildSettings::bindTable( const std::string& name, const std::string& key
};
return delegate;
};
model->setColumnName( 0, getTranslatorString( key + "_name", "Name" ) );
model->setColumnName( 1, getTranslatorString( key + "_value", "Value" ) );
model->setColumnName( 0, i18n( key + "_name", "Name" ) );
model->setColumnName( 1, i18n( key + "_value", "Value" ) );
model->setIsEditable( true );
table->setMainColumn( 1 );
table->setAutoColumnsWidth( true );