[calligra] krita/ui: Temporarily disable paste limit dialog
Lukast dev
lukast.dev at gmail.com
Sun Apr 1 19:02:50 UTC 2012
Maybe we can display the dialog depending on the available memory?
What are your opinions here?
Dňa 29. marca 2012 14:16, Boudewijn Rempt <boud at valdyas.org> napísal/a:
> Git commit 3db6648b21fd7fc2059eef33f59d28d3f1ed4437 by Boudewijn Rempt.
> Committed on 29/03/2012 at 14:16.
> Pushed by rempt into branch 'master'.
>
> Temporarily disable paste limit dialog
>
> CCBUG:297030
>
> M +12 -12 krita/ui/kis_clipboard.cc
>
> http://commits.kde.org/calligra/3db6648b21fd7fc2059eef33f59d28d3f1ed4437
>
> diff --git a/krita/ui/kis_clipboard.cc b/krita/ui/kis_clipboard.cc
> index 7189870..75c9b53 100644
> --- a/krita/ui/kis_clipboard.cc
> +++ b/krita/ui/kis_clipboard.cc
> @@ -143,20 +143,20 @@ void KisClipboard::setClip(KisPaintDeviceSP dev, const QPoint& topLeft)
> mimeData->setData(mimeType, buffer.buffer());
> }
>
> - QRect rc = dev->exactBounds();
> +// QRect rc = dev->exactBounds();
> // warn if the clip is over ten megapixels
> bool makeExchangeClip = true;
> - if (rc.width() * rc.height() > 10 * 1024 * 1024) {
> - makeExchangeClip =
> - (KMessageBox::Continue ==
> - KMessageBox::warningContinueCancel(0,
> - i18n("You are putting more than 10 megapixels on the clipboard."
> - " Do you want to make this data available to other applications as well?"),
> - i18n("Krita"),
> - KStandardGuiItem::cont(),
> - KStandardGuiItem::cancel(),
> - "krita_big_clip_on_clipboard"));
> - }
> +// if (rc.width() * rc.height() > 10 * 1024 * 1024) {
> +// makeExchangeClip =
> +// (KMessageBox::Continue ==
> +// KMessageBox::warningContinueCancel(0,
> +// i18n("You are putting more than 10 megapixels on the clipboard."
> +// " Do you want to make this data available to other applications as well?"),
> +// i18n("Krita"),
> +// KStandardGuiItem::cont(),
> +// KStandardGuiItem::cancel(),
> +// "krita_big_clip_on_clipboard"));
> +// }
>
> // We also create a QImage so we can interchange with other applications
> if (makeExchangeClip) {
More information about the kimageshop
mailing list