summaryrefslogtreecommitdiffstats
path: root/kparts/tests/ghostview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kparts/tests/ghostview.cpp
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kparts/tests/ghostview.cpp')
-rw-r--r--kparts/tests/ghostview.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kparts/tests/ghostview.cpp b/kparts/tests/ghostview.cpp
index 49736abfc..a1ace7720 100644
--- a/kparts/tests/ghostview.cpp
+++ b/kparts/tests/ghostview.cpp
@@ -8,9 +8,9 @@
#include <kcmdlineargs.h>
#include <klibloader.h>
-#include <qwidget.h>
-#include <qdir.h>
-#include <qfile.h>
+#include <tqwidget.h>
+#include <tqdir.h>
+#include <tqfile.h>
#include <ktrader.h>
@@ -21,9 +21,9 @@ Shell::Shell()
setXMLFile( "ghostviewtest_shell.rc" );
KAction * paOpen = new KAction( "&Open file" , "fileopen", 0, this,
- SLOT( slotFileOpen() ), actionCollection(), "file_open" );
+ TQT_SLOT( slotFileOpen() ), actionCollection(), "file_open" );
- KAction * paQuit = new KAction( "&Quit" , "exit", 0, this, SLOT( close() ), actionCollection(), "file_quit" );
+ KAction * paQuit = new KAction( "&Quit" , "exit", 0, this, TQT_SLOT( close() ), actionCollection(), "file_quit" );
// Try to find a postscript component first
KTrader::OfferList offers = KTrader::self()->query("application/postscript", "('KParts/ReadOnlyPart' in ServiceTypes) or ('Browser/View' in ServiceTypes)");
@@ -35,7 +35,7 @@ Shell::Shell()
{
KService::Ptr ptr = (*it);
- factory = KLibLoader::self()->factory( QFile::encodeName(ptr->library()) );
+ factory = KLibLoader::self()->factory( TQFile::encodeName(ptr->library()) );
if (factory)
{
m_gvpart = static_cast<KParts::ReadOnlyPart *>(factory->create(this, ptr->name().latin1(), "KParts::ReadOnlyPart"));
@@ -85,7 +85,7 @@ void Shell::openURL( const KURL & url )
void Shell::slotFileOpen()
{
- KURL url = KFileDialog::getOpenURL( QString::null, "*.ps|Postscript files (*.ps)", 0L, "file dialog" );
+ KURL url = KFileDialog::getOpenURL( TQString::null, "*.ps|Postscript files (*.ps)", 0L, "file dialog" );
if( !url.isEmpty() )
openURL( url );
@@ -109,7 +109,7 @@ int main( int argc, char **argv )
if ( args->count() == 1 )
{
// Allow full paths, but also simple filenames from current dir
- KURL url( QDir::currentDirPath()+"/", args->arg(0) );
+ KURL url( TQDir::currentDirPath()+"/", args->arg(0) );
shell->openURL( url );
}
shell->show();