diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-09-25 12:03:00 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-09-25 12:29:31 +0900 |
commit | 4c0dae60b2fbc60996fc8f4bd29ee6219b869527 (patch) | |
tree | 6aa583e34395f4d19d4b85f081b31513e5c9c19d /tdeabc/HOWTO | |
parent | 066f257eadc5866386c2cfbdba1a93105cff67ae (diff) | |
download | tdelibs-4c0dae60b2fbc60996fc8f4bd29ee6219b869527.tar.gz tdelibs-4c0dae60b2fbc60996fc8f4bd29ee6219b869527.zip |
Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdeabc/HOWTO')
-rw-r--r-- | tdeabc/HOWTO | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tdeabc/HOWTO b/tdeabc/HOWTO index 1070ccd4c..199e48646 100644 --- a/tdeabc/HOWTO +++ b/tdeabc/HOWTO @@ -169,7 +169,7 @@ The following code will create a file resource and save a contact into it: 39: 40: // PHOTO or LOGO 41: TDEABC::Picture photo; -42: QImage img; +42: TQImage img; 43: if ( img.load( "face.png", "PNG" ) ) { 44: photo.setData( img ); 45: photo.setType( "image/png" ); @@ -252,10 +252,10 @@ as argument. In line 41 we make use of TDEABC::Picture class to store the photo of the contact. This class can contain either an URL or the raw image data in form -of a QImage, in this example we use the latter. +of a TQImage, in this example we use the latter. In line 43 we try to load the image "face.png" from the local directory and -assign this QImage to the TDEABC::Picture class via the setData() function. +assign this TQImage to the TDEABC::Picture class via the setData() function. Additionally we set the type of the picture to "image/png". From 49 - 50 we insert 2 email addresses with the first one as preferred @@ -337,7 +337,7 @@ representation of one list. 12: QStringList emails = list->emails(); 13: QStringList::Iterator eit; 14: for ( eit = emails.begin(); eit != emails.end(); ++eit ) -15: kdDebug() << QString( "\t%1" ).arg( (*eit).latin1() ) << endl; +15: kdDebug() << TQString( "\t%1" ).arg( (*eit).latin1() ) << endl; 16: } In the first line a TDEABC::DistributionListManager is created. The manager takes |