Barcode tweaks.
- Add capability to disable text in glbarcode UPC/EAN barcodes. (#79) - Add backend name to display text in BarcodeMenuButton.
This commit is contained in:
@@ -40,7 +40,7 @@ namespace glabels
|
||||
setMenu( mMenu );
|
||||
|
||||
mBcStyle = barcode::Backends::defaultStyle();
|
||||
setText( mBcStyle.name() );
|
||||
setText( mBcStyle.fullName() );
|
||||
|
||||
connect( mMenu, SIGNAL(selectionChanged()), this, SLOT(onMenuSelectionChanged()) );
|
||||
}
|
||||
@@ -61,7 +61,7 @@ namespace glabels
|
||||
void BarcodeMenuButton::setBcStyle( const barcode::Style& bcStyle )
|
||||
{
|
||||
mBcStyle = bcStyle;
|
||||
setText( mBcStyle.name() );
|
||||
setText( mBcStyle.fullName() );
|
||||
}
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ namespace glabels
|
||||
void BarcodeMenuButton::onMenuSelectionChanged()
|
||||
{
|
||||
mBcStyle = mMenu->bcStyle();
|
||||
setText( mBcStyle.name() );
|
||||
setText( mBcStyle.fullName() );
|
||||
|
||||
emit selectionChanged();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user