Skip to content
Commit f0a57e09 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Refactor preview handling

The main motivation is to better separate the codepaths for the internal
and external preview. This will make it easier to move away from
KMimeTypeTrader since then the internal preview codepath will use
KPluginMetaData instead of KService while the external one will still
use KService.

Extract the finding and opening of both the internal and external
preview as well as the plain text message box into separate functions.

That makes the logic of ArkViewer::view easier to follow.
parent 44d66bb3
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