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 /libk3b/projects/k3bdoc.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 'libk3b/projects/k3bdoc.cpp')
-rw-r--r-- | libk3b/projects/k3bdoc.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/libk3b/projects/k3bdoc.cpp b/libk3b/projects/k3bdoc.cpp index ac5346d..29648a7 100644 --- a/libk3b/projects/k3bdoc.cpp +++ b/libk3b/projects/k3bdoc.cpp @@ -14,10 +14,10 @@ */ -// include files for Qt -#include <qwidget.h> -#include <qstring.h> -#include <qdom.h> +// include files for TQt +#include <tqwidget.h> +#include <tqstring.h> +#include <tqdom.h> // include files for KDE #include <klocale.h> @@ -40,12 +40,12 @@ #include <k3bdevicemanager.h> -K3bDoc::K3bDoc( QObject* parent ) - : QObject( parent ), +K3bDoc::K3bDoc( TQObject* tqparent ) + : TQObject( tqparent ), m_modified(false), m_view(0) { - connect( this, SIGNAL(changed()), this, SLOT(slotChanged()) ); + connect( this, TQT_SIGNAL(changed()), this, TQT_SLOT(slotChanged()) ); } @@ -107,7 +107,7 @@ const KURL& K3bDoc::URL() const } -QString K3bDoc::name() const +TQString K3bDoc::name() const { return URL().path().section( '/', -1 ); } @@ -132,12 +132,12 @@ bool K3bDoc::newDocument() } -bool K3bDoc::saveGeneralDocumentData( QDomElement* part ) +bool K3bDoc::saveGeneralDocumentData( TQDomElement* part ) { - QDomDocument doc = part->ownerDocument(); - QDomElement mainElem = doc.createElement( "general" ); + TQDomDocument doc = part->ownerDocument(); + TQDomElement mainElem = doc.createElement( "general" ); - QDomElement propElem = doc.createElement( "writing_mode" ); + TQDomElement propElem = doc.createElement( "writing_mode" ); switch( writingMode() ) { case K3b::DAO: propElem.appendChild( doc.createTextNode( "dao" ) ); @@ -176,20 +176,20 @@ bool K3bDoc::saveGeneralDocumentData( QDomElement* part ) } -bool K3bDoc::readGeneralDocumentData( const QDomElement& elem ) +bool K3bDoc::readGeneralDocumentData( const TQDomElement& elem ) { if( elem.nodeName() != "general" ) return false; - QDomNodeList nodes = elem.childNodes(); + TQDomNodeList nodes = elem.childNodes(); for( uint i = 0; i < nodes.count(); i++ ) { - QDomElement e = nodes.item(i).toElement(); + TQDomElement e = nodes.item(i).toElement(); if( e.isNull() ) return false; if( e.nodeName() == "writing_mode") { - QString mode = e.text(); + TQString mode = e.text(); if( mode == "dao" ) setWritingMode( K3b::DAO ); else if( mode == "tao" ) |