diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
commit | ffe8a83e053396df448e9413828527613ca3bd46 (patch) | |
tree | a73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kresources/resource.cpp | |
parent | 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff) | |
download | tdelibs-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 'kresources/resource.cpp')
-rw-r--r-- | kresources/resource.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kresources/resource.cpp b/kresources/resource.cpp index ff30cb552..b9cdd95c4 100644 --- a/kresources/resource.cpp +++ b/kresources/resource.cpp @@ -33,19 +33,19 @@ class Resource::ResourcePrivate { public: #ifdef QT_THREAD_SUPPORT - QMutex mMutex; + TQMutex mMutex; #endif int mOpenCount; - QString mType; - QString mIdentifier; + TQString mType; + TQString mIdentifier; bool mReadOnly; - QString mName; + TQString mName; bool mActive; bool mIsOpen; }; Resource::Resource( const KConfig* config ) - : QObject( 0, "" ), d( new ResourcePrivate ) + : TQObject( 0, "" ), d( new ResourcePrivate ) { d->mOpenCount = 0; d->mIsOpen = false; @@ -86,7 +86,7 @@ bool Resource::open() { d->mIsOpen = true; #ifdef QT_THREAD_SUPPORT - QMutexLocker guard( &(d->mMutex) ); + TQMutexLocker guard( &(d->mMutex) ); #endif if ( !d->mOpenCount ) { kdDebug(5650) << "Opening resource " << resourceName() << endl; @@ -99,7 +99,7 @@ bool Resource::open() void Resource::close() { #ifdef QT_THREAD_SUPPORT - QMutexLocker guard( &(d->mMutex) ); + TQMutexLocker guard( &(d->mMutex) ); #endif if ( !d->mOpenCount ) { kdDebug(5650) << "ERROR: Resource " << resourceName() << " closed more times than previously opened" << endl; @@ -120,22 +120,22 @@ bool Resource::isOpen() const return d->mIsOpen; } -void Resource::setIdentifier( const QString& identifier ) +void Resource::setIdentifier( const TQString& identifier ) { d->mIdentifier = identifier; } -QString Resource::identifier() const +TQString Resource::identifier() const { return d->mIdentifier; } -void Resource::setType( const QString& type ) +void Resource::setType( const TQString& type ) { d->mType = type; } -QString Resource::type() const +TQString Resource::type() const { return d->mType; } @@ -150,12 +150,12 @@ bool Resource::readOnly() const return d->mReadOnly; } -void Resource::setResourceName( const QString &name ) +void Resource::setResourceName( const TQString &name ) { d->mName = name; } -QString Resource::resourceName() const +TQString Resource::resourceName() const { return d->mName; } |