Symbol Fields Table: fix Qty column

Really need to refactor these strings out of everything...
This commit is contained in:
Mike Williams 2023-03-09 08:29:14 -05:00
parent 106747a03b
commit bb7d55e5a4
3 changed files with 4 additions and 4 deletions

View File

@ -341,7 +341,7 @@ void DIALOG_SYMBOL_FIELDS_TABLE::SetupColumnProperties()
attr->SetEditor( new GRID_CELL_URL_EDITOR( this, Prj().SchSearchS() ) );
m_grid->SetColAttr( col, attr );
}
else if( m_dataModel->GetColFieldName( col ) == _( "Qty" ) )
else if( m_dataModel->GetColFieldName( col ) == _( "Quantity" ) )
{
attr->SetReadOnly();
m_grid->SetColAttr( col, attr );
@ -540,7 +540,7 @@ void DIALOG_SYMBOL_FIELDS_TABLE::LoadFieldNames()
AddField( _( "Value" ), wxT( "Value" ), true, true );
AddField( _( "Footprint" ), wxT( "Footprint" ), true, true );
AddField( _( "Datasheet" ), wxT( "Datasheet" ), true, false );
AddField( _( "Quantity" ), wxT( "Qty" ), true, false );
AddField( _( "Quantity" ), wxT( "Qty" ), true, false );
for( const wxString& fieldName : userFieldNames )
AddField( fieldName, fieldName, true, false );

View File

@ -492,7 +492,7 @@ void FIELDS_EDITOR_GRID_DATA_MODEL::ApplyData()
for( const std::pair<wxString, wxString> srcData : fieldStore )
{
if( srcData.first == _( "Qty" ) )
if( srcData.first == _( "Quantity" ) )
continue;
const wxString& srcName = srcData.first;

View File

@ -128,7 +128,7 @@ public:
bool ColIsQuantity( int aCol )
{
wxCHECK( aCol >= 0 && aCol < (int) m_cols.size(), false );
return m_cols[aCol].m_fieldName == _( "Qty" );
return m_cols[aCol].m_fieldName == _( "Quantity" );
}
void SetSorting( int aCol, bool ascending )