diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /lib/kofficecore/tests/kooasisstoretest.cpp | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/kofficecore/tests/kooasisstoretest.cpp')
-rw-r--r-- | lib/kofficecore/tests/kooasisstoretest.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/kofficecore/tests/kooasisstoretest.cpp b/lib/kofficecore/tests/kooasisstoretest.cpp index 6750904b..be791644 100644 --- a/lib/kofficecore/tests/kooasisstoretest.cpp +++ b/lib/kofficecore/tests/kooasisstoretest.cpp @@ -21,9 +21,9 @@ #include <kdebug.h> #include <assert.h> -void testMimeForPath( QDomDocument& doc ) +void testMimeForPath( TQDomDocument& doc ) { - QString mime = KoOasisStore::mimeForPath( doc, "Object 1" ); + TQString mime = KoOasisStore::mimeForPath( doc, "Object 1" ); kdDebug() << k_funcinfo << mime << endl; assert( !mime.isNull() ); assert( !mime.isEmpty() ); @@ -33,7 +33,7 @@ void testMimeForPath( QDomDocument& doc ) int main( int, char** ) { - const QCString xml = "\ + const TQCString xml = "\ <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\ <manifest:manifest xmlns:manifest=\"urn:oasis:names:tc:opendocument:xmlns:manifest:1.0\">\n\ <manifest:file-entry manifest:media-type=\"application/vnd.oasis.opendocument.text\" manifest:full-path=\"/\"/>\n\ @@ -42,8 +42,8 @@ int main( int, char** ) { </manifest:manifest> \ "; - QDomDocument doc; - QString errorMsg; + TQDomDocument doc; + TQString errorMsg; int errorLine, errorColumn; bool ok = doc.setContent( xml, true /* namespace processing */, &errorMsg, &errorLine, &errorColumn ); if ( !ok ) { |