blob: 1a58be04e0de63f0f0bb964523bba12100a2145f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// Copyright (C) 2025 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#ifndef COMMON_H
#define COMMON_H
#include <QHash>
#include <QString>
struct PreloadEntry
{
QString source;
QString destination;
bool operator==(const PreloadEntry &other) const
{
return source == other.source && destination == other.destination;
}
};
inline size_t qHash(const PreloadEntry &key, size_t seed = 0)
{
return qHash(key.source, seed) ^ qHash(key.destination, seed);
}
#endif
|