summaryrefslogtreecommitdiffhomepage
path: root/compat/tr.hpp
blob: 4504f791797eae5ce7606c3b727f178a80f0a0de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once

#include <QObject>

// The class does nothing except provide a fake assignment operator for QObject
// It's meant to be used inside classes that need i18n support but are returned by value.

struct TR : QObject
{
    TR() = default;
    TR(const TR&) {}

    TR& operator=(const TR&) { return *this; }
};