diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-13 08:32:36 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-13 08:32:36 +0000 |
commit | f7e71d47719ab6094cf4a9fafffa5ea351973522 (patch) | |
tree | 30834aa632d442019e14f88685001d94657d060b /kdeui/kcolordrag.cpp | |
parent | b31cfd9a1ee986fe2ae9a693f3afd7f171dd897c (diff) | |
download | tdelibs-f7e71d47719ab6094cf4a9fafffa5ea351973522.tar.gz tdelibs-f7e71d47719ab6094cf4a9fafffa5ea351973522.zip |
Initial conversion for TQt for Qt4 3.4.0 TP2
This will also compile with TQt for Qt3, and should not cause any problems
with dependent modules such as kdebase. If it does then it needs to be fixed!
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1214149 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeui/kcolordrag.cpp')
-rw-r--r-- | kdeui/kcolordrag.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kdeui/kcolordrag.cpp b/kdeui/kcolordrag.cpp index 1c56d9ccd..978130fcd 100644 --- a/kdeui/kcolordrag.cpp +++ b/kdeui/kcolordrag.cpp @@ -40,7 +40,7 @@ void KColorDrag::setColor( const TQColor &color) { TQColorDrag tmp(color, 0, 0); - setEncodedData(tmp.encodedData(color_mime_string)); + setEncodedData(tmp.tqencodedData(color_mime_string)); TQPixmap colorpix( 25, 20); colorpix.fill( color); @@ -59,17 +59,17 @@ const char *KColorDrag::format(int i) const return TQStoredDrag::format(i); } -TQByteArray KColorDrag::encodedData ( const char * m ) const +TQByteArray KColorDrag::tqencodedData ( const char * m ) const { if (!qstrcmp(m, text_mime_string) ) { TQColor color; TQColorDrag::decode(const_cast<KColorDrag *>(this), color); - TQCString result = color.name().latin1(); + TQCString result = TQString(color.name()).latin1(); ((TQByteArray&)result).resize(result.length()); return result; } - return TQStoredDrag::encodedData(m); + return TQStoredDrag::tqencodedData(m); } bool @@ -91,8 +91,8 @@ KColorDrag::decode( TQMimeSource *e, TQColor &color) if (TQColorDrag::decode(e, color)) return true; - TQByteArray data = e->encodedData( text_mime_string); - TQString colorName = TQString::fromLatin1(data.data(), data.size()); + TQByteArray data = e->tqencodedData( text_mime_string); + TQString colorName = TQString::tqfromLatin1(data.data(), data.size()); if ((colorName.length() < 4) || (colorName[0] != '#')) return false; color.setNamedColor(colorName); |