Minor performance cleanup.
This commit is contained in:
@@ -307,7 +307,7 @@ namespace glabels
|
||||
if ( index != 0 )
|
||||
{
|
||||
mColorNode.setField( true );
|
||||
mColorNode.setColor( QColor("#eeeeec") );
|
||||
mColorNode.setColor( QColor( 0xee, 0xee, 0xec ) );
|
||||
mColorNode.setKey( mKeys[index-1] );
|
||||
|
||||
emit colorChanged( mColorNode, false );
|
||||
|
||||
+1
-1
@@ -191,7 +191,7 @@ namespace glabels
|
||||
QString fileName = model::FileUtil::addExtension( rawFileName, ".glabels" );
|
||||
|
||||
|
||||
if ( QFileInfo(fileName).exists() )
|
||||
if ( QFileInfo::exists(fileName) )
|
||||
{
|
||||
QMessageBox msgBox( window );
|
||||
msgBox.setWindowTitle( tr("Save Label As") );
|
||||
|
||||
@@ -109,8 +109,7 @@ namespace glabels
|
||||
const model::Vendor* vendor = model::Db::lookupVendorFromName( tmplate->brand() );
|
||||
if ( (vendor != nullptr) && (vendor->url() != nullptr) )
|
||||
{
|
||||
QString markup = QString( "<a href='%1'>%2</a>" )
|
||||
.arg( vendor->url() ).arg( vendor->name() );
|
||||
QString markup = QString( "<a href='%1'>%2</a>" ).arg( vendor->url(), vendor->name() );
|
||||
vendorLabel->setText( markup );
|
||||
}
|
||||
else
|
||||
@@ -120,8 +119,7 @@ namespace glabels
|
||||
|
||||
if ( tmplate->productUrl() != nullptr )
|
||||
{
|
||||
QString markup = QString( "<a href='%1'>%2</a>" )
|
||||
.arg( tmplate->productUrl() ).arg( tmplate->part() );
|
||||
QString markup = QString( "<a href='%1'>%2</a>" ).arg( tmplate->productUrl(), tmplate->part() );
|
||||
partLabel->setText( markup );
|
||||
}
|
||||
else
|
||||
|
||||
@@ -1709,12 +1709,12 @@
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../glabels/PropertiesView.cpp" line="193"/>
|
||||
<location filename="../glabels/PropertiesView.cpp" line="191"/>
|
||||
<source>Product Rotate</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../glabels/PropertiesView.cpp" line="222"/>
|
||||
<location filename="../glabels/PropertiesView.cpp" line="220"/>
|
||||
<source>Change Product</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
||||
Reference in New Issue
Block a user