void SeasidePerson::recalculateDisplayLabel() { QString oldDisplayLabel = displayLabel(); QString newDisplayLabel = generateDisplayLabel(mContact); // TODO: would be lovely if mobility would let us store this somehow if (oldDisplayLabel != newDisplayLabel) { mDisplayLabel = newDisplayLabel; emit displayLabelChanged(); } }
void SeasidePerson::recalculateDisplayLabel(SeasideProxyModel::DisplayLabelOrder order) { QString oldDisplayLabel = mDisplayLabel; QString newDisplayLabel = generateDisplayLabel(mContact, order); if (oldDisplayLabel != newDisplayLabel) { // Save the display label as the custom label. QContactName name = mContact.detail<QContactName>(); name.setCustomLabel(newDisplayLabel); mContact.saveDetail(&name); mDisplayLabel = newDisplayLabel; emit displayLabelChanged(); } }
void CntDisplayLabel::updateNameOrdering() { emit displayLabelChanged(); }
PinPopupFloat::PinPopupFloat( QPointF pMousePosition, QSharedPointer<fugio::PinInterface> P ) : mPin( P ), mCenter( pMousePosition ) { connect( P->qobject(), SIGNAL(displayLabelChanged(QString)), this, SLOT(displayLabelChanged(QString)) ); }