summaryrefslogtreecommitdiffstats
path: root/kfile-plugins/desktop
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:22:56 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:22:56 +0000
commit7346aee26bf190a7e70333c40fab4caca847cd27 (patch)
tree4b019b434f88dcc3eeaafe1d3f26240b4c4718e8 /kfile-plugins/desktop
parent23a3d3aa5b44cbdf305495919866d9dbf4f6da54 (diff)
downloadtdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.tar.gz
tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1157634 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kfile-plugins/desktop')
-rw-r--r--kfile-plugins/desktop/kfile_desktop.cpp38
-rw-r--r--kfile-plugins/desktop/kfile_desktop.h4
2 files changed, 21 insertions, 21 deletions
diff --git a/kfile-plugins/desktop/kfile_desktop.cpp b/kfile-plugins/desktop/kfile_desktop.cpp
index 3a78dbc..5c56d9e 100644
--- a/kfile-plugins/desktop/kfile_desktop.cpp
+++ b/kfile-plugins/desktop/kfile_desktop.cpp
@@ -30,8 +30,8 @@ typedef KGenericFactory<KDotDesktopPlugin> DotDesktopFactory;
K_EXPORT_COMPONENT_FACTORY(kfile_desktop, DotDesktopFactory("kfile_desktop"))
-KDotDesktopPlugin::KDotDesktopPlugin(QObject *parent, const char *name,
- const QStringList &preferredItems)
+KDotDesktopPlugin::KDotDesktopPlugin(TQObject *parent, const char *name,
+ const TQStringList &preferredItems)
: KFilePlugin(parent, name, preferredItems)
{
kdDebug(7034) << ".desktop plugin\n";
@@ -43,22 +43,22 @@ KDotDesktopPlugin::KDotDesktopPlugin(QObject *parent, const char *name,
info = addMimeTypeInfo("application/x-desktop");
group = addGroupInfo(info, "General", i18n("General"));
- item = addItemInfo(group, "Name", i18n("Name"), QVariant::String);
+ item = addItemInfo(group, "Name", i18n("Name"), TQVariant::String);
setHint(item, KFileMimeTypeInfo::Name);
- item = addItemInfo(group, "Comment", i18n("Comment"), QVariant::String);
+ item = addItemInfo(group, "Comment", i18n("Comment"), TQVariant::String);
setHint(item, KFileMimeTypeInfo::Description);
- addItemInfo(group, "Type", i18n("Type"), QVariant::String);
+ addItemInfo(group, "Type", i18n("Type"), TQVariant::String);
- addItemInfo(group, "Device", i18n("Device"), QVariant::String);
- addItemInfo(group, "Mount Point", i18n("Mount Point"), QVariant::String);
- addItemInfo(group, "File System", i18n("File System"), QVariant::String);
- addItemInfo(group, "Writable", i18n("Writable"), QVariant::Bool);
+ addItemInfo(group, "Device", i18n("Device"), TQVariant::String);
+ addItemInfo(group, "Mount Point", i18n("Mount Point"), TQVariant::String);
+ addItemInfo(group, "File System", i18n("File System"), TQVariant::String);
+ addItemInfo(group, "Writable", i18n("Writable"), TQVariant::Bool);
- addItemInfo(group, "File Type", i18n("File Type"), QVariant::String);
- addItemInfo(group, "Service Type", i18n("Service Type"), QVariant::String);
- addItemInfo(group, "Preferred Items", i18n("Preferred Items"), QVariant::String);
- addItemInfo(group, "Link To", i18n("Link To"), QVariant::String);
+ addItemInfo(group, "File Type", i18n("File Type"), TQVariant::String);
+ addItemInfo(group, "Service Type", i18n("Service Type"), TQVariant::String);
+ addItemInfo(group, "Preferred Items", i18n("Preferred Items"), TQVariant::String);
+ addItemInfo(group, "Link To", i18n("Link To"), TQVariant::String);
}
bool KDotDesktopPlugin::readInfo( KFileMetaInfo& info, uint )
@@ -68,7 +68,7 @@ bool KDotDesktopPlugin::readInfo( KFileMetaInfo& info, uint )
KDesktopFile file(info.path(), true);
- QString s;
+ TQString s;
KFileMetaInfoGroup group = appendGroup(info, "General");
@@ -78,7 +78,7 @@ bool KDotDesktopPlugin::readInfo( KFileMetaInfo& info, uint )
s = file.readComment();
if (!s.isEmpty()) appendItem(group, "Comment", s);
- QString type = file.readType();
+ TQString type = file.readType();
if (type == "FSDevice")
{
appendItem(group, "Type", i18n("Device"));
@@ -93,7 +93,7 @@ bool KDotDesktopPlugin::readInfo( KFileMetaInfo& info, uint )
if (!s.isEmpty()) appendItem(group, "File System", s);
appendItem(group, "Writable",
- QVariant(!file.readBoolEntry("ReadOnly", true), 42));
+ TQVariant(!file.readBoolEntry("ReadOnly", true), 42));
}
else if (type == "Service")
@@ -107,18 +107,18 @@ bool KDotDesktopPlugin::readInfo( KFileMetaInfo& info, uint )
appendItem(group, "File Type", mt->comment());
}
- QString sType = file.readEntry("ServiceTypes");
+ TQString sType = file.readEntry("ServiceTypes");
appendItem(group, "Service Type", sType);
if (sType == "KFilePlugin")
{
- QStringList preferred = file.readListEntry("PreferredItems");
+ TQStringList preferred = file.readListEntry("PreferredItems");
appendItem(group, "Preferred Items", preferred);
}
}
else if (type == "Link")
{
- QString url = file.readPathEntry("URL");
+ TQString url = file.readPathEntry("URL");
appendItem(group, "Link To", url);
}
diff --git a/kfile-plugins/desktop/kfile_desktop.h b/kfile-plugins/desktop/kfile_desktop.h
index 1001e22..0ef286e 100644
--- a/kfile-plugins/desktop/kfile_desktop.h
+++ b/kfile-plugins/desktop/kfile_desktop.h
@@ -30,8 +30,8 @@ class KDotDesktopPlugin: public KFilePlugin
Q_OBJECT
public:
- KDotDesktopPlugin( QObject *parent, const char *name,
- const QStringList& args );
+ KDotDesktopPlugin( TQObject *parent, const char *name,
+ const TQStringList& args );
virtual bool readInfo ( KFileMetaInfo& info, uint what );
};