Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_paintop_lod_limitations.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2015 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef __KIS_PAINTOP_LOD_LIMITATIONS_H
8#define __KIS_PAINTOP_LOD_LIMITATIONS_H
9
10#include <KoID.h>
11#include <QMetaType>
12#include <boost/operators.hpp>
13
14inline uint qHash(const KoID &id) {
15 return qHash(id.id());
16}
17
19 : public boost::orable<KisPaintopLodLimitations>,
20 public boost::equality_comparable<KisPaintopLodLimitations>
21{
22public:
23 inline friend bool operator==(const KisPaintopLodLimitations &lhs, const KisPaintopLodLimitations &rhs) {
24 return lhs.limitations == rhs.limitations &&
25 lhs.blockers == rhs.blockers;
26 }
27
30 blockers |= rhs.blockers;
31 return *this;
32 }
33
34 QSet<KoID> limitations;
35 QSet<KoID> blockers;
36};
37
39
40#endif /* __KIS_PAINTOP_LOD_LIMITATIONS_H */
unsigned int uint
KisPaintopLodLimitations & operator|=(const KisPaintopLodLimitations &rhs)
friend bool operator==(const KisPaintopLodLimitations &lhs, const KisPaintopLodLimitations &rhs)
Definition KoID.h:30
Q_DECLARE_METATYPE(KisPaintopLodLimitations)
uint qHash(const KoID &id)