summaryrefslogtreecommitdiffstats
path: root/doc/html/listviews-example.html
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-01-26 23:32:43 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-01-26 23:32:43 -0600
commitea318d1431c89e647598c510c4245c6571aa5f46 (patch)
tree996d29b80c30d453dda86d1a23162d441628f169 /doc/html/listviews-example.html
parentaaf89d4b48f69c9293feb187db26362e550b5561 (diff)
downloadtqt3-ea318d1431c89e647598c510c4245c6571aa5f46.tar.gz
tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.zip
Update to latest tqt3 automated conversion
Diffstat (limited to 'doc/html/listviews-example.html')
-rw-r--r--doc/html/listviews-example.html228
1 files changed, 114 insertions, 114 deletions
diff --git a/doc/html/listviews-example.html b/doc/html/listviews-example.html
index 9b74fd363..04569ba62 100644
--- a/doc/html/listviews-example.html
+++ b/doc/html/listviews-example.html
@@ -51,12 +51,12 @@ and works like the main window of a mail client.
#ifndef LISTVIEWS_H
#define LISTVIEWS_H
-#include &lt;<a href="qsplitter-h.html">qsplitter.h</a>&gt;
-#include &lt;<a href="qstring-h.html">qstring.h</a>&gt;
-#include &lt;<a href="qobject-h.html">qobject.h</a>&gt;
-#include &lt;<a href="qdatetime-h.html">qdatetime.h</a>&gt;
-#include &lt;<a href="qptrlist-h.html">qptrlist.h</a>&gt;
-#include &lt;<a href="qlistview-h.html">qlistview.h</a>&gt;
+#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="qobject-h.html">ntqobject.h</a>&gt;
+#include &lt;<a href="qdatetime-h.html">ntqdatetime.h</a>&gt;
+#include &lt;<a href="qptrlist-h.html">ntqptrlist.h</a>&gt;
+#include &lt;<a href="qlistview-h.html">ntqlistview.h</a>&gt;
class TQListView;
class TQLabel;
@@ -70,20 +70,20 @@ class TQPopupMenu;
class MessageHeader
{
public:
- MessageHeader( const <a href="qstring.html">TQString</a> &amp;_sender, const <a href="qstring.html">TQString</a> &amp;_subject, const <a href="qdatetime.html">TQDateTime</a> &amp;_datetime )
+ 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 )
: msender( _sender ), msubject( _subject ), mdatetime( _datetime )
{}
MessageHeader( const MessageHeader &amp;mh );
MessageHeader &amp;operator=( const MessageHeader &amp;mh );
- <a href="qstring.html">TQString</a> sender() { return msender; }
- <a href="qstring.html">TQString</a> subject() { return msubject; }
- <a href="qdatetime.html">TQDateTime</a> datetime() { return mdatetime; }
+ <a href="ntqstring.html">TQString</a> sender() { return msender; }
+ <a href="ntqstring.html">TQString</a> subject() { return msubject; }
+ <a href="ntqdatetime.html">TQDateTime</a> datetime() { return mdatetime; }
protected:
- <a href="qstring.html">TQString</a> msender, msubject;
- <a href="qdatetime.html">TQDateTime</a> mdatetime;
+ <a href="ntqstring.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="qstring.html">TQString</a> &amp;_body )
+ Message( const MessageHeader &amp;mh, const <a href="ntqstring.html">TQString</a> &amp;_body )
: mheader( mh ), mbody( _body ), mstate( Unread )
{}
@@ -104,40 +104,40 @@ public:
{}
MessageHeader header() { return mheader; }
- <a href="qstring.html">TQString</a> body() { return mbody; }
+ <a href="ntqstring.html">TQString</a> body() { return mbody; }
void setState( const State &amp;s ) { mstate = s; }
State state() { return mstate; }
protected:
MessageHeader mheader;
- <a href="qstring.html">TQString</a> mbody;
+ <a href="ntqstring.html">TQString</a> mbody;
State mstate;
};
// -----------------------------------------------------------------
-class Folder : public <a href="qobject.html">TQObject</a>
+class Folder : public <a href="ntqobject.html">TQObject</a>
{
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a>
public:
- Folder( Folder *parent, const <a href="qstring.html">TQString</a> &amp;name );
+ Folder( Folder *parent, const <a href="ntqstring.html">TQString</a> &amp;name );
~Folder()
{}
void addMessage( Message *m )
-<a name="x131"></a> { lstMessages.<a href="qptrlist.html#append">append</a>( m ); }
+<a name="x131"></a> { lstMessages.<a href="ntqptrlist.html#append">append</a>( m ); }
- <a href="qstring.html">TQString</a> folderName() { return fName; }
+ <a href="ntqstring.html">TQString</a> folderName() { return fName; }
-<a name="x132"></a> Message *firstMessage() { return lstMessages.<a href="qptrlist.html#first">first</a>(); }
-<a name="x133"></a> Message *nextMessage() { return lstMessages.<a href="qptrlist.html#next">next</a>(); }
+<a name="x132"></a> Message *firstMessage() { return lstMessages.<a href="ntqptrlist.html#first">first</a>(); }
+<a name="x133"></a> Message *nextMessage() { return lstMessages.<a href="ntqptrlist.html#next">next</a>(); }
protected:
- <a href="qstring.html">TQString</a> fName;
- <a href="qptrlist.html">TQPtrList</a>&lt;Message&gt; lstMessages;
+ <a href="ntqstring.html">TQString</a> fName;
+ <a href="ntqptrlist.html">TQPtrList</a>&lt;Message&gt; lstMessages;
};
@@ -146,10 +146,10 @@ protected:
class FolderListItem : public <a href="qlistviewitem.html">TQListViewItem</a>
{
public:
- FolderListItem( <a href="qlistview.html">TQListView</a> *parent, Folder *f );
+ FolderListItem( <a href="ntqlistview.html">TQListView</a> *parent, Folder *f );
FolderListItem( FolderListItem *parent, Folder *f );
- void insertSubFolders( const <a href="qobjectlist.html">TQObjectList</a> *lst );
+ void insertSubFolders( const <a href="ntqobjectlist.html">TQObjectList</a> *lst );
Folder *folder() { return myFolder; }
@@ -163,9 +163,9 @@ protected:
class MessageListItem : public <a href="qlistviewitem.html">TQListViewItem</a>
{
public:
- MessageListItem( <a href="qlistview.html">TQListView</a> *parent, Message *m );
+ MessageListItem( <a href="ntqlistview.html">TQListView</a> *parent, Message *m );
- virtual void paintCell( <a href="qpainter.html">TQPainter</a> *p, const <a href="qcolorgroup.html">TQColorGroup</a> &amp;cg,
+ virtual void paintCell( <a href="ntqpainter.html">TQPainter</a> *p, const <a href="qcolorgroup.html">TQColorGroup</a> &amp;cg,
int column, int width, int alignment );
Message *message() { return myMessage; }
@@ -177,12 +177,12 @@ protected:
// -----------------------------------------------------------------
-class ListViews : public <a href="qsplitter.html">TQSplitter</a>
+class ListViews : public <a href="ntqsplitter.html">TQSplitter</a>
{
Q_OBJECT
public:
- ListViews( <a href="qwidget.html">TQWidget</a> *parent = 0, const char *name = 0 );
+ ListViews( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0 );
~ListViews()
{}
@@ -191,16 +191,16 @@ protected:
void initFolder( Folder *folder, unsigned int &amp;count );
void setupFolders();
- <a href="qlistview.html">TQListView</a> *messages, *folders;
- <a href="qlabel.html">TQLabel</a> *message;
- <a href="qpopupmenu.html">TQPopupMenu</a>* menu;
+ <a href="ntqlistview.html">TQListView</a> *messages, *folders;
+ <a href="ntqlabel.html">TQLabel</a> *message;
+ <a href="ntqpopupmenu.html">TQPopupMenu</a>* menu;
- <a href="qptrlist.html">TQPtrList</a>&lt;Folder&gt; lstFolders;
+ <a href="ntqptrlist.html">TQPtrList</a>&lt;Folder&gt; lstFolders;
protected slots:
void slotFolderChanged( <a href="qlistviewitem.html">TQListViewItem</a>* );
void slotMessageChanged();
- void slotRMB( <a href="qlistviewitem.html">TQListViewItem</a>*, const <a href="qpoint.html">TQPoint</a> &amp;, int );
+ void slotRMB( <a href="qlistviewitem.html">TQListViewItem</a>*, const <a href="ntqpoint.html">TQPoint</a> &amp;, int );
};
@@ -221,13 +221,13 @@ protected slots:
#include "listviews.h"
-#include &lt;<a href="qlabel-h.html">qlabel.h</a>&gt;
-#include &lt;<a href="qpainter-h.html">qpainter.h</a>&gt;
-#include &lt;<a href="qpalette-h.html">qpalette.h</a>&gt;
-#include &lt;<a href="qobjectlist-h.html">qobjectlist.h</a>&gt;
-#include &lt;<a href="qpopupmenu-h.html">qpopupmenu.h</a>&gt;
-#include &lt;<a href="qheader-h.html">qheader.h</a>&gt;
-#include &lt;<a href="qregexp-h.html">qregexp.h</a>&gt;
+#include &lt;<a href="qlabel-h.html">ntqlabel.h</a>&gt;
+#include &lt;<a href="qpainter-h.html">ntqpainter.h</a>&gt;
+#include &lt;<a href="qpalette-h.html">ntqpalette.h</a>&gt;
+#include &lt;<a href="qobjectlist-h.html">ntqobjectlist.h</a>&gt;
+#include &lt;<a href="qpopupmenu-h.html">ntqpopupmenu.h</a>&gt;
+#include &lt;<a href="qheader-h.html">ntqheader.h</a>&gt;
+#include &lt;<a href="qregexp-h.html">ntqregexp.h</a>&gt;
// -----------------------------------------------------------------
@@ -249,15 +249,15 @@ MessageHeader &amp;MessageHeader::operator=( const MessageHeader &amp;mh )
// -----------------------------------------------------------------
-<a name="f208"></a>Folder::Folder( Folder *parent, const <a href="qstring.html">TQString</a> &amp;name )
- : <a href="qobject.html">TQObject</a>( parent, name ), fName( name )
+<a name="f208"></a>Folder::Folder( Folder *parent, const <a href="ntqstring.html">TQString</a> &amp;name )
+ : <a href="ntqobject.html">TQObject</a>( parent, name ), fName( name )
{
lstMessages.setAutoDelete( TRUE );
}
// -----------------------------------------------------------------
-<a name="f209"></a>FolderListItem::FolderListItem( <a href="qlistview.html">TQListView</a> *parent, Folder *f )
+<a name="f209"></a>FolderListItem::FolderListItem( <a href="ntqlistview.html">TQListView</a> *parent, Folder *f )
: <a href="qlistviewitem.html">TQListViewItem</a>( parent )
{
myFolder = f;
@@ -278,16 +278,16 @@ FolderListItem::FolderListItem( FolderListItem *parent, Folder *f )
insertSubFolders( myFolder-&gt;children() );
}
-void <a name="f210"></a>FolderListItem::insertSubFolders( const <a href="qobjectlist.html">TQObjectList</a> *lst )
+void <a name="f210"></a>FolderListItem::insertSubFolders( const <a href="ntqobjectlist.html">TQObjectList</a> *lst )
{
Folder *f;
- for ( f = ( Folder* )( ( <a href="qobjectlist.html">TQObjectList</a>* )lst )-&gt;first(); f; f = ( Folder* )( ( <a href="qobjectlist.html">TQObjectList</a>* )lst )-&gt;next() )
+ for ( f = ( Folder* )( ( <a href="ntqobjectlist.html">TQObjectList</a>* )lst )-&gt;first(); f; f = ( Folder* )( ( <a href="ntqobjectlist.html">TQObjectList</a>* )lst )-&gt;next() )
(void)new FolderListItem( this, f );
}
// -----------------------------------------------------------------
-<a name="f218"></a>MessageListItem::MessageListItem( <a href="qlistview.html">TQListView</a> *parent, Message *m )
+<a name="f218"></a>MessageListItem::MessageListItem( <a href="ntqlistview.html">TQListView</a> *parent, Message *m )
: <a href="qlistviewitem.html">TQListViewItem</a>( parent )
{
myMessage = m;
@@ -296,11 +296,11 @@ void <a name="f210"></a>FolderListItem::insertSubFolders( const <a href="qobject
<a href="qlistviewitem.html#setText">setText</a>( 2, myMessage-&gt;header().datetime().toString() );
}
-<a name="x157"></a>void MessageListItem::<a href="qlistviewitem.html#paintCell">paintCell</a>( <a href="qpainter.html">TQPainter</a> *p, const <a href="qcolorgroup.html">TQColorGroup</a> &amp;cg,
+<a name="x157"></a>void MessageListItem::<a href="qlistviewitem.html#paintCell">paintCell</a>( <a href="ntqpainter.html">TQPainter</a> *p, const <a href="qcolorgroup.html">TQColorGroup</a> &amp;cg,
int column, int width, int alignment )
{
<a href="qcolorgroup.html">TQColorGroup</a> _cg( cg );
-<a name="x135"></a> <a href="qcolor.html">TQColor</a> c = _cg.<a href="qcolorgroup.html#text">text</a>();
+<a name="x135"></a> <a href="ntqcolor.html">TQColor</a> c = _cg.<a href="qcolorgroup.html#text">text</a>();
if ( myMessage-&gt;state() == Message::Unread )
<a name="x134"></a> _cg.<a href="qcolorgroup.html#setColor">setColor</a>( TQColorGroup::Text, TQt::red );
@@ -312,62 +312,62 @@ void <a name="f210"></a>FolderListItem::insertSubFolders( const <a href="qobject
// -----------------------------------------------------------------
-<a name="f211"></a>ListViews::ListViews( <a href="qwidget.html">TQWidget</a> *parent, const char *name )
- : <a href="qsplitter.html">TQSplitter</a>( TQt::Horizontal, parent, name )
+<a name="f211"></a>ListViews::ListViews( <a href="ntqwidget.html">TQWidget</a> *parent, const char *name )
+ : <a href="ntqsplitter.html">TQSplitter</a>( TQt::Horizontal, parent, name )
{
lstFolders.setAutoDelete( TRUE );
- folders = new <a href="qlistview.html">TQListView</a>( this );
-<a name="x147"></a> folders-&gt;<a href="qlistview.html#header">header</a>()-&gt;setClickEnabled( FALSE );
-<a name="x141"></a> folders-&gt;<a href="qlistview.html#addColumn">addColumn</a>( "Folder" );
+ folders = new <a href="ntqlistview.html">TQListView</a>( this );
+<a name="x147"></a> folders-&gt;<a href="ntqlistview.html#header">header</a>()-&gt;setClickEnabled( FALSE );
+<a name="x141"></a> folders-&gt;<a href="ntqlistview.html#addColumn">addColumn</a>( "Folder" );
initFolders();
setupFolders();
-<a name="x152"></a> folders-&gt;<a href="qlistview.html#setRootIsDecorated">setRootIsDecorated</a>( TRUE );
- <a href="qsplitter.html#setResizeMode">setResizeMode</a>( folders, TQSplitter::KeepSize );
+<a name="x152"></a> folders-&gt;<a href="ntqlistview.html#setRootIsDecorated">setRootIsDecorated</a>( TRUE );
+ <a href="ntqsplitter.html#setResizeMode">setResizeMode</a>( folders, TQSplitter::KeepSize );
- <a href="qsplitter.html">TQSplitter</a> *vsplitter = new <a href="qsplitter.html">TQSplitter</a>( TQt::Vertical, this );
+ <a href="ntqsplitter.html">TQSplitter</a> *vsplitter = new <a href="ntqsplitter.html">TQSplitter</a>( TQt::Vertical, this );
- messages = new <a href="qlistview.html">TQListView</a>( vsplitter );
- messages-&gt;<a href="qlistview.html#addColumn">addColumn</a>( "Sender" );
- messages-&gt;<a href="qlistview.html#addColumn">addColumn</a>( "Subject" );
- messages-&gt;<a href="qlistview.html#addColumn">addColumn</a>( "Date" );
-<a name="x150"></a> messages-&gt;<a href="qlistview.html#setColumnAlignment">setColumnAlignment</a>( 1, TQt::AlignRight );
-<a name="x149"></a> messages-&gt;<a href="qlistview.html#setAllColumnsShowFocus">setAllColumnsShowFocus</a>( TRUE );
-<a name="x155"></a> messages-&gt;<a href="qlistview.html#setShowSortIndicator">setShowSortIndicator</a>( TRUE );
- menu = new <a href="qpopupmenu.html">TQPopupMenu</a>( messages );
+ messages = new <a href="ntqlistview.html">TQListView</a>( vsplitter );
+ messages-&gt;<a href="ntqlistview.html#addColumn">addColumn</a>( "Sender" );
+ messages-&gt;<a href="ntqlistview.html#addColumn">addColumn</a>( "Subject" );
+ messages-&gt;<a href="ntqlistview.html#addColumn">addColumn</a>( "Date" );
+<a name="x150"></a> messages-&gt;<a href="ntqlistview.html#setColumnAlignment">setColumnAlignment</a>( 1, TQt::AlignRight );
+<a name="x149"></a> messages-&gt;<a href="ntqlistview.html#setAllColumnsShowFocus">setAllColumnsShowFocus</a>( TRUE );
+<a name="x155"></a> messages-&gt;<a href="ntqlistview.html#setShowSortIndicator">setShowSortIndicator</a>( TRUE );
+ menu = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( messages );
for( int i = 1; i &lt;= 10; i++ )
- menu-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( TQString( "Context Item %1" ).arg( i ) );
-<a name="x143"></a> <a href="qobject.html#connect">connect</a>(messages, SIGNAL( <a href="qlistview.html#contextMenuRequested">contextMenuRequested</a>( <a href="qlistviewitem.html">TQListViewItem</a> *, const <a href="qpoint.html">TQPoint</a>&amp; , int ) ),
- this, SLOT( slotRMB( <a href="qlistviewitem.html">TQListViewItem</a> *, const <a href="qpoint.html">TQPoint</a> &amp;, int ) ) );
-<a name="x161"></a> vsplitter-&gt;<a href="qsplitter.html#setResizeMode">setResizeMode</a>( messages, TQSplitter::KeepSize );
+ menu-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( TQString( "Context Item %1" ).arg( i ) );
+<a name="x143"></a> <a href="ntqobject.html#connect">connect</a>(messages, SIGNAL( <a href="ntqlistview.html#contextMenuRequested">contextMenuRequested</a>( <a href="qlistviewitem.html">TQListViewItem</a> *, const <a href="ntqpoint.html">TQPoint</a>&amp; , int ) ),
+ this, SLOT( slotRMB( <a href="qlistviewitem.html">TQListViewItem</a> *, const <a href="ntqpoint.html">TQPoint</a> &amp;, int ) ) );
+<a name="x161"></a> vsplitter-&gt;<a href="ntqsplitter.html#setResizeMode">setResizeMode</a>( messages, TQSplitter::KeepSize );
- message = new <a href="qlabel.html">TQLabel</a>( vsplitter );
- message-&gt;<a href="qlabel.html#setAlignment">setAlignment</a>( TQt::AlignTop );
-<a name="x163"></a> message-&gt;<a href="qwidget.html#setBackgroundMode">setBackgroundMode</a>( PaletteBase );
+ message = new <a href="ntqlabel.html">TQLabel</a>( vsplitter );
+ message-&gt;<a href="ntqlabel.html#setAlignment">setAlignment</a>( TQt::AlignTop );
+<a name="x163"></a> message-&gt;<a href="ntqwidget.html#setBackgroundMode">setBackgroundMode</a>( PaletteBase );
-<a name="x148"></a> <a href="qobject.html#connect">connect</a>( folders, SIGNAL( <a href="qlistview.html#selectionChanged">selectionChanged</a>( <a href="qlistviewitem.html">TQListViewItem</a>* ) ),
+<a name="x148"></a> <a href="ntqobject.html#connect">connect</a>( folders, SIGNAL( <a href="ntqlistview.html#selectionChanged">selectionChanged</a>( <a href="qlistviewitem.html">TQListViewItem</a>* ) ),
this, SLOT( slotFolderChanged( <a href="qlistviewitem.html">TQListViewItem</a>* ) ) );
- <a href="qobject.html#connect">connect</a>( messages, SIGNAL( <a href="qlistview.html#selectionChanged">selectionChanged</a>() ),
+ <a href="ntqobject.html#connect">connect</a>( messages, SIGNAL( <a href="ntqlistview.html#selectionChanged">selectionChanged</a>() ),
this, SLOT( slotMessageChanged() ) );
-<a name="x144"></a> <a href="qobject.html#connect">connect</a>( messages, SIGNAL( <a href="qlistview.html#currentChanged">currentChanged</a>( <a href="qlistviewitem.html">TQListViewItem</a> * ) ),
+<a name="x144"></a> <a href="ntqobject.html#connect">connect</a>( messages, SIGNAL( <a href="ntqlistview.html#currentChanged">currentChanged</a>( <a href="qlistviewitem.html">TQListViewItem</a> * ) ),
this, SLOT( slotMessageChanged() ) );
-<a name="x154"></a> messages-&gt;<a href="qlistview.html#setSelectionMode">setSelectionMode</a>( TQListView::Extended );
+<a name="x154"></a> messages-&gt;<a href="ntqlistview.html#setSelectionMode">setSelectionMode</a>( TQListView::Extended );
// some preparations
-<a name="x146"></a> folders-&gt;<a href="qlistview.html#firstChild">firstChild</a>()-&gt;setOpen( TRUE );
- folders-&gt;<a href="qlistview.html#firstChild">firstChild</a>()-&gt;firstChild()-&gt;setOpen( TRUE );
-<a name="x151"></a> folders-&gt;<a href="qlistview.html#setCurrentItem">setCurrentItem</a>( folders-&gt;<a href="qlistview.html#firstChild">firstChild</a>()-&gt;firstChild()-&gt;firstChild() );
-<a name="x153"></a> folders-&gt;<a href="qlistview.html#setSelected">setSelected</a>( folders-&gt;<a href="qlistview.html#firstChild">firstChild</a>()-&gt;firstChild()-&gt;firstChild(), TRUE );
-
- messages-&gt;<a href="qlistview.html#setSelected">setSelected</a>( messages-&gt;<a href="qlistview.html#firstChild">firstChild</a>(), TRUE );
- messages-&gt;<a href="qlistview.html#setCurrentItem">setCurrentItem</a>( messages-&gt;<a href="qlistview.html#firstChild">firstChild</a>() );
- message-&gt;<a href="qframe.html#setMargin">setMargin</a>( 5 );
-
- <a href="qvaluelist.html">TQValueList</a>&lt;int&gt; lst;
-<a name="x160"></a> lst.<a href="qptrlist.html#append">append</a>( 170 );
- <a href="qsplitter.html#setSizes">setSizes</a>( lst );
+<a name="x146"></a> folders-&gt;<a href="ntqlistview.html#firstChild">firstChild</a>()-&gt;setOpen( TRUE );
+ folders-&gt;<a href="ntqlistview.html#firstChild">firstChild</a>()-&gt;firstChild()-&gt;setOpen( TRUE );
+<a name="x151"></a> folders-&gt;<a href="ntqlistview.html#setCurrentItem">setCurrentItem</a>( folders-&gt;<a href="ntqlistview.html#firstChild">firstChild</a>()-&gt;firstChild()-&gt;firstChild() );
+<a name="x153"></a> folders-&gt;<a href="ntqlistview.html#setSelected">setSelected</a>( folders-&gt;<a href="ntqlistview.html#firstChild">firstChild</a>()-&gt;firstChild()-&gt;firstChild(), TRUE );
+
+ messages-&gt;<a href="ntqlistview.html#setSelected">setSelected</a>( messages-&gt;<a href="ntqlistview.html#firstChild">firstChild</a>(), TRUE );
+ messages-&gt;<a href="ntqlistview.html#setCurrentItem">setCurrentItem</a>( messages-&gt;<a href="ntqlistview.html#firstChild">firstChild</a>() );
+ message-&gt;<a href="ntqframe.html#setMargin">setMargin</a>( 5 );
+
+ <a href="ntqvaluelist.html">TQValueList</a>&lt;int&gt; lst;
+<a name="x160"></a> lst.<a href="ntqptrlist.html#append">append</a>( 170 );
+ <a href="ntqsplitter.html#setSizes">setSizes</a>( lst );
}
void <a name="f212"></a>ListViews::initFolders()
@@ -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="qstring.html">TQString</a> str;
+ <a href="ntqstring.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="qstring.html">TQString</a> str2;
+ <a href="ntqstring.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="qstring.html">TQString</a> str3;
+ <a href="ntqstring.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="qstring.html">TQString</a> str;
+ <a href="ntqstring.html">TQString</a> str;
str = TQString( "Message %1 " ).arg( count );
-<a name="x137"></a> <a href="qdatetime.html">TQDateTime</a> dt = TQDateTime::<a href="qdatetime.html#currentDateTime">currentDateTime</a>();
-<a name="x136"></a> dt = dt.<a href="qdatetime.html#addSecs">addSecs</a>( 60 * 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="qstring.html">TQString</a> body;
+ <a href="ntqstring.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"
@@ -414,16 +414,16 @@ void <a name="f213"></a>ListViews::initFolder( Folder *folder, unsigned int &amp
void <a name="f214"></a>ListViews::setupFolders()
{
-<a name="x142"></a> folders-&gt;<a href="qlistview.html#clear">clear</a>();
+<a name="x142"></a> folders-&gt;<a href="ntqlistview.html#clear">clear</a>();
for ( Folder* f = lstFolders.first(); f; f = lstFolders.next() )
(void)new FolderListItem( folders, f );
}
-void <a name="f215"></a>ListViews::slotRMB( <a href="qlistviewitem.html">TQListViewItem</a>* Item, const <a href="qpoint.html">TQPoint</a> &amp; point, int )
+void <a name="f215"></a>ListViews::slotRMB( <a href="qlistviewitem.html">TQListViewItem</a>* Item, const <a href="ntqpoint.html">TQPoint</a> &amp; point, int )
{
if( Item )
-<a name="x159"></a> menu-&gt;<a href="qpopupmenu.html#popup">popup</a>( point );
+<a name="x159"></a> menu-&gt;<a href="ntqpopupmenu.html#popup">popup</a>( point );
}
@@ -431,8 +431,8 @@ void <a name="f216"></a>ListViews::slotFolderChanged( <a href="qlistviewitem.htm
{
if ( !i )
return;
- messages-&gt;<a href="qlistview.html#clear">clear</a>();
-<a name="x140"></a> message-&gt;<a href="qlabel.html#setText">setText</a>( "" );
+ messages-&gt;<a href="ntqlistview.html#clear">clear</a>();
+<a name="x140"></a> message-&gt;<a href="ntqlabel.html#setText">setText</a>( "" );
FolderListItem *item = ( FolderListItem* )i;
@@ -443,22 +443,22 @@ void <a name="f216"></a>ListViews::slotFolderChanged( <a href="qlistviewitem.htm
void <a name="f217"></a>ListViews::slotMessageChanged()
{
-<a name="x145"></a> <a href="qlistviewitem.html">TQListViewItem</a> *i = messages-&gt;<a href="qlistview.html#currentItem">currentItem</a>();
+<a name="x145"></a> <a href="qlistviewitem.html">TQListViewItem</a> *i = messages-&gt;<a href="ntqlistview.html#currentItem">currentItem</a>();
if ( !i )
return;
<a name="x156"></a> if ( !i-&gt;<a href="qlistviewitem.html#isSelected">isSelected</a>() ) {
- message-&gt;<a href="qlabel.html#setText">setText</a>( "" );
+ message-&gt;<a href="ntqlabel.html#setText">setText</a>( "" );
return;
}
MessageListItem *item = ( MessageListItem* )i;
Message *msg = item-&gt;message();
- <a href="qstring.html">TQString</a> text;
- <a href="qstring.html">TQString</a> tmp = msg-&gt;header().sender();
-<a name="x162"></a> tmp = tmp.<a href="qstring.html#replace">replace</a>( "&lt;", "&amp;lt;" );
- tmp = tmp.<a href="qstring.html#replace">replace</a>( "&gt;", "&amp;gt;" );
+ <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;" );
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;"
@@ -466,7 +466,7 @@ void <a name="f217"></a>ListViews::slotMessageChanged()
arg( tmp ).arg( msg-&gt;header().subject() ).
arg( msg-&gt;header().datetime().toString() ).arg( msg-&gt;body() );
- message-&gt;<a href="qlabel.html#setText">setText</a>( text );
+ message-&gt;<a href="ntqlabel.html#setText">setText</a>( text );
msg-&gt;setState( Message::Read );
}
@@ -485,19 +485,19 @@ void <a name="f217"></a>ListViews::slotMessageChanged()
*****************************************************************************/
#include "listviews.h"
-#include &lt;<a href="qapplication-h.html">qapplication.h</a>&gt;
+#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
int main( int argc, char **argv )
{
- <a href="qapplication.html">TQApplication</a> a( argc, argv );
+ <a href="ntqapplication.html">TQApplication</a> a( argc, argv );
ListViews listViews;
-<a name="x166"></a> listViews.<a href="qwidget.html#resize">resize</a>( 640, 480 );
-<a name="x167"></a> listViews.<a href="qwidget.html#setCaption">setCaption</a>( "TQt Example - Listview" );
- a.<a href="qapplication.html#setMainWidget">setMainWidget</a>( &amp;listViews );
- listViews.<a href="qwidget.html#show">show</a>();
+<a name="x166"></a> listViews.<a href="ntqwidget.html#resize">resize</a>( 640, 480 );
+<a name="x167"></a> listViews.<a href="ntqwidget.html#setCaption">setCaption</a>( "TQt Example - Listview" );
+ a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( &amp;listViews );
+ listViews.<a href="ntqwidget.html#show">show</a>();
- return a.<a href="qapplication.html#exec">exec</a>();
+ return a.<a href="ntqapplication.html#exec">exec</a>();
}
</pre>