Add generic templates (#307)
- Add generic full-page templates. (This feature from 3.4 was missing)
- Also add generic half-page, quarter-page, and envelope templates.
- Add several more common envelope sizes to page-sizes.xml
- Qt print backend does not need pwg_size.
- Replace with pwg_class, to distinguish between ISO and NA sizes
This commit is contained in:
@@ -207,6 +207,7 @@ namespace glabels
|
||||
if ( auto* tItem = dynamic_cast<TemplatePickerItem *>( mModel->item( i, 0 ) ) )
|
||||
{
|
||||
bool nameMask = tItem->tmplate().name().contains( searchString, Qt::CaseInsensitive );
|
||||
bool descMask = tItem->tmplate().description().contains( searchString, Qt::CaseInsensitive );
|
||||
|
||||
bool sizeMask =
|
||||
(isoMask && tItem->tmplate().isSizeIso()) ||
|
||||
@@ -228,7 +229,7 @@ namespace glabels
|
||||
}
|
||||
|
||||
|
||||
if ( nameMask && sizeMask && categoryMask )
|
||||
if ( (nameMask||descMask) && sizeMask && categoryMask )
|
||||
{
|
||||
setRowHidden( i, false );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user