From 04d353236066b9aa85f6387fa05d3d37b75a7dd2 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 25 Sep 2023 12:03:00 +0900 Subject: Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version Signed-off-by: Michele Calgaro (cherry picked from commit 4c0dae60b2fbc60996fc8f4bd29ee6219b869527) --- tdeabc/HOWTO | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tdeabc/HOWTO') 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 -- cgit v1.2.1