Commit 2948fabd authored by Halla Rempt's avatar Halla Rempt

BUG:342681 Add a cancel button to the paste messagebox

parent 75c5b372
......@@ -254,7 +254,19 @@ KisPaintDeviceSP KisClipboard::clip(const QRect &imageBounds, bool showPopup)
if (behaviour == PASTE_ASK && showPopup) {
// Ask user each time.
behaviour = QMessageBox::question(0, i18n("Pasting data from simple source"), i18n("The image data you are trying to paste has no color profile information.\n\nOn the web and in simple applications the data are supposed to be in sRGB color format.\nImporting as web will show it as it is supposed to look.\nMost monitors are not perfect though so if you made the image yourself\nyou might want to import it as it looked on you monitor.\n\nHow do you want to interpret these data?"), i18n("As &Web"), i18n("As on &Monitor"));
QMessageBox mb(qApp->activeWindow());
mb.setWindowTitle(i18nc("@title:window", "Pasting data from simple source"));
mb.setText(i18n("The image data you are trying to paste has no color profile information.\n\nOn the web and in simple applications the data are supposed to be in sRGB color format.\nImporting as web will show it as it is supposed to look.\nMost monitors are not perfect though so if you made the image yourself\nyou might want to import it as it looked on you monitor.\n\nHow do you want to interpret these data?"));
mb.addButton(i18n("As &Web"), QMessageBox::AcceptRole);
mb.addButton(i18n("As on &Monitor"), QMessageBox::AcceptRole);
mb.addButton(i18n("Cancel"), QMessageBox::RejectRole);
behaviour = mb.exec();
if (behaviour > 1) {
return 0;
}
}
const KoColorSpace * cs;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment