hoverTag( 0 ),
cachedHfwWidth( -1 ),
m_parent( parent ) {
- newTagNode.text = i18n( "New Tag..." );
+ newTagNode.text = i18nc( "@label", "New Tag..." );
}
int maxFontSize;
d->showAllTags = false;
d->invalidateCachedValues();
d->nodes.clear();
- Q_FOREACH( Tag tag, tags ) {
+ Q_FOREACH( const Tag &tag, tags ) {
TagNode node;
node.tag = tag;
node.weight = d->calculateWeight( tag );
// If we have tags d->rebuildCloud() has been called at least once,
// thus, we have proper rects (i.e. needed sizes)
if ( d->nodes.isEmpty() && !d->newTagButtonEnabled ) {
- return QSize( fontMetrics().width( i18n( "No Tags" ) ), fontMetrics().height() );
+ return QSize( fontMetrics().width( i18nc( "@label Indicator when no tags defined", "No Tags" ) ), fontMetrics().height() );
}
else {
QSize size;