File indexing completed on 2025-01-05 04:26:49
0001 /* 0002 * Replacement fot QT Bindings that were removed from QT5 0003 * Copyright (C) 2020 Pedro de Carvalho Gomes <pedrogomes81@gmail.com> 0004 * 0005 * This program is free software: you can redistribute it and/or modify 0006 * it under the terms of the GNU General Public License as published by 0007 * the Free Software Foundation, either version 3 of the License, or 0008 * (at your option) any later version. 0009 * 0010 * This program is distributed in the hope that it will be useful, 0011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0013 * GNU General Public License for more details. 0014 * 0015 * You should have received a copy of the GNU General Public License 0016 * along with this program. If not, see <http://www.gnu.org/licenses/>. 0017 */ 0018 0019 #include "CoreTranslator.h" 0020 0021 using namespace QtBindings::Core; 0022 0023 Translator::Translator(QObject *parent) : QTranslator(parent) 0024 { 0025 0026 } 0027 0028 Translator::Translator(const Translator &other) : QTranslator() 0029 { 0030 Q_UNUSED(other); 0031 } 0032 0033 QString Translator::translate(const char *context, const char *sourceText, 0034 const char *disambiguation, int n) const 0035 { 0036 return QTranslator::translate(context, sourceText, disambiguation, n); 0037 } 0038 0039 bool Translator::isEmpty() const 0040 { 0041 return QTranslator::isEmpty(); 0042 } 0043 0044 bool Translator::load(const QString &filename, const QString &directory, 0045 const QString &search_delimiters, const QString &suffix) 0046 { 0047 return QTranslator::load(filename, directory, search_delimiters, suffix); 0048 } 0049 0050 bool 0051 Translator::load(const QLocale &locale, const QString &filename, const QString &prefix, 0052 const QString &directory, const QString &suffix) 0053 { 0054 return QTranslator::load(locale, filename, prefix, directory, suffix); 0055 } 0056 0057 bool Translator::load(const uchar *data, int len, const QString &directory) 0058 { 0059 return QTranslator::load(data, len, directory); 0060 } 0061 0062 Translator &Translator::operator=(const Translator &other) 0063 { 0064 Q_UNUSED(other); 0065 /* Nothing to do here */ 0066 return *this; 0067 } 0068