Changeset View
Changeset View
Standalone View
Standalone View
src/akonadi-contacts/textbrowser.cpp
Show First 20 Lines • Show All 108 Lines • ▼ Show 20 Line(s) | 104 | if (charFormat.isImageFormat()) { | |||
---|---|---|---|---|---|
109 | 109 | | |||
110 | QPixmap pix = imageResource.value<QPixmap>(); | 110 | QPixmap pix = imageResource.value<QPixmap>(); | ||
111 | if (!pix.isNull()) { | 111 | if (!pix.isNull()) { | ||
112 | // There may be other images (e.g. contact type icons) that | 112 | // There may be other images (e.g. contact type icons) that | ||
113 | // there is no point in copying. | 113 | // there is no point in copying. | ||
114 | if (imageName == QLatin1String("contact_photo")) { | 114 | if (imageName == QLatin1String("contact_photo")) { | ||
115 | mDataToCopy = pix; | 115 | mDataToCopy = pix; | ||
116 | act->setText(i18nc("@action:inmenu Copy a contact photo", "Copy Photo")); | 116 | act->setText(i18nc("@action:inmenu Copy a contact photo", "Copy Photo")); | ||
117 | } else if (imageName == QLatin1String("datamatrix") | 117 | } else if (imageName == QLatin1String("qrcode")) { | ||
118 | || imageName == QLatin1String("qrcode")) { | | |||
119 | mDataToCopy = pix; | 118 | mDataToCopy = pix; | ||
120 | act->setText(i18nc("@action:inmenu Copy a QR or Datamatrix image", "Copy Code")); | 119 | act->setText(i18nc("@action:inmenu Copy a QR code image", "Copy Code")); | ||
dvratil: You can drop "Datamatrix" from the string here, too | |||||
121 | } | 120 | } | ||
122 | } | 121 | } | ||
123 | } | 122 | } | ||
124 | } else { | 123 | } else { | ||
125 | // Added by our formatter (but not I18N'ed) for a mobile | 124 | // Added by our formatter (but not I18N'ed) for a mobile | ||
126 | // telephone number. See | 125 | // telephone number. See | ||
127 | // kdepim/kaddressbook/grantlee/grantleecontactformatter.cpp and | 126 | // kdepim/kaddressbook/grantlee/grantleecontactformatter.cpp and | ||
128 | // kdepimlibs/akonadi/contact/standardcontactformatter.cpp | 127 | // kdepimlibs/akonadi/contact/standardcontactformatter.cpp | ||
Show All 24 Lines |
You can drop "Datamatrix" from the string here, too