@ -279,6 +279,7 @@ FilteredTextEdit::canInsertFromMimeData(const QMimeData *source) const
void
FilteredTextEdit::insertFromMimeData(const QMimeData *source)
{
qInfo() << "Got mime formats: \n" << source->formats();
const auto formats = source->formats().filter("/");
const auto image = formats.filter("image/", Qt::CaseInsensitive);
const auto audio = formats.filter("audio/", Qt::CaseInsensitive);
@ -136,6 +136,11 @@ PreviewUploadOverlay::setLabels(const QString &type, const QString &mime, uint64
PreviewUploadOverlay::setPreview(const QImage &src, const QString &mime)
nhlog::ui()->info("Pasting image with size: {}x{}, format: {}",
src.height(),
src.width(),
mime.toStdString());
auto const &split = mime.split('/');
auto const &type = split[1];