diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 19:21:21 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 19:21:21 +0000 |
commit | d8cc8bdfa7fa624a526d5aa1626974e1444cb799 (patch) | |
tree | f295f1c545b319963d5357af79fe08991d8141d9 /src/k3bprojectinterface.cpp | |
parent | 2a39a080579fb52a2599c02b2939795385b89093 (diff) | |
download | k3b-d8cc8bdfa7fa624a526d5aa1626974e1444cb799.tar.gz k3b-d8cc8bdfa7fa624a526d5aa1626974e1444cb799.zip |
TQt4 port k3b
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k3b@1233803 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/k3bprojectinterface.cpp')
-rw-r--r-- | src/k3bprojectinterface.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/k3bprojectinterface.cpp b/src/k3bprojectinterface.cpp index 46968fd..9eafe1e 100644 --- a/src/k3bprojectinterface.cpp +++ b/src/k3bprojectinterface.cpp @@ -23,14 +23,14 @@ #include <k3bdevicemanager.h> #include <k3bjob.h> -#include <qtimer.h> +#include <tqtimer.h> //static -QCString K3bProjectInterface::newIfaceName() +TQCString K3bProjectInterface::newIfaceName() { static int s_docIFNumber = 0; - QCString name; + TQCString name; name.setNum( s_docIFNumber++ ); name.prepend("K3bProject-"); return name; @@ -38,7 +38,7 @@ QCString K3bProjectInterface::newIfaceName() K3bProjectInterface::K3bProjectInterface( K3bDoc* doc, const char* name ) - : DCOPObject( name ? QCString(name) : newIfaceName() ), + : DCOPObject( name ? TQCString(name) : newIfaceName() ), m_doc( doc ) { } @@ -48,12 +48,12 @@ K3bProjectInterface::~K3bProjectInterface() { } -void K3bProjectInterface::addUrls( const QStringList& urls ) +void K3bProjectInterface::addUrls( const TQStringList& urls ) { m_doc->addUrls( KURL::List(urls) ); } -void K3bProjectInterface::addUrl( const QString& url ) +void K3bProjectInterface::addUrl( const TQString& url ) { m_doc->addUrl( KURL(url) ); } @@ -61,7 +61,7 @@ void K3bProjectInterface::addUrl( const QString& url ) void K3bProjectInterface::burn() { // we want to return this method immediately - QTimer::singleShot( 0, m_doc->view(), SLOT(slotBurn()) ); + TQTimer::singleShot( 0, m_doc->view(), TQT_SLOT(slotBurn()) ); } @@ -88,7 +88,7 @@ bool K3bProjectInterface::directBurn() } -void K3bProjectInterface::setBurnDevice( const QString& name ) +void K3bProjectInterface::setBurnDevice( const TQString& name ) { if( K3bDevice::Device* dev = k3bcore->deviceManager()->findDevice( name ) ) m_doc->setBurner( dev ); @@ -107,13 +107,13 @@ KIO::filesize_t K3bProjectInterface::size() const } -const QString& K3bProjectInterface::imagePath() const +const TQString& K3bProjectInterface::imagePath() const { return m_doc->tempDir(); } -QString K3bProjectInterface::projectType() const +TQString K3bProjectInterface::projectType() const { switch( m_doc->type() ) { case K3bDoc::AUDIO: |