diff options
Diffstat (limited to 'doc/html/tqdir-example.html')
-rw-r--r-- | doc/html/tqdir-example.html | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/doc/html/tqdir-example.html b/doc/html/tqdir-example.html index 6144bb26d..6e5e8e097 100644 --- a/doc/html/tqdir-example.html +++ b/doc/html/tqdir-example.html @@ -131,7 +131,7 @@ void <a name="f496"></a>PixmapView::setPixmap( const <a href="tqpixmap.html">TQP { pixmap = pix; <a name="x1855"></a> <a href="tqscrollview.html#resizeContents">resizeContents</a>( pixmap.<a href="tqwidget.html#size">size</a>().width(), pixmap.<a href="tqwidget.html#size">size</a>().height() ); - <a href="tqscrollview.html#viewport">viewport</a>()->repaint( FALSE ); + <a href="tqscrollview.html#viewport">viewport</a>()->repaint( false ); } <a name="x1837"></a>void PixmapView::<a href="tqscrollview.html#drawContents">drawContents</a>( <a href="tqpainter.html">TQPainter</a> *p, int cx, int cy, int cw, int ch ) @@ -146,7 +146,7 @@ void <a name="f496"></a>PixmapView::setPixmap( const <a href="tqpixmap.html">TQP : <a href="tqwidgetstack.html">TQWidgetStack</a>( parent ) { normalText = new <a href="tqmultilineedit.html">TQMultiLineEdit</a>( this ); -<a name="x1845"></a> normalText-><a href="tqtextedit.html#setReadOnly">setReadOnly</a>( TRUE ); +<a name="x1845"></a> normalText-><a href="tqtextedit.html#setReadOnly">setReadOnly</a>( true ); html = new <a href="tqtextview.html">TQTextView</a>( this ); pixmap = new PixmapView( this ); <a href="tqwidgetstack.html#raiseWidget">raiseWidget</a>( normalText ); @@ -220,15 +220,15 @@ void <a name="f500"></a>PreviewWidget::previewUrl( const <a href="tqurl.html">TQ // **************************************************************************************************** <a name="f491"></a>CustomFileDialog::CustomFileDialog() - : <a href="tqfiledialog.html">TQFileDialog</a>( 0, 0, TRUE ) + : <a href="tqfiledialog.html">TQFileDialog</a>( 0, 0, true ) { <a href="tqfiledialog.html#setDir">setDir</a>( "/" ); - dirView = new DirectoryView( this, 0, TRUE ); + dirView = new DirectoryView( this, 0, true ); <a name="x1827"></a> dirView-><a href="tqlistview.html#addColumn">addColumn</a>( "" ); <a name="x1828"></a> dirView-><a href="tqlistview.html#header">header</a>()->hide(); ::Directory *root = new ::Directory( dirView, "/" ); - root->setOpen( TRUE ); + root->setOpen( true ); <a name="x1853"></a> dirView-><a href="tqwidget.html#setFixedWidth">setFixedWidth</a>( 150 ); <a href="tqfiledialog.html#addLeftWidget">addLeftWidget</a>( dirView ); @@ -257,7 +257,7 @@ void <a name="f500"></a>PreviewWidget::previewUrl( const <a href="tqurl.html">TQ <a name="x1836"></a> p-><a href="tqpushbutton.html#setPopup">setPopup</a>( bookmarkMenu ); - <a href="tqfiledialog.html#addToolButton">addToolButton</a>( p, TRUE ); + <a href="tqfiledialog.html#addToolButton">addToolButton</a>( p, true ); <a href="tqobject.html#connect">connect</a>( dirView, TQ_SIGNAL( folderSelected( const <a href="tqstring.html">TQString</a> & ) ), this, TQ_SLOT( setDir2( const <a href="tqstring.html">TQString</a> & ) ) ); @@ -289,9 +289,9 @@ CustomFileDialog::~CustomFileDialog() void <a name="f492"></a>CustomFileDialog::setDir2( const <a href="tqstring.html">TQString</a> &s ) { - <a href="tqobject.html#blockSignals">blockSignals</a>( TRUE ); + <a href="tqobject.html#blockSignals">blockSignals</a>( true ); <a href="tqfiledialog.html#setDir">setDir</a>( s ); - <a href="tqobject.html#blockSignals">blockSignals</a>( FALSE ); + <a href="tqobject.html#blockSignals">blockSignals</a>( false ); } <a name="x1854"></a>void CustomFileDialog::<a href="tqwidget.html#showEvent">showEvent</a>( <a href="tqshowevent.html">TQShowEvent</a> *e ) @@ -326,8 +326,8 @@ int main( int argc, char ** argv ) <a href="tqstring.html">TQString</a> start; <a href="tqstring.html">TQString</a> filter; <a href="tqstring.html">TQString</a> caption; - bool preview = FALSE; - bool custom = FALSE; + bool preview = false; + bool custom = false; <a href="tqapplication.html">TQApplication</a> a( argc, argv ); for (int i=1; i<argc; i++) { <a href="tqstring.html">TQString</a> arg = argv[i]; @@ -340,9 +340,9 @@ int main( int argc, char ** argv ) else if ( arg == "-filter" ) filter = argv[++i]; else if ( arg == "-preview" ) - preview = TRUE; + preview = true; else if ( arg == "-custom" ) - custom = TRUE; + custom = true; else if ( arg[0] == '-' ) { <a href="tqapplication.html#qDebug">tqDebug</a>("Usage: tqdir [-any | -dir | -custom] [-preview] [-default f] {-filter f} [caption ...]\n" " -any Get any filename, need not exist.\n" @@ -370,10 +370,10 @@ int main( int argc, char ** argv ) ? "Choose directory..." : "Choose file..."; if ( !custom ) { - <a href="tqfiledialog.html">TQFileDialog</a> fd( TQString::null, filter, 0, 0, TRUE ); + <a href="tqfiledialog.html">TQFileDialog</a> fd( TQString::null, filter, 0, 0, true ); <a name="x1819"></a> fd.<a href="tqfiledialog.html#setMode">setMode</a>( mode ); if ( preview ) { -<a name="x1818"></a> fd.<a href="tqfiledialog.html#setContentsPreviewEnabled">setContentsPreviewEnabled</a>( TRUE ); +<a name="x1818"></a> fd.<a href="tqfiledialog.html#setContentsPreviewEnabled">setContentsPreviewEnabled</a>( true ); PreviewWidget *pw = new PreviewWidget( &fd ); <a name="x1817"></a> fd.<a href="tqfiledialog.html#setContentsPreview">setContentsPreview</a>( pw, pw ); <a name="x1822"></a> fd.<a href="tqfiledialog.html#setViewMode">setViewMode</a>( TQFileDialog::List ); |