Loading...
Searching...
No Matches
MimeVisitor.hpp
1#pragma once
3
4#include <QMimeData>
5
6template <typename T>
7struct MimeReader;
8template <typename T>
9struct MimeWriter;
10
11template <typename T>
12struct Mime
13{
16
17 static constexpr SerializationIdentifier type() { return 4; }
18};
19
20// Reads into a QMimeData
22{
23 QMimeData& m_mime;
24 MimeDataReader(QMimeData& p)
25 : m_mime{p}
26 {
27 }
28};
29
30// Writes from a QMimeData to an object.
32{
33 const QMimeData& m_mime;
34 MimeDataWriter(const QMimeData& p)
35 : m_mime{p}
36 {
37 }
38};
Definition MimeVisitor.hpp:22
Definition MimeVisitor.hpp:32
Definition MimeVisitor.hpp:13
Definition MimeVisitor.hpp:7
Definition MimeVisitor.hpp:9