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 /kabc/picture.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 'kabc/picture.cpp')
-rw-r--r-- | kabc/picture.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kabc/picture.cpp b/kabc/picture.cpp index d0b79c89a..4ddd3f537 100644 --- a/kabc/picture.cpp +++ b/kabc/picture.cpp @@ -27,12 +27,12 @@ Picture::Picture() { } -Picture::Picture( const QString &url ) +Picture::Picture( const TQString &url ) : mUrl( url ), mIntern( false ) { } -Picture::Picture( const QImage &data ) +Picture::Picture( const TQImage &data ) : mData( data ), mIntern( true ) { } @@ -61,19 +61,19 @@ bool Picture::operator!=( const Picture &p ) const return !( p == *this ); } -void Picture::setUrl( const QString &url ) +void Picture::setUrl( const TQString &url ) { mUrl = url; mIntern = false; } -void Picture::setData( const QImage &data ) +void Picture::setData( const TQImage &data ) { mData = data; mIntern = true; } -void Picture::setType( const QString &type ) +void Picture::setType( const TQString &type ) { mType = type; } @@ -83,22 +83,22 @@ bool Picture::isIntern() const return mIntern; } -QString Picture::url() const +TQString Picture::url() const { return mUrl; } -QImage Picture::data() const +TQImage Picture::data() const { return mData; } -QString Picture::type() const +TQString Picture::type() const { return mType; } -QString Picture::asString() const +TQString Picture::asString() const { if ( mIntern ) return "intern picture"; @@ -106,13 +106,13 @@ QString Picture::asString() const return mUrl; } -QDataStream &KABC::operator<<( QDataStream &s, const Picture &picture ) +TQDataStream &KABC::operator<<( TQDataStream &s, const Picture &picture ) { return s << picture.mIntern << picture.mUrl << picture.mType; // return s << picture.mIntern << picture.mUrl << picture.mType << picture.mData; } -QDataStream &KABC::operator>>( QDataStream &s, Picture &picture ) +TQDataStream &KABC::operator>>( TQDataStream &s, Picture &picture ) { s >> picture.mIntern >> picture.mUrl >> picture.mType; // s >> picture.mIntern >> picture.mUrl >> picture.mType >> picture.mData; |