From e6077c30d14e9d662e8843c554db86c0d366d0b6 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 6 Jun 2024 13:44:12 +0900 Subject: Rename str nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/listviews-example.html | 42 ++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'doc/html/listviews-example.html') diff --git a/doc/html/listviews-example.html b/doc/html/listviews-example.html index 7b3d668a6..92384609d 100644 --- a/doc/html/listviews-example.html +++ b/doc/html/listviews-example.html @@ -52,7 +52,7 @@ and works like the main window of a mail client. #define LISTVIEWS_H #include <ntqsplitter.h> -#include <ntqstring.h> +#include <tqstring.h> #include <tqobject.h> #include <ntqdatetime.h> #include <tqptrlist.h> @@ -70,19 +70,19 @@ class TQPopupMenu; class MessageHeader { public: - MessageHeader( const TQString &_sender, const TQString &_subject, const TQDateTime &_datetime ) + MessageHeader( const TQString &_sender, const TQString &_subject, const TQDateTime &_datetime ) : msender( _sender ), msubject( _subject ), mdatetime( _datetime ) {} MessageHeader( const MessageHeader &mh ); MessageHeader &operator=( const MessageHeader &mh ); - TQString sender() { return msender; } - TQString subject() { return msubject; } + TQString sender() { return msender; } + TQString subject() { return msubject; } TQDateTime datetime() { return mdatetime; } protected: - TQString msender, msubject; + TQString msender, msubject; TQDateTime mdatetime; }; @@ -95,7 +95,7 @@ public: enum State { Read = 0, Unread}; - Message( const MessageHeader &mh, const TQString &_body ) + Message( const MessageHeader &mh, const TQString &_body ) : mheader( mh ), mbody( _body ), mstate( Unread ) {} @@ -104,14 +104,14 @@ public: {} MessageHeader header() { return mheader; } - TQString body() { return mbody; } + TQString body() { return mbody; } void setState( const State &s ) { mstate = s; } State state() { return mstate; } protected: MessageHeader mheader; - TQString mbody; + TQString mbody; State mstate; }; @@ -123,20 +123,20 @@ class Folder : public TQObject TQ_OBJECT public: - Folder( Folder *parent, const TQString &name ); + Folder( Folder *parent, const TQString &name ); ~Folder() {} void addMessage( Message *m ) { lstMessages.append( m ); } - TQString folderName() { return fName; } + TQString folderName() { return fName; } Message *firstMessage() { return lstMessages.first(); } Message *nextMessage() { return lstMessages.next(); } protected: - TQString fName; + TQString fName; TQPtrList<Message> lstMessages; }; @@ -249,7 +249,7 @@ MessageHeader &MessageHeader::operator=( const MessageHeader &mh ) // ----------------------------------------------------------------- -Folder::Folder( Folder *parent, const TQString &name ) +Folder::Folder( Folder *parent, const TQString &name ) : TQObject( parent, name ), fName( name ) { lstMessages.setAutoDelete( TRUE ); @@ -375,15 +375,15 @@ void ListViews::initFolders() unsigned int mcount = 1; for ( unsigned int i = 1; i < 20; i++ ) { - TQString str; + TQString str; str = TQString( "Folder %1" ).arg( i ); Folder *f = new Folder( 0, str ); for ( unsigned int j = 1; j < 5; j++ ) { - TQString str2; + TQString str2; str2 = TQString( "Sub Folder %1" ).arg( j ); Folder *f2 = new Folder( f, str2 ); for ( unsigned int k = 1; k < 3; k++ ) { - TQString str3; + TQString str3; str3 = TQString( "Sub Sub Folder %1" ).arg( k ); Folder *f3 = new Folder( f2, str3 ); initFolder( f3, mcount ); @@ -396,13 +396,13 @@ void ListViews::initFolders() void ListViews::initFolder( Folder *folder, unsigned int &count ) { for ( unsigned int i = 0; i < 15; i++, count++ ) { - TQString str; + TQString str; str = TQString( "Message %1 " ).arg( count ); TQDateTime dt = TQDateTime::currentDateTime(); dt = dt.addSecs( 60 * count ); MessageHeader mh( "Trolltech <info@trolltech.com> ", str, dt ); - TQString body; + TQString body; body = TQString( "This is the message number %1 of this application, \n" "which shows how to use TQListViews, TQListViewItems, \n" "TQSplitters and so on. The code should show how easy\n" @@ -455,10 +455,10 @@ void ListViews::slotMessageChanged() MessageListItem *item = ( MessageListItem* )i; Message *msg = item->message(); - TQString text; - TQString tmp = msg->header().sender(); - tmp = tmp.replace( "<", "&lt;" ); - tmp = tmp.replace( ">", "&gt;" ); + TQString text; + TQString tmp = msg->header().sender(); + tmp = tmp.replace( "<", "&lt;" ); + tmp = tmp.replace( ">", "&gt;" ); text = TQString( "<b><i>From:</i></b> <a href=\"mailto:info@trolltech.com\">%1</a><br>" "<b><i>Subject:</i></b> <big><big><b>%2</b></big></big><br>" "<b><i>Date:</i></b> %3<br><br>" -- cgit v1.2.3