diff options
Diffstat (limited to 'doc/html/listviews-example.html')
-rw-r--r-- | doc/html/listviews-example.html | 42 |
1 files changed, 21 insertions, 21 deletions
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 <<a href="qsplitter-h.html">ntqsplitter.h</a>> -#include <<a href="qstring-h.html">ntqstring.h</a>> +#include <<a href="tqstring-h.html">tqstring.h</a>> #include <<a href="tqobject-h.html">tqobject.h</a>> #include <<a href="qdatetime-h.html">ntqdatetime.h</a>> #include <<a href="tqptrlist-h.html">tqptrlist.h</a>> @@ -70,19 +70,19 @@ class TQPopupMenu; class MessageHeader { public: - MessageHeader( const <a href="ntqstring.html">TQString</a> &_sender, const <a href="ntqstring.html">TQString</a> &_subject, const <a href="ntqdatetime.html">TQDateTime</a> &_datetime ) + MessageHeader( const <a href="tqstring.html">TQString</a> &_sender, const <a href="tqstring.html">TQString</a> &_subject, const <a href="ntqdatetime.html">TQDateTime</a> &_datetime ) : msender( _sender ), msubject( _subject ), mdatetime( _datetime ) {} MessageHeader( const MessageHeader &mh ); MessageHeader &operator=( const MessageHeader &mh ); - <a href="ntqstring.html">TQString</a> sender() { return msender; } - <a href="ntqstring.html">TQString</a> subject() { return msubject; } + <a href="tqstring.html">TQString</a> sender() { return msender; } + <a href="tqstring.html">TQString</a> subject() { return msubject; } <a href="ntqdatetime.html">TQDateTime</a> datetime() { return mdatetime; } protected: - <a href="ntqstring.html">TQString</a> msender, msubject; + <a href="tqstring.html">TQString</a> msender, msubject; <a href="ntqdatetime.html">TQDateTime</a> mdatetime; }; @@ -95,7 +95,7 @@ public: enum State { Read = 0, Unread}; - Message( const MessageHeader &mh, const <a href="ntqstring.html">TQString</a> &_body ) + Message( const MessageHeader &mh, const <a href="tqstring.html">TQString</a> &_body ) : mheader( mh ), mbody( _body ), mstate( Unread ) {} @@ -104,14 +104,14 @@ public: {} MessageHeader header() { return mheader; } - <a href="ntqstring.html">TQString</a> body() { return mbody; } + <a href="tqstring.html">TQString</a> body() { return mbody; } void setState( const State &s ) { mstate = s; } State state() { return mstate; } protected: MessageHeader mheader; - <a href="ntqstring.html">TQString</a> mbody; + <a href="tqstring.html">TQString</a> mbody; State mstate; }; @@ -123,20 +123,20 @@ class Folder : public <a href="tqobject.html">TQObject</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a> public: - Folder( Folder *parent, const <a href="ntqstring.html">TQString</a> &name ); + Folder( Folder *parent, const <a href="tqstring.html">TQString</a> &name ); ~Folder() {} void addMessage( Message *m ) <a name="x131"></a> { lstMessages.<a href="tqptrlist.html#append">append</a>( m ); } - <a href="ntqstring.html">TQString</a> folderName() { return fName; } + <a href="tqstring.html">TQString</a> folderName() { return fName; } <a name="x132"></a> Message *firstMessage() { return lstMessages.<a href="tqptrlist.html#first">first</a>(); } <a name="x133"></a> Message *nextMessage() { return lstMessages.<a href="tqptrlist.html#next">next</a>(); } protected: - <a href="ntqstring.html">TQString</a> fName; + <a href="tqstring.html">TQString</a> fName; <a href="tqptrlist.html">TQPtrList</a><Message> lstMessages; }; @@ -249,7 +249,7 @@ MessageHeader &MessageHeader::operator=( const MessageHeader &mh ) // ----------------------------------------------------------------- -<a name="f208"></a>Folder::Folder( Folder *parent, const <a href="ntqstring.html">TQString</a> &name ) +<a name="f208"></a>Folder::Folder( Folder *parent, const <a href="tqstring.html">TQString</a> &name ) : <a href="tqobject.html">TQObject</a>( parent, name ), fName( name ) { lstMessages.setAutoDelete( TRUE ); @@ -375,15 +375,15 @@ void <a name="f212"></a>ListViews::initFolders() unsigned int mcount = 1; for ( unsigned int i = 1; i < 20; i++ ) { - <a href="ntqstring.html">TQString</a> str; + <a href="tqstring.html">TQString</a> str; str = TQString( "Folder %1" ).arg( i ); Folder *f = new Folder( 0, str ); for ( unsigned int j = 1; j < 5; j++ ) { - <a href="ntqstring.html">TQString</a> str2; + <a href="tqstring.html">TQString</a> str2; str2 = TQString( "Sub Folder %1" ).arg( j ); Folder *f2 = new Folder( f, str2 ); for ( unsigned int k = 1; k < 3; k++ ) { - <a href="ntqstring.html">TQString</a> str3; + <a href="tqstring.html">TQString</a> str3; str3 = TQString( "Sub Sub Folder %1" ).arg( k ); Folder *f3 = new Folder( f2, str3 ); initFolder( f3, mcount ); @@ -396,13 +396,13 @@ void <a name="f212"></a>ListViews::initFolders() void <a name="f213"></a>ListViews::initFolder( Folder *folder, unsigned int &count ) { for ( unsigned int i = 0; i < 15; i++, count++ ) { - <a href="ntqstring.html">TQString</a> str; + <a href="tqstring.html">TQString</a> str; str = TQString( "Message %1 " ).arg( count ); <a name="x137"></a> <a href="ntqdatetime.html">TQDateTime</a> dt = TQDateTime::<a href="ntqdatetime.html#currentDateTime">currentDateTime</a>(); <a name="x136"></a> dt = dt.<a href="ntqdatetime.html#addSecs">addSecs</a>( 60 * count ); MessageHeader mh( "Trolltech <info@trolltech.com> ", str, dt ); - <a href="ntqstring.html">TQString</a> body; + <a href="tqstring.html">TQString</a> 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 <a name="f217"></a>ListViews::slotMessageChanged() MessageListItem *item = ( MessageListItem* )i; Message *msg = item->message(); - <a href="ntqstring.html">TQString</a> text; - <a href="ntqstring.html">TQString</a> tmp = msg->header().sender(); -<a name="x162"></a> tmp = tmp.<a href="ntqstring.html#replace">replace</a>( "<", "&lt;" ); - tmp = tmp.<a href="ntqstring.html#replace">replace</a>( ">", "&gt;" ); + <a href="tqstring.html">TQString</a> text; + <a href="tqstring.html">TQString</a> tmp = msg->header().sender(); +<a name="x162"></a> tmp = tmp.<a href="tqstring.html#replace">replace</a>( "<", "&lt;" ); + tmp = tmp.<a href="tqstring.html#replace">replace</a>( ">", "&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>" |