diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2021-10-30 13:47:29 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2021-10-30 13:47:29 +0900 |
commit | e8494e60efeb94c67c813d1c1c038031915e8c17 (patch) | |
tree | 3238b3e8ceeb577a8eda00da66704c7e5fc6f9f5 /core/polkitqt1-details.cpp | |
parent | 28de2ff84f59ac0b173670aa9c5331bc77c1e63f (diff) | |
download | polkit-tqt-e8494e60efeb94c67c813d1c1c038031915e8c17.tar.gz polkit-tqt-e8494e60efeb94c67c813d1c1c038031915e8c17.zip |
Raw Qt->TQt conversion using tde/scripts/conversions/qt3-tqt3/convert_existing_qt3_app_to_tqt3.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'core/polkitqt1-details.cpp')
-rw-r--r-- | core/polkitqt1-details.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/core/polkitqt1-details.cpp b/core/polkitqt1-details.cpp index e1d0f315d..65d028b26 100644 --- a/core/polkitqt1-details.cpp +++ b/core/polkitqt1-details.cpp @@ -20,19 +20,19 @@ #include "polkitqt1-details.h" -#include <QtCore/QStringList> +#include <TQtCore/TQStringList> #include <polkit/polkit.h> -namespace PolkitQt1 +namespace PolkitTQt1 { -class Details::Data : public QSharedData +class Details::Data : public TQSharedData { public: Data() {} Data(const Data &other) - : QSharedData(other) + : TQSharedData(other) , polkitDetails(other.polkitDetails) { g_object_ref(polkitDetails); @@ -63,34 +63,34 @@ Details::~Details() { } -Details& Details::operator=(const PolkitQt1::Details& other) +Details& Details::operator=(const PolkitTQt1::Details& other) { d = other.d; return *this; } -QString Details::lookup(const QString &key) const +TQString Details::lookup(const TQString &key) const { const gchar *result = polkit_details_lookup(d->polkitDetails, key.toUtf8().data()); if (result != NULL) { - return QString::fromUtf8(result); + return TQString::fromUtf8(result); } else { - return QString(); + return TQString(); } } -void Details::insert(const QString &key, const QString &value) +void Details::insert(const TQString &key, const TQString &value) { polkit_details_insert(d->polkitDetails, key.toUtf8().data(), value.toUtf8().data()); } -QStringList Details::keys() const +TQStringList Details::keys() const { gchar **result = polkit_details_get_keys(d->polkitDetails); - QStringList list; + TQStringList list; int len = g_strv_length(result); for (int i = 0; i < len; i++) { - list.append(QString::fromUtf8(result[i])); + list.append(TQString::fromUtf8(result[i])); } g_strfreev(result); return list; |