D12321: Hide file preview when icon is too small

Elvis Angelaccio noreply at phabricator.kde.org
Sun Apr 29 17:22:36 UTC 2018


elvisangelaccio added inline comments.

INLINE COMMENTS

> kdiroperator.cpp:2589
> +
> +    KToggleAction *previewAction = static_cast<KToggleAction *>(actionCollection->action(QStringLiteral("inline preview")));
> +    previewAction->setEnabled(iconSizeBigEnoughForPreview);

`qobject_cast`

> kdiroperator.cpp:2595
> +    } else {
> +        previewAction->setToolTip(i18n("Previews are automatically disabled for small icon sizes"));
> +    }

Maybe we can also add an hint about how to actually show the previews? (i.e. the fact that the user needs to increase the icon size).

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D12321

To: anemeth, #vdg, #frameworks, ngraham, rkflx, #dolphin, markg
Cc: elvisangelaccio, markg, xyquadrat, sharvey, rkflx, ngraham, #frameworks, michaelh, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180429/a8a5e8e7/attachment.html>


More information about the Kde-frameworks-devel mailing list