summaryrefslogtreecommitdiffstats
path: root/doc/html/listviews-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/listviews-example.html')
-rw-r--r--doc/html/listviews-example.html42
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 &lt;<a href="qsplitter-h.html">ntqsplitter.h</a>&gt;
-#include &lt;<a href="qstring-h.html">ntqstring.h</a>&gt;
+#include &lt;<a href="tqstring-h.html">tqstring.h</a>&gt;
#include &lt;<a href="tqobject-h.html">tqobject.h</a>&gt;
#include &lt;<a href="qdatetime-h.html">ntqdatetime.h</a>&gt;
#include &lt;<a href="tqptrlist-h.html">tqptrlist.h</a>&gt;
@@ -70,19 +70,19 @@ class TQPopupMenu;
class MessageHeader
{
public:
- MessageHeader( const <a href="ntqstring.html">TQString</a> &amp;_sender, const <a href="ntqstring.html">TQString</a> &amp;_subject, const <a href="ntqdatetime.html">TQDateTime</a> &amp;_datetime )
+ MessageHeader( const <a href="tqstring.html">TQString</a> &amp;_sender, const <a href="tqstring.html">TQString</a> &amp;_subject, const <a href="ntqdatetime.html">TQDateTime</a> &amp;_datetime )
: msender( _sender ), msubject( _subject ), mdatetime( _datetime )
{}
MessageHeader( const MessageHeader &amp;mh );
MessageHeader &amp;operator=( const MessageHeader &amp;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 &amp;mh, const <a href="ntqstring.html">TQString</a> &amp;_body )
+ Message( const MessageHeader &amp;mh, const <a href="tqstring.html">TQString</a> &amp;_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 &amp;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> &amp;name );
+ Folder( Folder *parent, const <a href="tqstring.html">TQString</a> &amp;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>&lt;Message&gt; lstMessages;
};
@@ -249,7 +249,7 @@ MessageHeader &amp;MessageHeader::operator=( const MessageHeader &amp;mh )
// -----------------------------------------------------------------
-<a name="f208"></a>Folder::Folder( Folder *parent, const <a href="ntqstring.html">TQString</a> &amp;name )
+<a name="f208"></a>Folder::Folder( Folder *parent, const <a href="tqstring.html">TQString</a> &amp;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 &lt; 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 &lt; 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 &lt; 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 &amp;count )
{
for ( unsigned int i = 0; i &lt; 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 &lt;info@trolltech.com&gt; ", 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-&gt;message();
- <a href="ntqstring.html">TQString</a> text;
- <a href="ntqstring.html">TQString</a> tmp = msg-&gt;header().sender();
-<a name="x162"></a> tmp = tmp.<a href="ntqstring.html#replace">replace</a>( "&lt;", "&amp;lt;" );
- tmp = tmp.<a href="ntqstring.html#replace">replace</a>( "&gt;", "&amp;gt;" );
+ <a href="tqstring.html">TQString</a> text;
+ <a href="tqstring.html">TQString</a> tmp = msg-&gt;header().sender();
+<a name="x162"></a> tmp = tmp.<a href="tqstring.html#replace">replace</a>( "&lt;", "&amp;lt;" );
+ tmp = tmp.<a href="tqstring.html#replace">replace</a>( "&gt;", "&amp;gt;" );
text = TQString( "&lt;b&gt;&lt;i&gt;From:&lt;/i&gt;&lt;/b&gt; &lt;a href=\"mailto:info@trolltech.com\"&gt;%1&lt;/a&gt;&lt;br&gt;"
"&lt;b&gt;&lt;i&gt;Subject:&lt;/i&gt;&lt;/b&gt; &lt;big&gt;&lt;big&gt;&lt;b&gt;%2&lt;/b&gt;&lt;/big&gt;&lt;/big&gt;&lt;br&gt;"
"&lt;b&gt;&lt;i&gt;Date:&lt;/i&gt;&lt;/b&gt; %3&lt;br&gt;&lt;br&gt;"